:root {
    /* Brand Colors */
    --primary-color-light: #0e88eb;
    --primary-color-light-rgb: 14, 136, 235;
    --primary-color-dark: #0a209a;
    --primary-color-dark-rgb: 10, 32, 154;
    --secondary-color: #1a1a1a;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f8f9fa;
    --gray-200: #f4f4f9;
    --gray-300: #e0e0e0;
    --gray-400: #cccccc;
    --gray-500: #aaaaaa;
    --gray-600: #888888;
    --gray-700: #666666;
    --gray-800: #555555;
    --gray-900: #333333;
    --black: #111111;

    /* Theme Mappings */
    --bg-color: var(--gray-200);
    --text-color: var(--gray-900);
    --light-text: var(--white);
    --border-color: #eeeeee;
    --footer-bg: var(--black);
    --surface: var(--white);
    --surface-muted: var(--gray-50);
    --muted-text: var(--gray-600);
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.1);
    --menu-hover-bg: var(--gray-50);
    --btn-nav-bg: #1a1a1a;

    /* Gradients */
    --brand-gradient: linear-gradient(to top, var(--primary-color-dark), var(--primary-color-light));
    --vertical-gradient: linear-gradient(to top, var(--primary-color-dark), var(--primary-color-light));

    /* Layout */
    --border-radius-main: 12px;
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography — shared across content sections */
    --type-section-title: clamp(2rem, 4vw, 2.5rem);
    --type-subsection-title: 1.5rem;
    --type-section-lead: 1.2rem;
    --type-body: 1.05rem;
    --type-body-line: 1.75;
    --type-meta: 0.95rem;
    --type-kicker: 0.85rem;

    /* Visuals Common */
    --box-border: 1px solid var(--gray-300);
    --box-shadow: 0 4px 10px rgba(var(--primary-color-dark-rgb), 0.1);
    --box-bg: var(--white);

    color-scheme: light;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #0e1118;
    --text-color: #d8dce6;
    --secondary-color: #f0f2f7;
    --border-color: #2a3142;
    --footer-bg: #080a10;
    --surface: #161b26;
    --surface-muted: #12161f;
    --muted-text: #9aa3b5;
    --header-bg: rgba(14, 17, 24, 0.92);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.45);
    --menu-hover-bg: rgba(255, 255, 255, 0.06);
    --box-border: 1px solid var(--border-color);
    --box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    --box-bg: #1a2030;
    --btn-nav-bg: var(--primary-color-light);
    --gray-300: #3a4256;
    --gray-400: #7a8499;
    --gray-500: #8b95a8;
    --gray-600: #9aa3b5;
    --gray-700: #aeb6c6;
    --gray-800: #c5cbd6;

    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1.2vw, 18px);
    scroll-padding-top: calc(var(--header-height) + 1rem);
    overflow-x: clip;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.icon-sm {
    width: 0.75em;
    height: 0.75em;
}

#draft-bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    filter: blur(3.0px);
}

#draft-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#draft-overlay {
    position: absolute;
    display: block;
    filter: blur(1.5px);
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--secondary-color);
    font-weight: 800;
}

/* Section typography (tailored, showcase, about, contact) */
.tailored-section h2,
.showcase-header h2,
.founder-contact h2 {
    font-size: var(--type-section-title);
    text-align: center;
    margin-bottom: 1.5rem;
}

.showcase-header h2 {
    margin-bottom: 0.5rem;
}

.founder-contact h2 {
    margin: 0 0 0.75rem;
    line-height: 1.05;
}

.section-lead,
.hero-subtitle {
    font-size: var(--type-section-lead);
    color: var(--gray-700);
    line-height: var(--type-body-line);
}

.section-body,
.tailored-intro p,
.about-text,
.about-speaking,
.founder-contact p,
.showcase-header .subtitle,
.showcase-actions p,
.repo-card p {
    font-size: var(--type-body);
    color: var(--gray-800);
    line-height: var(--type-body-line);
}

.section-meta {
    font-size: var(--type-meta);
    line-height: var(--type-body-line);
}

.section-meta {
    color: var(--gray-600);
}

.about-speaking {
    color: var(--gray-700);
}

.section-kicker,
.about-kicker {
    font-size: var(--type-kicker);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.about-kicker {
    color: var(--primary-color-light);
}

.section-subtitle,
.media-section h3,
.about-name {
    font-size: var(--type-subsection-title);
    font-weight: 800;
    color: var(--secondary-color);
}

.about-name {
    margin: 0 0 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    /* +2rem keeps the pre-border-box content width (padding used to sit outside width) */
    width: calc(90% + 2rem);
    max-width: calc(var(--container-width) + 2rem);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}



/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--brand-gradient);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-origin: border-box;
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(var(--primary-color-light-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-dark-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--light-text);
}

/* --- HEADER & NAV --- */
#main-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    box-shadow: var(--header-shadow);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

main {
    padding-top: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.logo {
    flex: 0 1 auto;
    min-width: 0;
}

.logo img {
    display: block;
    max-height: 40px;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
}

.nav-links a:hover {
    color: var(--primary-color-light);
}

.btn-nav {
    padding: 0.5rem 1.2rem;
    color: #fff !important;
    border-radius: 6px;
    background-image: var(--brand-gradient);
    box-shadow: inset 0 0 0 100vmax var(--btn-nav-bg);
    transition: box-shadow 0.3s ease;
}

.btn-nav:hover {
    box-shadow: inset 0 0 0 100vmax transparent;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 0 5rem 0;
    position: relative;
}

.hero-header {
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 1.5rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-header h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-header h1 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin: 1rem auto 0;
    max-width: 36rem;
    font-weight: 400;
}

/* Pipeline Container */
.pipeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 70rem;
    margin: 0 auto;
}

/* Card Component */
.card {
    background: var(--box-bg);
    border-radius: var(--border-radius-main);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 2rem;
    flex: 1;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--card-shadow-hover);
    z-index: 2;
}

.card.outstanding {
    border: 2px solid transparent;
    background: linear-gradient(var(--box-bg), var(--box-bg)) padding-box, var(--brand-gradient) border-box;
    box-shadow: 0 8px 30px rgba(var(--primary-color-light-rgb), 0.15);
    transform: scale(1.05);
}

.card.outstanding:hover {
    transform: scale(1.05) translateY(-0.5rem);
}

/* Card Labels */
.label-top {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--muted-text);
    margin-bottom: 1rem;
    text-align: center;
}

.highlight-text {
    color: var(--primary-color-light);
}

.label-desc {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.3;
}

/* Visual Container */
.visual-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.visual-box {
    background: var(--box-bg);
    border: var(--box-border);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    position: relative;
    display: flex;
    justify-content: center;
}

/* Visual 1: Input (Sketch) */
.sketch-visual {
    width: 6rem;
    height: 7.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.sketch-line {
    width: 60%;
    height: 0.2rem;
    background: var(--vertical-gradient);
    border-radius: 1rem;
    opacity: 0.8;
}

.sketch-line.short {
    width: 40%;
}

.pencil {
    position: absolute;
    bottom: 0.5rem;
    right: -0.5rem;
    font-size: 1.5rem;
    animation: write 2.5s infinite ease-in-out;
    opacity: 0.9;
}


/* Visual 2: Process (Mini Code Editor) */
.mini-editor {
    width: 10rem;
    height: 8rem;
    background: #1e1e1e;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    text-align: left;
}

.editor-header {
    background: #2d2d2d;
    padding: 0.4rem;
    display: flex;
    gap: 0.3rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.editor-content {
    padding: 0.4rem 0.65rem;
    color: #d4d4d4;
    white-space: pre-wrap;
    line-height: 1.2;
    flex-grow: 1;
    display: block;
}

#typewriter-code {
    color: #9cdcfe;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary-color-light);
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Visual 3: Outcome (Chart) */
.result-visual {
    width: 8rem;
    height: 6rem;
    align-items: flex-end;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    overflow: hidden;
}

.bar {
    width: 1rem;
    border-radius: 2px 2px 0 0;
    background: var(--vertical-gradient);
    opacity: 0.8;
    animation: rise 1s ease-out forwards;
}

/* Arrow Between Cards */
.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gray-400);
    z-index: 0;
}

.arrow-icon {
    display: block;
    animation: nudgeX 3s infinite ease-in-out;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color-light);
    animation: bounce 2s infinite;
    z-index: 10;
}

/* --- TAILORED INTRO (between hero and laptop showcase) --- */
.tailored-section {
    padding: 3rem 0 2.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
}

.tailored-section h2 {
    text-align: center;
}

.tailored-intro {
    max-width: 42rem;
    margin: 0 auto;
    text-align: left;
}

.tailored-intro p {
    margin: 0 0 0.85rem;
}

.tailored-intro p:last-child {
    margin-bottom: 0;
}

/* --- FOUNDER + CONTACT --- */
.founder-section {
    --founder-divider-gap: 2.5rem;
    padding: 4rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
}

.founder-contact {
    max-width: 36rem;
    margin: 0 auto;
    padding-top: 0;
    border-top: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.founder-contact::before {
    content: '';
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: var(--founder-divider-gap);
}

.founder-contact p {
    margin: 0 0 1.5rem;
}

.founder-contact .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.about-founder {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 56rem;
    margin: 0 clamp(0rem, 4vw, 3rem) 0 auto;
}

.about-photo {
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(var(--primary-color-dark-rgb), 0.12);
    aspect-ratio: 1;
    position: relative;
}

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

.about-photo .headshot-dark {
    display: none;
}

[data-theme="dark"] .about-photo .headshot-light {
    display: none;
}

[data-theme="dark"] .about-photo .headshot-dark {
    display: block;
}

.about-bio {
    text-align: left;
}

.about-kicker {
    margin: 0 0 0.35rem;
}

.about-text {
    margin: 0 0 0.75rem;
}

.about-speaking {
    margin: 0 0 1.25rem;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--founder-divider-gap, 2.5rem);
}

.about-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--primary-color-light);
    color: var(--primary-color-dark);
}

.about-linkedin:hover {
    background: rgba(var(--primary-color-light-rgb), 0.08);
    color: var(--primary-color-dark);
}

/* --- LAPTOP SHOWCASE --- */
.laptop-showcase {
    --laptop-w: clamp(240px, 34vw, 420px);
    --laptop-u: calc(var(--laptop-w) / 42);
    --laptop-screen-h: calc(var(--laptop-w) * 0.625);
    --laptop-bezel: var(--laptop-u);
    --laptop-base-h: calc(var(--laptop-u) * 1.6);
    --laptop-base-scale: 1.05;
    --laptop-base-corner-x: calc(var(--laptop-u) * 3.2);
    --laptop-base-corner-y: calc(var(--laptop-u) * 2.4);
    --laptop-gap: calc(var(--laptop-u) * 4);
    --laptop-radius-outer: calc(var(--laptop-u) * 1.2);
    --laptop-radius-inner: calc(var(--laptop-u) * 0.2);
    --laptop-radius-md: calc(var(--laptop-u) * 0.3);
    --laptop-stroke: max(1px, calc(var(--laptop-u) * 0.1));
    --mock-screen: #f5f7fb;
    --mock-page: #f0f4fa;
    --mock-page-2: #eceef3;
    --mock-page-3: #e8ebf2;
    --mock-card: #ffffff;
    --mock-border: #e2e8f0;
    --mock-border-2: #dde2ec;
    --mock-muted: #dde4ee;
    --mock-muted-2: #dfe5ef;
    --mock-muted-3: #d0daf0;
    --mock-label: #b8c2d0;
    --mock-input: #f4f6fb;
    --mock-input-border: #cdd5e0;
    --mock-soft: #e8edf4;
    --mock-soft-2: #eef2f8;
    --mock-ink: #1a2744;
    --mock-ink-mid: #2d4060;
    --mock-toggle: #c4ccd8;
    --mock-clip-a: #c8d8f0;
    --mock-wave-a: #a8c8e8;
    --mock-accent: #6baef0;
    --mock-status-ok: #d4edda;
    --mock-status-warn: #fff3cd;
    --mock-shadow: rgba(0, 0, 0, 0.06);
    --mock-knob: #ffffff;
    padding: calc(var(--laptop-u) * 3.2) 0 calc(var(--laptop-u) * 4);
    overflow: hidden;
    background: var(--surface);
    border-bottom: var(--laptop-stroke) solid var(--border-color);
}

[data-theme="dark"] .laptop-showcase {
    --mock-screen: #0f131a;
    --mock-page: #141923;
    --mock-page-2: #161b26;
    --mock-page-3: #12161f;
    --mock-card: #1c2330;
    --mock-border: #2a3344;
    --mock-border-2: #2a3344;
    --mock-muted: #2e3848;
    --mock-muted-2: #343e50;
    --mock-muted-3: #3a465a;
    --mock-label: #5a6a82;
    --mock-input: #151a24;
    --mock-input-border: #3a465a;
    --mock-soft: #252d3c;
    --mock-soft-2: #2a3344;
    --mock-ink: #7eb0f0;
    --mock-ink-mid: #4a6a9a;
    --mock-toggle: #3a465a;
    --mock-clip-a: #2a4060;
    --mock-wave-a: #3a6090;
    --mock-accent: #4a8fd4;
    --mock-status-ok: #1e3d2a;
    --mock-status-warn: #3d3518;
    --mock-shadow: rgba(0, 0, 0, 0.35);
}

.laptop-track {
    display: flex;
    align-items: flex-end;
    width: max-content;
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    .laptop-track-enter {
        animation: laptop-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@keyframes laptop-enter {
    from {
        opacity: 0;
        transform: translateX(12vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.laptop {
    margin: 0 calc(var(--laptop-gap) / 2);
    width: var(--laptop-w);
    flex: 0 0 var(--laptop-w);
}

.laptop-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--laptop-w);
    filter: drop-shadow(0 calc(var(--laptop-u) * 1.6) calc(var(--laptop-u) * 2.8) rgba(0, 0, 0, 0.12));
}

.laptop-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: var(--laptop-screen-h);
    box-sizing: border-box;
    padding: 0 var(--laptop-bezel) var(--laptop-bezel);
    border-radius: var(--laptop-radius-outer) var(--laptop-radius-outer) 0 0;
    background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 100%);
    border: var(--laptop-stroke) solid #48484a;
    border-bottom: none;
    overflow: hidden;
}

.laptop-bezel {
    position: relative;
    flex-shrink: 0;
    height: var(--laptop-bezel);
    margin: 0 calc(var(--laptop-bezel) * -1);
}

.laptop-camera {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--laptop-u) * 5.2);
    height: calc(var(--laptop-u) * 0.6);
    border-radius: 0 0 calc(var(--laptop-u) * 0.6) calc(var(--laptop-u) * 0.6);
    background: #0a0a0a;
    box-shadow: inset 0 max(1px, calc(var(--laptop-u) * 0.1)) calc(var(--laptop-u) * 0.2) rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.laptop-screen-inner {
    flex: 1;
    min-height: 0;
    border-radius: var(--laptop-radius-inner) var(--laptop-radius-inner) 0 0;
    overflow: hidden;
    background: var(--mock-screen);
}

.laptop-base {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    width: calc(var(--laptop-w) * var(--laptop-base-scale));
    height: var(--laptop-base-h);
    padding-bottom: var(--laptop-radius-inner);
    box-sizing: border-box;
    border-radius: 0 0 var(--laptop-base-corner-x) var(--laptop-base-corner-x)
        / 0 0 var(--laptop-base-corner-y) var(--laptop-base-corner-y);
    background: linear-gradient(180deg, #5a5a5e 0%, #c8c8cd 14%, #a8a8ad 55%, #8e8e93 100%);
    box-shadow:
        0 calc(var(--laptop-u) * -0.1) 0 #4a4a4e,
        0 calc(var(--laptop-u) * 0.5) calc(var(--laptop-u) * 1.2) rgba(0, 0, 0, 0.1);
}

.laptop-base::before {
    content: '';
    display: block;
    width: 88%;
    height: calc(var(--laptop-u) * 0.6);
    border-radius: 0 0 calc(var(--laptop-u) * 0.4) calc(var(--laptop-u) * 0.4)
        / 0 0 var(--laptop-radius-inner) var(--laptop-radius-inner);
    background: linear-gradient(180deg, #c4c4c9 0%, #a8a8ad 100%);
    box-shadow: 0 max(1px, calc(var(--laptop-u) * 0.1)) 0 rgba(255, 255, 255, 0.35) inset;
}

.laptop-base::after {
    content: '';
    display: block;
    width: 20%;
    height: calc(var(--laptop-u) * 0.3);
    margin-top: var(--laptop-radius-inner);
    border-radius: 0 0 calc(var(--laptop-u) * 0.3) calc(var(--laptop-u) * 0.3)
        / 0 0 var(--laptop-radius-inner) var(--laptop-radius-inner);
    background: linear-gradient(180deg, #9a9a9f 0%, #7a7a80 100%);
}

/* UI mockups — clipped to screen inner */
.laptop-showcase .ui-mock {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 1. Analytics dashboard */
.laptop-showcase .ui-analytics {
    flex-direction: column;
    background: var(--mock-page);
    padding: calc(var(--laptop-u) * 0.8);
    gap: calc(var(--laptop-u) * 0.6);
    min-height: 0;
}

.laptop-showcase .ui-analytics .ui-nav {
    display: flex;
    gap: calc(var(--laptop-u) * 0.4);
    flex-shrink: 0;
    align-items: center;
    padding-bottom: calc(var(--laptop-u) * 0.2);
    border-bottom: var(--laptop-stroke) solid var(--mock-border);
}

.laptop-showcase .ui-analytics .ui-nav span {
    display: block;
    height: calc(var(--laptop-u) * 0.9);
    border-radius: calc(var(--laptop-u) * 0.15);
    background: var(--mock-muted);
}

.laptop-showcase .ui-analytics .ui-nav span:nth-child(1) { width: 16%; }
.laptop-showcase .ui-analytics .ui-nav span:nth-child(2) { width: 11%; }
.laptop-showcase .ui-analytics .ui-nav span:nth-child(3) { width: 13%; }
.laptop-showcase .ui-analytics .ui-nav span:nth-child(4) { width: 10%; }

.laptop-showcase .ui-analytics .ui-nav span.active {
    background: var(--primary-color-light);
}

.laptop-showcase .ui-analytics .ui-cards {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: calc(var(--laptop-u) * 0.45);
}

.laptop-showcase .ui-analytics .ui-card {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.35);
    padding: calc(var(--laptop-u) * 0.5);
    border-radius: var(--laptop-radius-md);
    background: var(--mock-card);
    box-shadow: 0 0 0 var(--laptop-stroke) var(--mock-shadow);
    overflow: hidden;
}

.laptop-showcase .ui-analytics .ui-card-title {
    display: block;
    width: 55%;
    height: calc(var(--laptop-u) * 0.55);
    flex-shrink: 0;
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-ink);
}

.laptop-showcase .ui-analytics .ui-viz {
    flex: 1;
    min-height: 0;
    border-radius: var(--laptop-radius-inner);
    overflow: hidden;
}

.laptop-showcase .ui-analytics .ui-viz-line {
    background: var(--mock-input);
    position: relative;
}

.laptop-showcase .ui-analytics .ui-viz-line::before {
    content: '';
    position: absolute;
    inset: 10% 6% 20%;
    background: linear-gradient(180deg, rgba(14, 136, 235, 0.22) 0%, rgba(14, 136, 235, 0.04) 100%);
    clip-path: polygon(0% 68%, 18% 52%, 36% 58%, 54% 32%, 72% 44%, 90% 22%, 100% 30%, 100% 100%, 0% 100%);
}

.laptop-showcase .ui-analytics .ui-viz-line::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 20%;
    height: var(--laptop-stroke);
    background: var(--mock-muted);
}

.laptop-showcase .ui-analytics .ui-viz-bar {
    display: flex;
    align-items: flex-end;
    gap: calc(var(--laptop-u) * 0.25);
    padding: 8%;
    background: var(--mock-input);
}

.laptop-showcase .ui-analytics .ui-viz-bar span {
    flex: 1;
    height: var(--h);
    min-height: calc(var(--laptop-u) * 0.4);
    border-radius: var(--laptop-radius-inner) var(--laptop-radius-inner) 0 0;
    background: linear-gradient(180deg, var(--primary-color-light), var(--primary-color-dark));
    opacity: 0.9;
}

.laptop-showcase .ui-analytics .ui-viz-pie {
    container-type: size;
    display: grid;
    place-items: center;
    background: var(--mock-input);
    padding: 6%;
    box-sizing: border-box;
}

.laptop-showcase .ui-analytics .ui-viz-pie::before {
    content: '';
    width: min(84cqw, 84cqh);
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color-light) 0deg 130deg,
        var(--mock-accent) 130deg 210deg,
        var(--mock-muted-3) 210deg 300deg,
        var(--mock-soft) 300deg 360deg
    );
    box-shadow: inset 0 0 0 20% var(--mock-input);
}

.laptop-showcase .ui-analytics .ui-viz-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: calc(var(--laptop-u) * 0.35);
    padding: 8%;
    background: var(--mock-input);
}

.laptop-showcase .ui-analytics .ui-viz-list span {
    display: block;
    height: calc(var(--laptop-u) * 0.5);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-border);
}

.laptop-showcase .ui-analytics .ui-viz-list span:nth-child(1) { width: 92%; }
.laptop-showcase .ui-analytics .ui-viz-list span:nth-child(2) { width: 78%; background: var(--mock-muted-3); }
.laptop-showcase .ui-analytics .ui-viz-list span:nth-child(3) { width: 85%; }
.laptop-showcase .ui-analytics .ui-viz-list span:nth-child(4) { width: 65%; background: var(--primary-color-light); opacity: 0.35; }

/* 2. Invoice editor */
.laptop-showcase .ui-invoice {
    background: var(--mock-page-2);
}

.laptop-showcase .ui-invoice .ui-form {
    width: 44%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: calc(var(--laptop-u) * 0.45);
    padding: calc(var(--laptop-u) * 0.85);
    border-right: var(--laptop-stroke) solid var(--mock-border-2);
    background: var(--mock-card);
    overflow: hidden;
}

.laptop-showcase .ui-invoice .ui-field-row {
    display: flex;
    gap: calc(var(--laptop-u) * 0.45);
    flex-shrink: 0;
}

.laptop-showcase .ui-invoice .ui-field-row .ui-field {
    flex: 1;
    min-width: 0;
}

.laptop-showcase .ui-invoice .ui-field {
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.3);
    flex: 1;
    min-height: 0;
}

.laptop-showcase .ui-invoice .ui-label {
    display: block;
    width: 48%;
    height: calc(var(--laptop-u) * 0.6);
    flex-shrink: 0;
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-label);
}

.laptop-showcase .ui-invoice .ui-label.short {
    width: 55%;
}

.laptop-showcase .ui-invoice .ui-input {
    display: block;
    flex: 1;
    min-height: calc(var(--laptop-u) * 1.35);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-input);
    box-shadow: inset 0 0 0 var(--laptop-stroke) var(--mock-input-border);
}

.laptop-showcase .ui-invoice .ui-input.lg {
    min-height: calc(var(--laptop-u) * 1.65);
}

.laptop-showcase .ui-invoice .ui-input.area {
    flex: 1.8;
    min-height: calc(var(--laptop-u) * 2.8);
}

.laptop-showcase .ui-invoice .ui-preview {
    flex: 1;
    min-width: 0;
    padding: calc(var(--laptop-u) * 0.7);
    display: flex;
    align-items: stretch;
}

.laptop-showcase .ui-invoice .ui-doc {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.45);
    padding: calc(var(--laptop-u) * 0.8);
    border-radius: var(--laptop-radius-md);
    background: var(--mock-card);
    box-shadow: 0 calc(var(--laptop-u) * 0.15) calc(var(--laptop-u) * 0.6) var(--mock-shadow);
    overflow: hidden;
}

.laptop-showcase .ui-invoice .ui-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.laptop-showcase .ui-invoice .ui-doc-logo {
    width: 32%;
    height: calc(var(--laptop-u) * 0.9);
    border-radius: var(--laptop-radius-inner);
    background: var(--primary-color-light);
}

.laptop-showcase .ui-invoice .ui-doc-no {
    width: 24%;
    height: calc(var(--laptop-u) * 0.55);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-border);
}

.laptop-showcase .ui-invoice .ui-doc-meta {
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.2);
    flex-shrink: 0;
}

.laptop-showcase .ui-invoice .ui-doc-meta span {
    display: block;
    width: 55%;
    height: calc(var(--laptop-u) * 0.45);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-soft);
}

.laptop-showcase .ui-invoice .ui-doc-lines {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.3);
    padding-top: calc(var(--laptop-u) * 0.2);
    border-top: var(--laptop-stroke) solid var(--mock-page-3);
}

.laptop-showcase .ui-invoice .ui-doc-line {
    display: flex;
    gap: calc(var(--laptop-u) * 0.3);
    flex-shrink: 0;
}

.laptop-showcase .ui-invoice .ui-doc-line span {
    flex: 1;
    height: calc(var(--laptop-u) * 0.5);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-soft-2);
}

.laptop-showcase .ui-invoice .ui-doc-line.head span {
    height: calc(var(--laptop-u) * 0.55);
    background: var(--mock-muted-3);
}

.laptop-showcase .ui-invoice .ui-doc-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: calc(var(--laptop-u) * 0.4);
    flex-shrink: 0;
    padding-top: calc(var(--laptop-u) * 0.35);
    border-top: var(--laptop-stroke) solid var(--mock-page-3);
}

.laptop-showcase .ui-invoice .ui-doc-total span:first-child {
    width: 26%;
    height: calc(var(--laptop-u) * 0.5);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-label);
}

.laptop-showcase .ui-invoice .ui-doc-total span:last-child {
    width: 20%;
    height: calc(var(--laptop-u) * 0.7);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-ink);
}

/* 3. Control panel */
.laptop-showcase .ui-controlpanel {
    background: var(--mock-page-3);
}

.laptop-showcase .ui-controlpanel .ui-cp-nav {
    width: calc(var(--laptop-u) * 3.2);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--laptop-u) * 0.55);
    padding: calc(var(--laptop-u) * 0.8) 0;
    background: var(--mock-ink);
}

.laptop-showcase .ui-controlpanel .ui-cp-nav span {
    display: block;
    width: calc(var(--laptop-u) * 1.1);
    height: calc(var(--laptop-u) * 1.1);
    border-radius: var(--laptop-radius-md);
    background: rgba(255, 255, 255, 0.14);
}

.laptop-showcase .ui-controlpanel .ui-cp-nav span.active {
    background: var(--primary-color-light);
}

.laptop-showcase .ui-controlpanel .ui-cp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.5);
    padding: calc(var(--laptop-u) * 0.7);
    overflow: hidden;
}

.laptop-showcase .ui-controlpanel .ui-cp-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.45);
    padding: calc(var(--laptop-u) * 0.7);
    border-radius: var(--laptop-radius-md);
    background: var(--mock-card);
    box-shadow: 0 0 0 var(--laptop-stroke) var(--mock-shadow);
}

.laptop-showcase .ui-controlpanel .ui-cp-heading {
    display: block;
    width: 36%;
    height: calc(var(--laptop-u) * 0.7);
    flex-shrink: 0;
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-ink);
}

.laptop-showcase .ui-controlpanel .ui-cp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: calc(var(--laptop-u) * 1.3);
    gap: calc(var(--laptop-u) * 0.5);
}

.laptop-showcase .ui-controlpanel .ui-cp-label {
    display: block;
    flex: 1;
    max-width: 55%;
    height: calc(var(--laptop-u) * 0.55);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-muted-2);
}

.laptop-showcase .ui-controlpanel .ui-cp-label.short {
    max-width: 38%;
}

.laptop-showcase .ui-controlpanel .ui-cp-toggle {
    display: block;
    width: calc(var(--laptop-u) * 1.8);
    height: calc(var(--laptop-u) * 0.95);
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--mock-toggle);
    position: relative;
}

.laptop-showcase .ui-controlpanel .ui-cp-toggle.on {
    background: var(--primary-color-light);
}

.laptop-showcase .ui-controlpanel .ui-cp-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: calc(var(--laptop-u) * 0.7);
    height: calc(var(--laptop-u) * 0.7);
    border-radius: 50%;
    background: var(--mock-knob);
    box-shadow: 0 0 0 var(--laptop-stroke) var(--mock-shadow);
}

.laptop-showcase .ui-controlpanel .ui-cp-toggle.on::after {
    left: auto;
    right: 8%;
}

.laptop-showcase .ui-controlpanel .ui-cp-slider {
    display: block;
    position: relative;
    width: calc(var(--laptop-u) * 3.5);
    height: calc(var(--laptop-u) * 0.45);
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--mock-border);
}

.laptop-showcase .ui-controlpanel .ui-cp-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    border-radius: 999px;
    background: var(--primary-color-light);
}

.laptop-showcase .ui-controlpanel .ui-cp-slider-thumb {
    position: absolute;
    top: 50%;
    left: 58%;
    transform: translate(-50%, -50%);
    width: calc(var(--laptop-u) * 0.85);
    height: calc(var(--laptop-u) * 0.85);
    border-radius: 50%;
    background: var(--mock-knob);
    box-shadow: 0 0 0 var(--laptop-stroke) rgba(0, 0, 0, 0.12);
}

.laptop-showcase .ui-controlpanel .ui-cp-select {
    display: block;
    width: calc(var(--laptop-u) * 3.2);
    height: calc(var(--laptop-u) * 1.1);
    flex-shrink: 0;
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-input);
    box-shadow: inset 0 0 0 var(--laptop-stroke) var(--mock-input-border);
}

.laptop-showcase .ui-controlpanel .ui-cp-status {
    display: block;
    width: calc(var(--laptop-u) * 2.8);
    height: calc(var(--laptop-u) * 0.85);
    flex-shrink: 0;
    border-radius: var(--laptop-radius-inner);
}

.laptop-showcase .ui-controlpanel .ui-cp-status.ok {
    background: var(--mock-status-ok);
    box-shadow: inset 0 0 0 calc(var(--laptop-u) * 0.15) #3a9d5c;
}

.laptop-showcase .ui-controlpanel .ui-cp-status.warn {
    background: var(--mock-status-warn);
    box-shadow: inset 0 0 0 calc(var(--laptop-u) * 0.15) #d4a017;
}

/* 4. Video editor */
.laptop-showcase .ui-broadcast {
    flex-direction: column;
    background: var(--mock-page-2);
    min-height: 0;
    gap: calc(var(--laptop-u) * 0.35);
    padding: calc(var(--laptop-u) * 0.4);
    box-sizing: border-box;
}

.laptop-showcase .ui-broadcast .ui-edit-bar {
    display: flex;
    align-items: center;
    gap: calc(var(--laptop-u) * 0.35);
    flex-shrink: 0;
    padding: calc(var(--laptop-u) * 0.3) calc(var(--laptop-u) * 0.4);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-card);
    box-shadow: 0 0 0 var(--laptop-stroke) var(--mock-shadow);
}

.laptop-showcase .ui-broadcast .ui-edit-bar > span:not(.ui-edit-time):not(.ui-edit-transport) {
    display: block;
    height: calc(var(--laptop-u) * 0.55);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-muted-2);
}

.laptop-showcase .ui-broadcast .ui-edit-bar > span:nth-child(1) { width: 7%; }
.laptop-showcase .ui-broadcast .ui-edit-bar > span:nth-child(2) { width: 7%; }
.laptop-showcase .ui-broadcast .ui-edit-bar > span:nth-child(3) { width: 7%; }

.laptop-showcase .ui-broadcast .ui-edit-time {
    width: 14%;
    height: calc(var(--laptop-u) * 0.55);
    margin-left: calc(var(--laptop-u) * 0.2);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-input);
    box-shadow: inset 0 0 0 var(--laptop-stroke) var(--mock-input-border);
}

.laptop-showcase .ui-broadcast .ui-edit-transport {
    width: calc(var(--laptop-u) * 1.1);
    height: calc(var(--laptop-u) * 1.1);
    margin-left: auto;
    border-radius: 50%;
    background: var(--primary-color-light);
    box-shadow: 0 0 0 calc(var(--laptop-u) * 0.12) rgba(14, 136, 235, 0.35);
}

.laptop-showcase .ui-broadcast .ui-edit-transport::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin: calc(var(--laptop-u) * 0.32) 0 0 calc(var(--laptop-u) * 0.42);
    border-style: solid;
    border-width: calc(var(--laptop-u) * 0.22) 0 calc(var(--laptop-u) * 0.22) calc(var(--laptop-u) * 0.36);
    border-color: transparent transparent transparent var(--mock-knob);
}

.laptop-showcase .ui-broadcast .ui-edit-upper {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: calc(var(--laptop-u) * 0.35);
}

.laptop-showcase .ui-broadcast .ui-edit-bin,
.laptop-showcase .ui-broadcast .ui-edit-inspector {
    width: 20%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.35);
    padding: calc(var(--laptop-u) * 0.4);
    border-radius: var(--laptop-radius-md);
    background: var(--mock-card);
    box-shadow: 0 0 0 var(--laptop-stroke) var(--mock-shadow);
    overflow: hidden;
}

.laptop-showcase .ui-broadcast .ui-edit-heading {
    display: block;
    width: 65%;
    height: calc(var(--laptop-u) * 0.5);
    flex-shrink: 0;
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-ink);
}

.laptop-showcase .ui-broadcast .ui-edit-clips {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--laptop-u) * 0.3);
    align-content: start;
}

.laptop-showcase .ui-broadcast .ui-edit-clips span {
    aspect-ratio: 16 / 10;
    border-radius: var(--laptop-radius-inner);
    background: linear-gradient(145deg, var(--mock-clip-a), var(--mock-muted-2));
    box-shadow: inset 0 0 0 var(--laptop-stroke) var(--mock-input-border);
}

.laptop-showcase .ui-broadcast .ui-edit-monitor {
    flex: 1;
    min-width: 0;
    padding: calc(var(--laptop-u) * 0.35);
    border-radius: var(--laptop-radius-md);
    background: var(--mock-card);
    box-shadow: 0 0 0 var(--laptop-stroke) var(--mock-shadow);
}

.laptop-showcase .ui-broadcast .ui-edit-preview {
    width: 100%;
    height: 100%;
    border-radius: var(--laptop-radius-inner);
    background: linear-gradient(160deg, var(--mock-ink) 0%, var(--mock-ink-mid) 50%, var(--mock-ink) 100%);
}

.laptop-showcase .ui-broadcast .ui-edit-inspector span:not(.ui-edit-heading) {
    display: block;
    height: calc(var(--laptop-u) * 0.5);
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-input);
    box-shadow: inset 0 0 0 var(--laptop-stroke) var(--mock-border-2);
}

.laptop-showcase .ui-broadcast .ui-edit-inspector span:nth-of-type(2) { width: 88%; }
.laptop-showcase .ui-broadcast .ui-edit-inspector span:nth-of-type(3) { width: 72%; }
.laptop-showcase .ui-broadcast .ui-edit-inspector span:nth-of-type(4) { width: 55%; }

.laptop-showcase .ui-broadcast .ui-edit-timeline {
    position: relative;
    flex: 0 0 28%;
    min-height: calc(var(--laptop-u) * 4);
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.2);
    padding: calc(var(--laptop-u) * 0.3);
    border-radius: var(--laptop-radius-md);
    background: var(--mock-input);
    box-shadow: inset 0 0 0 var(--laptop-stroke) var(--mock-border-2);
    overflow: hidden;
}

.laptop-showcase .ui-broadcast .ui-edit-ruler {
    flex-shrink: 0;
    height: calc(var(--laptop-u) * 0.55);
    margin-left: calc(var(--laptop-u) * 2.2);
    border-radius: var(--laptop-radius-inner);
    background: repeating-linear-gradient(
        90deg,
        var(--mock-muted-2) 0,
        var(--mock-muted-2) calc(var(--laptop-u) * 0.15),
        transparent calc(var(--laptop-u) * 0.15),
        transparent calc(var(--laptop-u) * 0.75)
    );
}

.laptop-showcase .ui-broadcast .ui-edit-tracks {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--laptop-u) * 0.2);
}

.laptop-showcase .ui-broadcast .ui-edit-track {
    display: flex;
    align-items: stretch;
    gap: calc(var(--laptop-u) * 0.25);
    flex: 1;
    min-height: 0;
}

.laptop-showcase .ui-broadcast .ui-edit-lbl {
    width: calc(var(--laptop-u) * 1.8);
    flex-shrink: 0;
    border-radius: var(--laptop-radius-inner);
    background: var(--mock-muted-2);
}

.laptop-showcase .ui-broadcast .ui-edit-lane {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: calc(var(--laptop-u) * 0.2);
}

.laptop-showcase .ui-broadcast .ui-edit-lane > span:not(.wave) {
    border-radius: var(--laptop-radius-inner);
    background: linear-gradient(180deg, var(--primary-color-light), var(--primary-color-dark));
    opacity: 0.9;
}

.laptop-showcase .ui-broadcast .ui-edit-track:nth-child(1) .ui-edit-lane span:nth-child(1) { flex: 0 0 28%; }
.laptop-showcase .ui-broadcast .ui-edit-track:nth-child(1) .ui-edit-lane span:nth-child(2) { flex: 0 0 18%; margin-left: 8%; }
.laptop-showcase .ui-broadcast .ui-edit-track:nth-child(1) .ui-edit-lane span:nth-child(3) { flex: 0 0 22%; }

.laptop-showcase .ui-broadcast .ui-edit-track:nth-child(2) .ui-edit-lane span {
    flex: 0 0 35%;
    margin-left: 22%;
    background: linear-gradient(180deg, var(--mock-accent), #0a209a);
}

.laptop-showcase .ui-broadcast .ui-edit-track.audio .ui-edit-lbl {
    background: var(--mock-muted-3);
}

.laptop-showcase .ui-broadcast .ui-edit-lane .wave {
    flex: 1;
    border-radius: var(--laptop-radius-inner);
    background: linear-gradient(90deg,
        var(--mock-wave-a) 0%, var(--mock-clip-a) 8%, var(--mock-wave-a) 16%, var(--mock-muted-3) 24%,
        var(--mock-wave-a) 32%, var(--mock-clip-a) 40%, var(--mock-wave-a) 48%, var(--mock-muted-3) 56%,
        var(--mock-wave-a) 64%, var(--mock-clip-a) 72%, var(--mock-wave-a) 80%, var(--mock-muted-3) 88%, var(--mock-wave-a) 100%);
    opacity: 0.85;
}

.laptop-showcase .ui-broadcast .ui-edit-playhead {
    position: absolute;
    top: calc(var(--laptop-u) * 0.35);
    bottom: calc(var(--laptop-u) * 0.35);
    left: 42%;
    width: calc(var(--laptop-u) * 0.12);
    border-radius: 1px;
    background: #e8384a;
    box-shadow: 0 0 0 var(--laptop-stroke) rgba(232, 56, 74, 0.4);
    pointer-events: none;
}

/* --- CREATIVE MINDSTORMS --- */
.showcase-section {
    padding: 3rem 0;
    background: var(--surface-muted);
    color: var(--text-color);
    position: relative;
    box-shadow: none;
    border-top: 1px solid var(--border-color);
}

.showcase-header {
    margin-bottom: 4rem;
}

.cm-link {
    color: var(--primary-color-dark);
    font-weight: 600;
}

[data-theme="dark"] .cm-link,
[data-theme="dark"] .about-linkedin,
[data-theme="dark"] .about-linkedin:hover {
    color: var(--primary-color-light);
}

/* Media Grids */
.media-section {
    margin-bottom: 4rem;
}

.media-section h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-section h3 a {
    transition: color 0s;
}

.media-section h3 a:hover {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Video & Repo Cards */
.video-card,
.repo-card {
    background: var(--box-bg);
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.video-card:hover,
.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: transparent;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1.2rem;
}

.video-info h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-color);
}

.video-card h4,
.repo-card h4 {
    transition: color 0s;
}

.video-card:hover h4,
.repo-card:hover h4 {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.repo-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.repo-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.repo-card h4 i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.repo-card p {
    margin: 0;
    flex-grow: 1;
}



/* Showcase Action Buttons */
.showcase-actions {
    margin-top: 3rem;
    padding: 0;
    background: transparent;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-cm-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: var(--box-bg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-origin: border-box;
    color: var(--secondary-color);
    font-weight: 600;
    transition: background 0.3s ease, color 0s, border-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.btn-cm-social:hover {
    background-image: var(--brand-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
}

/* --- FOOTER --- */
footer {
    background-color: var(--footer-bg);
    color: var(--gray-600);
    padding: 3rem 0 1rem 0;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 0rem;
    padding-bottom: 0rem;
    align-items: flex-start;
}

.footer-col {
    flex: 1;
}



.brand-col p {
    margin-top: 0.5rem;
    color: var(--gray-700);
    max-width: 300px;
}

.info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.info-col p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-600);
}

.info-col i {
    color: var(--gray-600);
    margin-right: 0.5rem;
}

.social-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    .footer-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
    }

    .brand-col p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-col {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
}

.footer-brand p {
    color: var(--gray-700);
    margin-top: 0.5rem;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-contact h4,
.footer-socials h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color-light);
    display: inline-block;
    padding-bottom: 0.5rem;
}

#contact-email {
    font-size: 1.1rem;
    color: var(--gray-400);
    font-weight: 300;
}

#contact-email:hover {
    color: var(--light-text);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--gray-500);
    font-weight: 500;
}

.footer-nav a:hover {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: none;
}


#social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    color: var(--gray-500);
}

.social-icon-btn .icon {
    width: 1.2em;
    height: 1.2em;
}

.social-icon-btn:hover {
    background: var(--brand-gradient);
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8b40a;
    font-size: 1.05rem;
    transition: color 0.2s ease, filter 0.2s ease;
    line-height: 1;
}

.theme-toggle:hover {
    color: #f5c922;
}

.theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-dark {
    display: inline-block;
}

/* --- SCROLL REVEAL --- */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(1.5rem);
        transition:
            opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0s);
    }

    .scroll-reveal.from-left {
        transform: translateX(-2rem);
    }

    .scroll-reveal.from-right {
        transform: translateX(2rem);
    }

    .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
    }

    .card.outstanding.scroll-reveal.is-visible {
        transform: scale(1.05);
    }

    .card.outstanding.scroll-reveal.is-visible:hover {
        transform: scale(1.05) translateY(-0.5rem);
    }
}

/* --- ANIMATIONS --- */
@keyframes write {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-0.3rem, -0.3rem);
    }
}

@keyframes build {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes rise {
    from {
        height: 0;
    }
}

@keyframes nudgeX {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(2px);
    }
}

@keyframes nudgeY {

    0%,
    100% {
        transform: rotate(90deg) translateY(0);
    }

    50% {
        transform: rotate(90deg) translateY(2px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {

    .about-founder {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 28rem;
        margin: 0 auto;
    }

    .tailored-intro {
        text-align: center;
    }

    .about-photo {
        max-width: 220px;
        margin: 0 auto;
    }

    .about-bio {
        text-align: center;
    }

    .about-actions {
        justify-content: center;
    }

    /* Hero Pipeline Stack */
    .pipeline {
        flex-direction: column;
        max-width: 30rem;
        gap: 1rem;
    }

    .arrow-container {
        height: 1rem;
        margin: 0.5rem 0;
    }

    .arrow-icon {
        transform: rotate(90deg);
        animation-name: nudgeY;
    }

    .card {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        padding: 1.5rem 1.0rem;
        gap: 0 1rem;
        text-align: left;
        align-items: center;
    }

    .visual-container {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .label-top {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        margin-bottom: 0;
        align-self: end;
    }

    .label-desc {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        margin-top: 0.3rem;
        align-self: start;
    }

    .card.outstanding {
        transform: none;
    }

    .hero-header h1 {
        font-size: 2.5rem;
    }

    .mini-editor {
        transform: scale(0.8);
        transform-origin: center;
        width: 100%;
        max-width: 10rem;
    }

    .laptop-showcase {
        --laptop-w: min(78vw, 300px);
    }
}

@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.75rem;
        flex: 0 0 auto;
    }

    .nav-controls {
        gap: 0.5rem;
        order: 1;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.75rem 1.25rem 1rem;
        box-shadow: var(--header-shadow);
        border-top: 1px solid var(--border-color);
        box-sizing: border-box;
        z-index: 999;
    }

    .nav-links.mobile-open > li {
        width: 100%;
        text-align: center;
    }

    .nav-links.mobile-open > li > a:not(.btn-nav) {
        display: block;
        padding: 0.65rem 0;
        font-size: 1.05rem;
    }

    .nav-links.mobile-open .btn-nav {
        display: inline-block;
        margin: 0.35rem 0 0.15rem;
    }

    .nav-controls .lang-menu {
        left: auto;
        right: 0;
    }

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

    .footer-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand,
    .footer-contact,
    .footer-socials {
        width: 100%;
    }

    .footer-contact h4,
    .footer-socials h4 {
        align-self: center;
    }

    #social-icons {
        justify-content: center;
    }
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: relative;
}

/* Base styling for flags using SVG sprites */
.flag-icon {
    display: inline-block;
    width: 1.4rem;
    height: 1rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-toggle:hover {
    background: none;
    color: var(--primary-color-light);
}

/* Chevron styling */
.lang-toggle .icon {
    opacity: 0.7;
}

.lang-menu {
    position: absolute;
    top: 150%;
    left: 0;
    background: var(--box-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow-hover);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    padding: 0.4rem;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    margin-bottom: 0.1rem;
}

.lang-menu li:last-child {
    margin-bottom: 0;
}

.lang-menu button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--gray-800);
    transition: background 0.2s, color 0.2s;
}

.lang-menu button:hover {
    background: var(--menu-hover-bg);
    color: var(--primary-color-light);
}