/* ==========================================
   RESET & SYSTEM STYLES
   ========================================== */
:root {
    --accent: #6d28d9; /* Premium Violet */
    --accent-light: #f5f0ff; /* Faint Violet Tint */
    --accent-hover: #ece2ff; /* Highlight Violet Hover */
    --accent-border: #dcd3eb; /* Violet-grey border */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #ffffff;
    color: #000000;
    color-scheme: light;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* ==========================================
   HEADER STYLE (Symmetric & Centered)
   ========================================== */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    justify-self: end;
    margin-right: 40px;
}

.header-center {
    justify-self: center;
    text-align: center;
}

.header-right {
    justify-self: start;
    margin-left: 40px;
}

/* Typography & Interactive Styles */
.nav-name {
    font-family: 'Noto Serif', serif;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.6px;
    text-decoration: none; /* Reset anchor line */
    user-select: none;
    line-height: 1;
    transition: opacity 0.25s ease;
}

.nav-name:hover {
    opacity: 0.85; /* Subtle interactive feedback */
}

.nav-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000000;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: opacity 0.25s ease;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-btn:hover {
    opacity: 0.8;
}

.nav-btn:hover::after {
    width: 100%;
    left: 0;
}

/* ==========================================
   LAYOUT CONTAINERS & EDITORIAL GRID
   ========================================== */
.content-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 15px 40px;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 3.5fr 8.5fr;
    gap: 50px;
    align-items: start;
    padding-bottom: 10px;
}

/* Photo Frame Style */
.photo-frame {
    border: 1px solid #111111;
    padding: 16px;
    background-color: #ffffff;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.photo-caption {
    display: block;
    margin-top: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
    text-align: center;
}

/* Right Side Typography */
.editorial-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.intro-greeting {
    font-family: 'Noto Serif', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.intro-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #333333;
    margin-bottom: 30px;
    text-align: justify;
}

/* Journey Map Container */
.map-snapshot-container {
    border-top: 1px solid #efebdf;
    padding-top: 15px;
    margin-top: 18px;
}

.map-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
}

.map-graphic-wrapper {
    background-color: #ffffff; /* Fused clean white canvas */
    border: 1px solid #111111; /* Unified thin black border */
    border-radius: 4px; /* Strict 90-degree corners with minimal rounding */
    padding: 12px;
    position: relative;
    overflow: hidden;
    contain: layout paint style; /* CSS Containment for rendering isolation */
}

.journey-svg {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    transform: translateZ(0); /* Force GPU composite layer */
}

.map-pulse {
    animation: mapPulse 3s infinite ease-in-out;
    transform-origin: center;
    transform-box: fill-box;
    stroke: var(--accent) !important;
    will-change: transform, opacity;
}

@keyframes mapPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

.map-bg-country {
    fill: #ffffff;
    stroke: #f0f0f0;
    stroke-width: 0.3px;
    pointer-events: none;
}

.map-hl-country {
    fill: #f5f5f5; /* clean light gray highlight */
    stroke: #cccccc; /* clear neutral border */
    stroke-width: 0.45px;
    pointer-events: none;
}

/* Override SVG internal color vectors with black for historical journey */
.journey-svg circle.destination-dot {
    fill: #111111 !important;
}

.journey-svg path.journey-line {
    stroke: #111111 !important;
    stroke-width: 0.8px !important;
}

/* Staggered drawing and sequential display of relocation vectors (GPU-composited opacity fade) */
.relocation-arc {
    stroke-width: 0.6px;
    stroke-linecap: round;
    opacity: 0;
    will-change: opacity;
}

.arc-1 {
    animation: drawAndFadeLine 6s infinite ease-in-out;
    animation-delay: 0s;
}

.arc-2 {
    animation: drawAndFadeLine 6s infinite ease-in-out;
    animation-delay: 2s;
}

.arc-3 {
    animation: drawAndFadeLine 6s infinite ease-in-out;
    animation-delay: 4s;
}

.map-question-mark {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 6.5px;
    font-weight: 700;
    fill: var(--accent);
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    will-change: opacity, transform;
}

.q-1 {
    animation: fadeQuestionMark 6s infinite ease-in-out;
    animation-delay: 0s;
}

.q-2 {
    animation: fadeQuestionMark 6s infinite ease-in-out;
    animation-delay: 2s;
}

.q-3 {
    animation: fadeQuestionMark 6s infinite ease-in-out;
    animation-delay: 4s;
}

.moving-dot {
    offset-path: path('M 392.3 573.1 Q 375 550 352.2 543.7');
    animation: moveAlongPath 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    will-change: offset-distance;
}

@keyframes moveAlongPath {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

@keyframes drawAndFadeLine {
    0% { opacity: 0; }
    8% { opacity: 0; }
    20% { opacity: 0.85; }
    40% { opacity: 0.85; }
    48% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fadeQuestionMark {
    0% { opacity: 0; transform: scale(0.6); }
    18% { opacity: 0; transform: scale(0.6); }
    26% { opacity: 0.95; transform: scale(1.1); }
    30% { opacity: 0.85; transform: scale(1); }
    40% { opacity: 0.85; transform: scale(1); }
    48% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(0.6); }
}

/* Contact Details block with pill-buttons */
.contact-block {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e0dbd1; /* warm frame-matching line */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 4px; /* Minimal rounding */
    background-color: #ffffff;
    border: 1px solid #111111; /* Unified black outline */
    color: #111111;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-icon {
    width: 14px;
    height: 14px;
    color: #111111;
    transition: color 0.2s ease-in-out;
    flex-shrink: 0;
}

.contact-text-value {
    transition: color 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover effects: Inverted color fill with violet accent */
.contact-item-row:hover {
    border-color: var(--accent);
    color: #ffffff;
    background-color: var(--accent);
}

.contact-item-row:hover .contact-icon {
    color: #ffffff;
}

/* Map & Interests Titles */
.map-title, .interests-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111111;
    display: block;
    margin-bottom: 12px;
}

/* Interests Section */
.interests-container {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
}

.interests-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    background-color: #ffffff;
    color: #333333;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative; /* Anchor for absolute tooltip positioning */
}

.interest-item:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.interest-icon {
    width: 14px;
    height: 14px;
    color: #707070;
    transition: color 0.2s ease-in-out;
    flex-shrink: 0;
}

.interest-item:hover .interest-icon {
    color: var(--accent);
}

/* Tooltip Popover styling (Light Theme with border) */
.tooltip-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 240px;
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #111111; /* Thin black outline */
    padding: 12px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* very soft light shadow */
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Bordered caret pointing up using rotated square */
.tooltip-box::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-left: 1px solid #111111;
    border-top: 1px solid #111111;
}

/* Reveal tooltip on hover */
.interest-item:hover .tooltip-box {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Call To Action Buttons (Under right column content) */
.cta-container {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
    justify-content: flex-start;
    position: relative;
    z-index: 10;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    flex: 1; /* Split width equally in the right column */
    min-width: 0;
    background-color: #ffffff;
    border: 1px solid #111111;
    color: #111111;
}

.cta-button:hover {
    background-color: #111111;
    border-color: #111111;
    color: #ffffff;
}

.cta-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease-in-out;
}

/* Hover arrow shifts */
.cta-button:hover .arrow-left {
    transform: translateX(-4px); /* Shifts left to prompt swipe-left */
}

.cta-button:hover .arrow-right {
    transform: translateX(4px); /* Shifts right to prompt swipe-right */
}

/* ==========================================
   ENTRANCE ANIMATIONS (Page Load)
   ========================================== */
.site-header {
    opacity: 0;
    animation: fadeInDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.column-left .photo-frame {
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

.intro-article {
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.map-snapshot-container {
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.45s;
}

.interests-container {
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.cta-container {
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.75s;
}

.contact-item-row {
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-item-row:nth-child(1) { animation-delay: 0.7s; }
.contact-item-row:nth-child(2) { animation-delay: 0.8s; }
.contact-item-row:nth-child(3) { animation-delay: 0.9s; }
.contact-item-row:nth-child(4) { animation-delay: 1.0s; }
.contact-item-row:nth-child(5) { animation-delay: 1.1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .photo-frame {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .site-header {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 25px 30px;
    }
    
    .header-left, .header-right {
        margin: 0;
    }
    
    .nav-name {
        font-size: 28px;
    }
    
    .content-container {
        padding: 30px 20px;
    }
    
    .intro-greeting {
        font-size: 36px;
    }
    
    .intro-text {
        font-size: 15px;
    }
}

/* ==========================================
   CLEAN NATIVE SPA NAVIGATION
   ========================================== */
.slider-container {
    width: 100%;
    position: relative;
}

.slide-view {
    display: none;
}

.slide-view.active {
    display: block;
    animation: pageFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Active buttons styling in header */
.nav-btn {
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.nav-btn.active {
    font-weight: 700;
    color: var(--accent);
}

/* ==========================================
   EMPTY SIDE VIEWS STYLING
   ========================================== */
.empty-view-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    padding: 20px 40px;
    box-sizing: border-box;
}

.empty-view-title {
    font-family: 'Noto Serif', serif;
    font-size: clamp(32px, 5vh, 46px);
    font-weight: 700;
    color: #111111;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.empty-view-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #666666;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

.empty-view-btn {
    max-width: 250px;
    margin: 0 auto;
}

/* ==========================================
   RESUME TIMELINE LAYOUT
   ========================================== */
.resume-grid {
    display: grid;
    grid-template-columns: 7.2fr 2.8fr;
    gap: 60px;
    align-items: start;
    width: 100%;
    padding-bottom: 30px;
}

.resume-timeline-wrapper {
    position: relative;
    padding: 30px 0;
    width: 100%;
}

/* ==========================================
   RESUME TIMELINE LAYOUT (Collapsible Editorial Accordions)
   ========================================== */
.cv-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.accordion-item {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;
    transition: border-color 0.3s;
}

.accordion-item.expanded {
    border-color: #111111;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
}

.accordion-header:hover {
    opacity: 0.8;
}

.accordion-header-left {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.accordion-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.accordion-title {
    font-family: 'Noto Serif', serif;
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    letter-spacing: -0.5px;
}

.accordion-arrow {
    width: 20px;
    height: 20px;
    stroke: #111111;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.expanded .accordion-arrow {
    transform: rotate(180deg);
}

/* Native CSS Grid Accordion Unfolding */
.accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.accordion-item.expanded .accordion-body {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
}

.accordion-body-inner {
    min-height: 0;
    padding: 10px 0 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
}

/* Detail items inside accordion */
.cv-item {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e5e5;
    padding-left: 24px;
    padding-top: 4px;
    padding-bottom: 16px;
    position: relative;
    cursor: default;
    background: transparent;
    transition: border-color 0.25s ease;
}

/* Connective bullet point perfectly centered on vertical line */
.cv-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 10px;
    width: 9px;
    height: 9px;
    background-color: #ffffff;
    border: 2px solid #111111;
    border-radius: 50%;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    z-index: 2;
}

.cv-item:hover, .cv-item.active-focus {
    border-left-color: var(--accent);
    background: transparent;
}

.cv-item:hover::before, .cv-item.active-focus::before {
    background-color: var(--accent);
    border-color: var(--accent);
}

.cv-item-header {
    margin-bottom: 10px;
}

.cv-item-title {
    font-family: 'Noto Serif', serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.cv-item-org {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 4px;
}

.cv-item-date {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
}

.modal-text-content p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 14px 0;
}

.modal-text-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Editorial Magazine Portfolio Hub Styles
   ========================================================================== */

.portfolio-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 24px 80px 24px;
}

/* Portfolio Hero Header */
.portfolio-hero {
    margin-bottom: 40px;
    border-bottom: 1px solid #111111;
    padding-bottom: 32px;
}

.portfolio-kicker {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.portfolio-title {
    font-family: 'Noto Serif', serif;
    font-size: 38px;
    font-weight: 400;
    color: #111111;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
}

.portfolio-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 760px;
}

/* Minimalist Editorial Metrics Grid */
.portfolio-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #111111;
    border-radius: 4px;
    background: #ffffff;
}

.metric-card {
    padding: 20px 24px;
    border-right: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-card:last-child {
    border-right: none;
}

.metric-number {
    font-family: 'Noto Serif', serif;
    font-size: 32px;
    font-weight: 700;
    color: #111111;
    line-height: 1;
}

.metric-number-accent {
    color: var(--accent);
}

.metric-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #777777;
}

/* Single-Column Editorial Case Study List */
.portfolio-single-column-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
}

.case-study-row {
    border: 1px solid #111111;
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-row:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.case-study-main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    padding: 24px;
    background: #ffffff;
}

.case-study-preview-col {
    position: relative;
    border: 1px solid #111111;
    border-radius: 4px;
    overflow: hidden;
    background: #fcfcfc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

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

.case-study-preview-col:hover .case-study-preview-img {
    transform: scale(1.03);
}

.preview-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(17, 17, 17, 0.85);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.case-study-info-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-study-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
}

.case-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #111111;
}

.case-status-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent);
}

.case-study-title {
    font-family: 'Noto Serif', serif;
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.25;
}

.case-study-summary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    color: #444444;
    line-height: 1.6;
    margin: 0;
}

.case-metrics-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.pill-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111111;
}

.pill-divider {
    color: #cccccc;
    font-size: 10px;
}

.case-study-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 16px;
}

.case-toggle-btn {
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.case-toggle-btn:hover {
    background: var(--accent);
}

.toggle-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.case-study-row.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.case-tech-inline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: #777777;
    font-weight: 600;
}

/* Expandable Drawer */
.case-study-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    background: #fafafa;
    border-top: 1px solid #eeeeee;
}

.case-study-row.expanded .case-study-drawer {
    grid-template-rows: 1fr;
    border-top-color: #111111;
}

.drawer-inner {
    overflow: hidden;
}

.drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
}

.drawer-text-block h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111111;
    margin: 0 0 6px 0;
}

.drawer-text-block p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #444444;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.drawer-text-block ul {
    margin: 0 0 16px 0;
    padding-left: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #444444;
    line-height: 1.6;
}

.drawer-media-block {
    border: 1px solid #111111;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
}

.drawer-img {
    width: 100%;
    display: block;
}

.drawer-img-caption {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px;
    color: #666666;
    padding: 6px 12px;
    display: block;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

@media (max-width: 900px) {
    .case-study-main {
        grid-template-columns: 1fr;
    }
    .drawer-grid {
        grid-template-columns: 1fr;
    }
}

/* Editorial ROI Table Section */
.portfolio-roi-section {
    border: 1px solid #111111;
    border-radius: 4px;
    padding: 32px;
    background: #ffffff;
    margin-top: 24px;
}

.portfolio-section-title {
    font-family: 'Noto Serif', serif;
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 6px 0;
}

.portfolio-section-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    color: #666666;
    margin: 0 0 24px 0;
}

.roi-table-wrapper {
    overflow-x: auto;
}

.roi-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    text-align: left;
}

.roi-table th {
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid #111111;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
}

.roi-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #eeeeee;
    color: #222222;
}

.table-total-row td {
    border-top: 2px solid #111111;
    border-bottom: 2px solid #111111;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .portfolio-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-metrics-grid .metric-card {
        border-bottom: 1px solid #eeeeee;
    }
    .portfolio-projects-grid {
        grid-template-columns: 1fr;
    }
}

.cv-item-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.cv-item-desc:last-child {
    margin-bottom: 0;
}

.cv-item-desc strong {
    color: #111111;
}

/* ==========================================
   3-COLUMN SYNCHRONIZED FOCUS LAYOUT
   ========================================== */
.resume-3col-grid {
    display: grid;
    grid-template-columns: 1.8fr 4.4fr 1.8fr;
    gap: 28px;
    align-items: start;
}

.cv-media-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eeeeee;
    padding-right: 24px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sticky-media-panel {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-cards-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: opacity 0.25s ease;
}

.contextual-media-card {
    border: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.media-card-img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #111111;
    display: block;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, opacity 0.2s ease;
}

.contextual-media-card:hover .media-card-img {
    transform: translate3d(0, -2px, 0);
    border-color: var(--accent);
    opacity: 0.94;
}

.media-card-caption {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.35;
    margin: 4px 0 0 0;
}

/* ==========================================
   RESUME SIDEBAR & SKILLS HIGHLIGHTS
   ========================================== */
.resume-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 80px;
    height: fit-content;
    border-left: 1px solid #eeeeee;
    padding-left: 24px;
}

.sidebar-block {
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

.sidebar-block:first-child {
    border-top: none;
    padding-top: 0;
}

.sidebar-block-title {
    font-family: 'Noto Serif', serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

#cv-media-role-title {
    margin-bottom: 0;
}

.sidebar-block-subtitle {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    margin-top: 2px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-category-name {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999999;
    margin-bottom: 8px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: #111111;
    background-color: #ffffff;
    padding: 4px 9px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.25s ease;
}

.skill-tag.highlighted {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    font-weight: 600;
}

.sidebar-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
}

.sidebar-link-item:hover {
    border-color: #111111;
    color: var(--accent);
}

.link-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.sidebar-link-item:hover .link-arrow {
    transform: translate(2px, -2px);
}

.sidebar-photo-card {
    border: 1px solid #eeeeee;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.sidebar-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: opacity 0.25s ease;
    will-change: opacity;
}

.sidebar-photo-card:hover .sidebar-photo {
    opacity: 1;
}

.sidebar-photo-text {
    padding: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.sidebar-photo-text strong {
    display: block;
    font-size: 13px;
    color: #111111;
    margin-bottom: 4px;
}

}

/* Legal Consent Footer */
.cv-consent-footer {
    grid-column: 1 / -1; /* spans full width of resume grid */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: #888888;
    text-align: justify;
    line-height: 1.45;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

/* ==========================================
/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 850px) {
    .resume-3col-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cv-media-sidebar {
        order: 1;
    }
    
    .cv-accordion-group {
        order: 2;
    }
    
    .resume-sidebar {
        order: 3;
    }
    
    .accordion-title {
        font-size: 22px;
    }
    
    .accordion-body-inner {
        padding-left: 10px;
    }
    
    .cv-item {
        padding-left: 16px;
    }
}

/* ==========================================
   MEDIA CARD IMAGES, BUTTONS & MODAL STYLES
   ========================================== */
.media-card-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #111111;
    display: block;
}

.media-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.media-card-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.external-link-icon {
    width: 12px;
    height: 12px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
}

.skill-tag-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.skill-tag-link:hover {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    font-weight: 600;
}

.skill-tag-link:hover span, .skill-tag-link:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.btn-insta-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    stroke: currentColor;
}

.btn-arrow-icon {
    margin-left: 12px;
    font-weight: 600;
}

/* Lightbox Image Modal */
.lightbox-card {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.lightbox-full-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}

.lightbox-caption-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #111111;
    margin: 12px 0 0 0;
    text-align: center;
}

.lightbox-close-btn {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 26px;
    z-index: 10;
}

/* Modal Window Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card {
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 4px;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-title {
    font-family: 'Noto Serif', serif;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #111111;
}

.modal-article-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #111111;
    line-height: 1.45;
    margin: 0 0 8px 0;
}

.modal-meta-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    display: block;
}

.modal-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 16px 0;
}

.modal-text-content p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ==========================================================================
   Executive Print Stylesheet (@media print)
   ========================================================================== */
@media print {
    header.site-header,
    .case-toggle-btn,
    .modal-backdrop,
    .cta-container,
    .preview-zoom-hint {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }

    .slide-view {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .case-study-drawer {
        grid-template-rows: 1fr !important;
    }

    a {
        text-decoration: underline;
        color: #000000 !important;
    }
}
