        /* ==================================================================
           1. CV Surface Tokens & 1200px x 1697px (210:297 A4) Constants
           ================================================================== */
        :root {
            --cv-edge: 44px;
            --cv-rail: 366px;
            --cv-banner-h: 280px;

            /* Cool Natural Mineral / Eucalyptus Palette (White Sheet in Light Mode) */
            --cv-desk: #e3e9e8;
            --cv-sheet: #ffffff;
            --cv-sidebar: #e6d6bd;
            --cv-banner-a: #ddccb1;
            --cv-banner-b: #eaf0ee;
            --cv-rail-line: #c4d0ce;
            --cv-card-bg: #f5f8f7;
            --cv-ink-900: var(--fg);
            --cv-ink-700: var(--fg-soft);
            --cv-ink-500: var(--fg-mute);
            --cv-heading: "Plus Jakarta Sans", var(--ff-sans);
            --cv-body: "Inter", var(--ff-sans);
        }

        [data-theme="dark"] {
            --cv-desk: #080b0b;
            --cv-sheet: #0e1212;
            --cv-sidebar: #0c1312;
            --cv-banner-a: #182120;
            --cv-banner-b: #1e2827;
            --cv-rail-line: #2d3836;
            --cv-card-bg: #161c1b;
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) {
                --cv-desk: #080b0b;
                --cv-sheet: #0e1212;
                --cv-sidebar: #0c1312;
                --cv-banner-a: #182120;
                --cv-banner-b: #1e2827;
                --cv-rail-line: #2d3836;
                --cv-card-bg: #161c1b;
            }
        }

        html,
        body {
            overflow-x: hidden;
        }

        body {
            font-family: var(--cv-body);
            background: var(--bg);
            color: var(--cv-ink-700);
            min-height: 100vh;
            font-variant-numeric: tabular-nums;
        }

        .cv-page {
            width: 100%;
            min-height: 100vh;
            position: relative;
        }

        /* ==================================================================
           2. Sticky CV Topbar (Website Logo + Theme Toggle + Portfolio + PDF)
           ================================================================== */
        .cv-topbar {
            position: sticky;
            top: 0;
            z-index: 100;
            padding-block: 12px;
            background: var(--bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--line);
        }

        .cv-topbar .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--sp-4);
        }

        .cv-topbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cv-topbar .btn {
            --pad-y: 10px;
            --pad-x: 18px;
        }

        /* ==================================================================
           3. Fluid-Margined Framed A4 Canvas (Max 100px Edge Gap, Border & Shadow)
           ================================================================== */
        .cv-canvas {
            width: 100%;
            display: flex;
            justify-content: center;
            padding: clamp(18px, 3vw, 44px) clamp(16px, 5vw, 100px) clamp(28px, 4vw, 60px);
        }

        .cv-sheet-frame {
            width: 1200px;
            height: 1697px;
            position: relative;
            flex-shrink: 0;
            border-radius: var(--r-lg);
            border: 1px solid var(--line-strong);
            box-shadow: var(--sh-4);
            background: var(--cv-sheet);
            overflow: hidden;
        }

        .cv-sheet {
            width: 1200px;
            height: 1697px;
            background: var(--cv-sheet);
            color: var(--cv-ink-700);
            position: relative;
            overflow: hidden;
            transform-origin: top left;
        }

        [dir="rtl"] .cv-sheet {
            transform-origin: top right;
        }

        .cv-sheet a:hover {
            color: var(--accent-text);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        /* ==================================================================
           4. Full-Width Banner
           ================================================================== */
        .cv-banner {
            position: absolute;
            top: var(--cv-edge);
            left: 0;
            right: 0;
            width: 100%;
            height: var(--cv-banner-h);
            z-index: 50;
            background: var(--cv-banner-a);
            border-block: 1px solid var(--line);
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-inline-start: calc(var(--cv-edge) + var(--cv-rail) + 46px);
            padding-inline-end: 56px;
        }

        .cv-banner-eyebrow {
            font-family: var(--ff-mono);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--accent-text);
            margin-bottom: 6px;
        }

        .cv-banner-name {
            font-family: var(--cv-heading);
            font-size: 40px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--cv-ink-900);
            line-height: 1.05;
            margin-bottom: 8px;
        }

        .cv-banner-name .it {
            font-family: var(--ff-display);
            font-style: italic;
            font-weight: 600;
            text-transform: none;
            letter-spacing: -0.01em;
            font-size: 47px;
            color: var(--accent);
        }

        .cv-banner-role {
            font-family: var(--cv-heading);
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--cv-ink-700);
            padding-bottom: 10px;
            border-bottom: 1.5px solid var(--line-strong);
        }

        .cv-banner-sub {
            margin-top: 9px;
            font-size: 13px;
            font-weight: 600;
            color: var(--cv-ink-500);
            letter-spacing: 0.02em;
        }

        /* ==================================================================
           5. Elevated Sidebar Rail (366px Wide)
           ================================================================== */
        .cv-sidebar {
            position: absolute;
            top: 0;
            bottom: 0;
            inset-inline-start: var(--cv-edge);
            width: var(--cv-rail);
            z-index: 60;
            background: var(--cv-sidebar);
            border-inline: 1px solid var(--line);
            box-shadow: 4px 0 28px rgb(var(--shadow-color) / 0.1), -2px 0 10px rgb(var(--shadow-color) / 0.03);
            padding: var(--cv-edge) 32px 34px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .cv-avatar-zone {
            height: var(--cv-banner-h);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .cv-avatar {
            width: 206px;
            height: 206px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid var(--cv-sheet);
            box-shadow: var(--sh-3);
            background: var(--bg-sunk);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--ff-display);
            font-style: italic;
            font-size: 52px;
            font-weight: 700;
            color: var(--fg);
        }

        .cv-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            display: block;
        }

        .cv-side-title {
            font-family: var(--cv-heading);
            font-size: 14.5px;
            font-weight: 800;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--cv-ink-900);
            padding-bottom: 5px;
            margin-bottom: 9px;
            border-bottom: 2px solid var(--cv-ink-900);
        }

        .cv-contact-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .cv-contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12.8px;
            font-weight: 500;
            color: var(--cv-ink-900);
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cv-contact-icon {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--cv-ink-900);
            color: var(--cv-sheet);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .cv-contact-icon svg {
            width: 13px;
            height: 13px;
        }

        .cv-skill-group {
            margin-bottom: 9px;
        }

        .cv-skill-group:last-child {
            margin-bottom: 0;
        }

        .cv-skill-cat {
            font-family: var(--cv-heading);
            font-size: 12.5px;
            font-weight: 800;
            color: var(--accent-text);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 4px;
        }

        .cv-bullet-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .cv-bullet-list li {
            position: relative;
            padding-inline-start: 14px;
            font-size: 12.8px;
            font-weight: 500;
            color: var(--cv-ink-900);
            line-height: 1.32;
        }

        .cv-bullet-list li::before {
            content: "•";
            position: absolute;
            inset-inline-start: 0;
            top: 0;
            font-weight: 800;
            color: var(--accent);
        }

        .cv-bullet-list li .muted {
            color: var(--cv-ink-500);
        }

        /* Portfolio QR Card */
        .cv-qr-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .cv-qr-title-full {
            width: 100%;
            text-align: center;
            border: none;
        }

        .cv-qr-frame {
            display: inline-flex;
            margin-bottom: 6px;
            mix-blend-mode: multiply;
        }

        [data-theme="dark"] .cv-qr-frame {
            mix-blend-mode: normal;
        }

        .cv-qr-frame img {
            width: 120px;
            height: 120px;
            display: block;
        }

        .cv-qr-label {
            font-family: var(--cv-heading);
            font-size: 12.5px;
            font-weight: 700;
            color: var(--cv-ink-900);
        }

        .cv-qr-hint {
            font-size: 11px;
            color: var(--cv-ink-500);
            margin-top: 2px;
        }

        /* ==================================================================
           6. Right Main Content Column (790px Wide)
           ================================================================== */
        .cv-main {
            position: absolute;
            top: calc(var(--cv-edge) + var(--cv-banner-h));
            inset-inline-start: calc(var(--cv-edge) + var(--cv-rail));
            inset-inline-end: 0;
            bottom: 0;
            z-index: 15;
            padding: 28px 56px 32px 46px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: var(--cv-sheet);
        }

        .cv-content {
            display: flex;
            flex-direction: column;
            gap: 32px;
        }

        .cv-section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .cv-section-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--cv-ink-900);
            color: var(--cv-sheet);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 0 0 4px var(--cv-sidebar);
        }

        .cv-section-icon svg {
            width: 15px;
            height: 15px;
        }

        .cv-section-title-wrap {
            flex: 1;
            padding-bottom: 5px;
            border-bottom: 2px solid var(--cv-ink-900);
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 12px;
        }

        .cv-section-title {
            font-family: var(--cv-heading);
            font-size: 15px;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--cv-ink-900);
        }

        .cv-section-link {
            font-family: var(--ff-mono);
            font-size: 11.5px;
            font-weight: 600;
            color: var(--accent-text);
            white-space: nowrap;
        }

        .cv-entry-title a {
            color: var(--accent-text);
        }

        /* Timeline Rail */
        .cv-timeline {
            position: relative;
            margin-inline-start: 15px;
            padding-inline-start: 22px;
            border-inline-start: 2px solid var(--cv-rail-line);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .cv-entry {
            position: relative;
        }

        .cv-entry::before {
            content: "";
            position: absolute;
            inset-inline-start: -28px;
            top: 5px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--cv-sheet);
            border: 2px solid var(--accent);
        }

        .cv-summary {
            font-size: 13.5px;
            line-height: 1.46;
            color: var(--cv-ink-700);
        }

        .cv-summary strong {
            color: var(--cv-ink-900);
            font-weight: 600;
        }

        .cv-entry-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .cv-entry-title {
            font-family: var(--cv-heading);
            font-size: 14px;
            font-weight: 700;
            color: var(--cv-ink-900);
            line-height: 1.25;
        }

        .cv-entry-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            align-self: center;
            font-family: var(--cv-heading);
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 0.04em;
            color: var(--cv-ink-500);
            padding: 3.5px 8px;
            white-space: nowrap;
            flex-shrink: 0;
            min-height: 0;
            line-height: 20px;
        }

        .cv-entry-org {
            font-size: 12.8px;
            font-weight: 600;
            color: var(--cv-ink-500);
            margin-top: 2px;
            margin-bottom: 3px;
        }

        .cv-entry-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 2.5px;
        }

        .cv-entry-list li {
            position: relative;
            padding-inline-start: 14px;
            font-size: 12.8px;
            line-height: 1.36;
            color: var(--cv-ink-700);
        }

        .cv-entry-list li::before {
            content: "•";
            position: absolute;
            inset-inline-start: 0;
            top: 0;
            color: var(--accent);
            font-weight: 800;
        }

        .cv-entry-list li strong {
            color: var(--cv-ink-900);
            font-weight: 600;
        }

        /* ==================================================================
           7. Upgraded 3x3 Symmetrical Course Grid (IBM & Google Credentials)
           ================================================================== */
        .cv-courses-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-top: 8px;
        }

        .cv-course-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 4px;
            padding: 8px 10px;
            background: var(--cv-card-bg);
            border: 1px solid var(--line);
            border-radius: 8px;
            transition: border-color var(--d-fast) var(--ease-out);
        }

        .cv-course-card:hover {
            border-color: var(--accent);
        }

        .cv-course-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }

        .cv-course-issuer {
            font-family: var(--ff-mono);
            font-size: 9.5px;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            padding: 2px 7px;
            border-radius: 999px;
            color: #ffffff;
            line-height: 1.25;
        }

        .cv-course-issuer.is-ibm {
            background: #0f62fe;
        }

        .cv-course-issuer.is-google {
            background: #137333;
        }

        .cv-course-arrow {
            font-size: 11px;
            font-weight: 700;
            color: var(--accent-text);
            line-height: 1;
        }

        .cv-course-title {
            font-family: var(--cv-heading);
            font-size: 11.2px;
            font-weight: 700;
            color: var(--cv-ink-900);
            line-height: 1.22;
            display: block;
        }

        .cv-course-desc {
            font-size: 10.2px;
            line-height: 1.25;
            color: var(--cv-ink-500);
        }

        /* Sheet Footer */
        .cv-sheet-footer {
            padding-top: 8px;
            border-top: 1px solid var(--line);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11.8px;
            color: var(--cv-ink-500);
            flex-shrink: 0;
        }

        .cv-sheet-footer strong {
            font-family: var(--cv-heading);
            color: var(--cv-ink-900);
            font-size: 11.4px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .theme-transition .cv-page,
        .theme-transition .cv-topbar,
        .theme-transition .cv-sheet,
        .theme-transition .cv-banner,
        .theme-transition .cv-sidebar,
        .theme-transition .cv-main,
        .theme-transition .cv-course-card,
        .theme-transition .cv-entry-badge {
            transition:
                background-color 350ms var(--ease-out),
                color 350ms var(--ease-out),
                border-color 350ms var(--ease-out);
        }

        .cv-footer {
            padding-block: var(--sp-5) var(--sp-6);
            border-top: 1px solid var(--line);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: var(--sp-4);
            font-size: var(--fs-13);
            color: var(--fg-mute);
        }

        .cv-footer .socials {
            display: flex;
            gap: 8px;
        }

        .cv-footer .socials a {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid var(--line-strong);
            display: grid;
            place-items: center;
            color: var(--fg-soft);
            transition:
                background var(--d-fast) var(--ease-out),
                color var(--d-fast) var(--ease-out),
                border-color var(--d-fast) var(--ease-out);
        }

        .cv-footer .socials a:hover {
            background: var(--fg);
            color: var(--bg);
            border-color: var(--fg);
        }

        /* ==================================================================
           8. Exact 1-Page A4 Print Rules (Preserves Active Theme)
           ================================================================== */
        @page {
            size: A4 portrait;
            margin: 0;
        }

        @media print {
            * {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            html,
            body {
                width: 210mm !important;
                height: 296.6mm !important;
                max-height: 296.6mm !important;
                background: var(--cv-sheet) !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                scrollbar-gutter: auto !important;
            }

            .no-print,
            .scroll-progress,
            .cursor,
            .skip {
                display: none !important;
            }

            .cv-page {
                transform: none !important;
                width: 210mm !important;
                height: 296.6mm !important;
                border: 0 !important;
                box-shadow: none !important;
                margin: 0 !important;
                background: var(--cv-sheet) !important;
                overflow: hidden !important;
            }

            .cv-canvas,
            .cv-sheet-frame {
                width: 210mm !important;
                height: 296.6mm !important;
                margin: 0 !important;
                padding: 0 !important;
                border: 0 !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                overflow: hidden !important;
                background: var(--cv-sheet) !important;
            }

            /* 793.7px / 1200px = 0.6614 -> exact 210mm x 296.9mm fit */
            .cv-sheet {
                width: 1200px !important;
                height: 1697px !important;
                transform: scale(0.6614) !important;
                transform-origin: top left !important;
                margin: 0 !important;
                box-shadow: none !important;
                border: 0 !important;
            }

            [dir="rtl"] .cv-sheet {
                transform-origin: top right !important;
            }

            .cv-sidebar,
            .cv-qr-frame,
            .cv-avatar {
                box-shadow: none !important;
            }

            .cv-sheet a:hover {
                color: inherit;
                text-decoration: none;
            }
        }

        @media (max-width: 480px) {
            .cv-topbar .nav {
                flex-direction: column;
            }

            .cv-sheet-frame {
                border-radius: var(--r-sm);
                box-shadow: var(--sh-2);
            }
        }