:root {
    /* Palette */
    --bg: #EBEAE6;
    --panel: #ffffff;
    --ink: #111111;
    --soft-ink: #4b4b4b;
    --muted: #828282;
    --pattern-dot: #ffffff;
    --accent-green: #f1f1f1;


    /* refer this site to get more cubic references - https://joshcollinsworth.com/blog/easing-curves */
    /* Motion */
    --ease-lux: cubic-bezier(0.42, 0, 0.2, 1);
    --ease-genie: cubic-bezier(0.42, 0, 0.2, 1);

    /* Layout */
    --device-width: 450px;
    --device-collapsed-height: 56px;
    --device-expanded-height: 88vh;
    --device-expanded-max-height: 980px;
    --case-window-width: 50vw;
    --case-window-gap: 60px;
    --case-pair-shift: calc((var(--case-window-width) + var(--case-window-gap)) / 2);
    --site-padding-x: 24px;
    --site-padding-top: 30px;
    --site-radius: 30px;

    /* ID Card Controls */
    --id-anchor-offset-x: 6px;
    --id-anchor-y-ratio: 0.52;
    --id-peek-autohide-ms: 3000;
    --id-peek-width: clamp(220px, 17vw, 300px);
    --id-open-width: min(70.4vw, 816px);
    --id-peek-shift-x: -318px;
    --id-peek-hover-shift-x: -290px;
    --id-open-shift-x: 0px;
    --id-open-anchor-x-ratio: 0.49;
    --id-open-anchor-y-ratio: 0.5;
    --id-peek-scale: 1;
    --id-open-scale: 1;
    --id-open-hover-center-x: 0.46;
    --id-open-hover-center-y: 0.5;
    --id-open-hover-tilt-deg: 4;
    --id-open-hover-drift-px: 8;
    --id-peek-rotation: 90deg;

    /* Section spacing */
    --section-vertical-space: 0px;

    /* Unified section vertical padding */
    --section-gap-xs: 10px;
    --section-gap-sm: 18px;
    --section-gap-md: 24px;
    --section-gap-lg: 40px;
    --section-gap-xl: 34px;

    /* Component sizes */
    --hero-model-min-height: 270px;
    --project-grid-gap: 14px;
    --featured-card-radius: 18px;
    --featured-card-min-height: 0px;
    --featured-card-gap: 29px;
    --featured-card-width: 100%;
    --dock-icon-size: 46px;
    --dock-icon-gap: 9px;
    --dock-radius: 18px;
    --dock-icon-radius: 12px;
    --pixel-canvas-size: 400px;

    /* Top Bar Tweaks */
    --bar-collapsed-width: 180px;

    /* Pill Component Sizes (Configurable via JS) */
    --pill-bar-w: 10px;
    --pill-bar-h: 34px;
    --pill-circle-w: 36px;
    --pill-circle-h: 36px;
    --pill-square-w: 47px;
    --pill-square-h: 14px;
    --pill-dark-w: 44px;
    --pill-dark-h: 24px;

    /* Overall Bar Dimensions */
    --pill-container-w: var(--bar-collapsed-width);
    --pill-container-h: var(--device-collapsed-height);

    /* Blur Mask Settings (Configurable via JS) */
    --blur-mask-strength: 10px;
    --blur-mask-opacity: 0.8;

    /* Cursor assets - Reduced size by using smaller pngs or adjusting transform if DOM based, wait let me check if there's a custom cursor div */
    --cursor-default: url('pointercursor.png') 4 4, auto;
    --cursor-text: url('textcursor.png') 8 10, text;
    --cursor-link: url('linkcursor.png') 6 4, pointer;
    --cursor-grab: url('grabcursor.png') 12 12, grab;
    --cursor-grabbing: url('ggrabbingcursor.png') 12 12, grabbing;

    /* Pill Button Animation Variables */
    --pulse-initial-delay: 7s;
    --pulse-cycle-interval: 10s;
    --pulse-spring: ease-in-out;
}



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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: var(--bg);
    background-size: 44px 44px, 44px 44px, 44px 44px;
    background-position: 0 0, 22px 10px, 9px 27px;
    color: var(--ink);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Google Sans', sans-serif;
    font-weight: 400;
}

/* -------------------------- */

body.reader-mode {
    background: #f1c84b;
    background-image: none;
}

body.reader-mode .ascii-bg {
    opacity: 0;
    visibility: hidden;
}

/* :where(.site-content > section, #reader-inline > section) {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
} */

/* Cursor System (isolated)
   Set data-cursor on any element to force a role:
   default | text | link | grab | grabbing
*/
body.cursor-system,
body.cursor-system * {
    cursor: var(--cursor-default) !important;
}

body.cursor-system :where(p,
    span,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    input,
    textarea,
    select,
    option,
    label,
    [contenteditable='true'],
    [data-cursor='text']) {
    cursor: var(--cursor-text) !important;
}

body.cursor-system :where(a,
    button,
    [role='button'],
    summary,
    [data-cursor='link']) {
    cursor: var(--cursor-link) !important;
}

/* Keep link cursor stable over child text/icons inside clickable controls. */
body.cursor-system :where(a,
    button,
    [role='button'],
    summary,
    [data-cursor='link']) * {
    cursor: var(--cursor-link) !important;
}

body.cursor-system :where([data-cursor='grab']) {
    cursor: var(--cursor-grab) !important;
}

body.cursor-system :where([data-cursor='grab']:active, [data-cursor='grabbing']) {
    cursor: var(--cursor-grabbing) !important;
}

body.cursor-system :where([data-cursor='default']) {
    cursor: var(--cursor-default) !important;
}

.site-exit-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 64px;
    height: auto;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.site-exit-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.site-exit-btn img {
    width: 100%;
    display: block;
}

.mini-site-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 var(--section-gap-md);
}

.mini-site-action-btn {
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mini-site-action-btn:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

.mini-site-action-btn img {
    display: block;
    width: 100%;
    height: auto;
}

.mini-site-action-exit {
    width: 64px;
    flex: 0 0 auto;
}

.mini-site-action-resume {
    width: 135px;
    margin-left: auto;
}

.mini-site-action-btn:focus-visible {
    outline: 2px solid #7f7f7f;
    outline-offset: 2px;
}


.mini-matrix-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    display: none;
}

.device-container {
    position: relative;
    width: min(96vw, var(--pill-container-w));
    margin: 0 auto;
    height: var(--pill-container-h);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition:
        width 0.82s var(--ease-genie),
        height 0.22s var(--ease-genie),
        transform 0.22s var(--ease-genie),
        border-radius 0s var(--ease-genie),
        box-shadow 0.22s var(--ease-genie);
    /* Shortened from 0.8s */
    z-index: 10;
}

.device-container.expanded {
    width: min(96vw, var(--device-width));
    height: min(var(--device-expanded-height), var(--device-expanded-max-height));
    background: var(--panel);
    box-shadow: 14px 17px 20px 0px rgba(0, 0, 0, 0.1);
    border-radius: var(--site-radius);
    overflow: hidden;
    /* Restored to clip children preventing border radius bugs */
}


.device-container.maximized {
    height: 100vh !important;
    max-height: none !important;
}

.device-container.maximized .bottom-bar {
    display: none !important;
}

.top-bar {
    display: flex;
    height: var(--pill-container-h);
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    background: transparent;
    /* Darker background for the surrounding area as in the image */
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.52s var(--ease-genie), border-radius 0.52s var(--ease-genie), height 0.52s var(--ease-genie);
    padding: 4px;
    overflow: visible;
}

.device-container.expanded .top-bar {
    border-radius: var(--site-radius) var(--site-radius) 0 0;
}

.top-bar-pill {
    display: flex;
    align-items: center;
    background: #d4d4d4;
    /* Light grey pill background */
    width: 100%;
    height: 100%;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    position: relative;
    /* box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); */
}

/* --- Greeting Text Above Pill --- */
.pill-greeting {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    padding-bottom: 50px;
    transform: translateX(-50%);
    text-align: center;
    color: #484848;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 50;
}

.device-container.expanded .pill-greeting {
    opacity: 1;
    transform: translate(-50%, -10px);
}

/* -------------------------------- */

.pill-left {
    display: flex;
    align-items: center;
    gap: 3px;
    padding-left: 3px;
}

.pill-bar {
    width: var(--pill-bar-w);
    height: var(--pill-bar-h);
    background: var(--pill-bar-c, #545454);
    border-radius: 99px;
    transition: all 0.52s var(--ease-genie);
}

.pill-plain-circle {
    width: var(--pill-circle-w);
    height: var(--pill-circle-h);
    border-radius: 99px;
    background-color: var(--pill-circle-c, #e7e7e7);
    flex-shrink: 0;
    transition: all 0.52s var(--ease-genie);
}

#pill-circle2 {
    width: var(--pill-circle2-w);
    height: var(--pill-circle2-h);
    background-color: var(--pill-circle2-c, #e7e7e7);
    border-radius: var(--pill-circle2-br, 99px);
}

#pill-circle3 {
    width: var(--pill-circle3-w);
    height: var(--pill-circle3-h);
    background-color: var(--pill-circle3-c, #e7e7e7);
    border-radius: var(--pill-circle3-br, 99px);
}

body.notes-active .pill-plain-circle {
    background-color: #1d1d1d;
    border-radius: 30px 12px 12px 30px;
}

.pill-square {
    width: var(--pill-square-w);
    height: var(--pill-square-h);
    background: var(--pill-square-c, #e7e7e7);
    /* Medium grey square */
    border-radius: 99px;
    transition: all 0.52s var(--ease-genie);
}

.pill-dark-block {
    width: var(--pill-dark-w);
    height: var(--pill-dark-h);
    background: var(--pill-dark-c, #f2f2f2);
    /* Dark grey block */
    border-radius: 99px;
    transition: all 0.52s var(--ease-genie);
}

body.reader-mode .pill-dark-block {
    background: #1d1d1d;
    border-radius: 12px;
}

body.reader-mode .pill-dark-block img {
    filter: invert(1);
    opacity: 0.8;
}

body.reader-mode .pill-dark-block .pill-icon-slot {
    border-color: rgba(255, 255, 255, 0.4);
}

.pill-icon-btn {
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;

}

.pill-icon-btn img {
    /* width: 58%; */
    /* height: 58%; */
    object-fit: contain;
    transform: translateY(6px) scale(0.88);
    filter: blur(2px);
    opacity: 0;
    transition: opacity 0.28s var(--ease-lux), transform 0.42s var(--ease-lux), filter 0.42s var(--ease-lux);
    will-change: opacity, transform, filter;
}

.device-container.expanded .pill-icon-btn img {
    opacity: 0.7;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.device-container.expanded #pill-notes-btn img {
    transition-delay: 0.05s;
}

.device-container.expanded #pill-resume-btn img {
    transition-delay: 0.15s;
}

.device-container.expanded #pill-third-btn img {
    transition-delay: 0.25s;
}

.pill-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.55);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 70%);
    transition: transform 0.26s ease, opacity 0.26s ease;
    pointer-events: none;
    z-index: 0;
}

.pill-icon-btn::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 0;
}

@keyframes pill-pulse-sequence-circle {

    0%,
    10% {
        width: var(--pill-circle-w);
        filter: brightness(1);
    }

    15% {
        width: calc(var(--pill-circle-w) + 20px);
        filter: brightness(1.2);
    }

    20%,
    100% {
        width: var(--pill-circle-w);
        filter: brightness(1);
    }
}

@keyframes pill-pulse-sequence-square {

    0%,
    10% {
        width: var(--pill-square-w);
        filter: brightness(1);
    }

    15% {
        width: calc(var(--pill-square-w) + 20px);
        filter: brightness(1.2);
    }

    20%,
    100% {
        width: var(--pill-square-w);
        filter: brightness(1);
    }
}

@keyframes pill-pulse-sequence-dark {

    0%,
    10% {
        width: var(--pill-dark-w);
        filter: brightness(1);
    }

    15% {
        width: calc(var(--pill-dark-w) + 20px);
        filter: brightness(1.2);
    }

    20%,
    100% {
        width: var(--pill-dark-w);
        filter: brightness(1);
    }
}


.pill-icon-btn .pill-icon-slot {
    width: 42%;
    height: 42%;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.65);
    background: transparent;
    opacity: 0.5;
    transition: transform 0.22s ease, opacity 0.22s ease;
    z-index: 1;
}

#pill-notes-btn .pill-icon-slot {
    border-radius: 99px;
}

#pill-resume-btn .pill-icon-slot {
    border-radius: 4px;
}

#pill-third-btn .pill-icon-slot {
    border-radius: 3px;
    border-style: solid;
}

@media (hover: hover) {
    .device-container.expanded .pill-icon-btn:hover::before {
        opacity: 0.42;
        transform: scale(1);
    }

    .device-container.expanded .pill-icon-btn:hover::after {
        opacity: 1;
    }

    .device-container.expanded .pill-icon-btn:hover .pill-icon-slot {
        opacity: 0.95;
        transform: scale(1.08);
    }
}

.device-container.expanded .pill-icon-btn {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.device-container.expanded #pill-notes-btn {
    animation: pill-pulse-sequence-circle var(--pulse-cycle-interval) var(--pulse-spring) infinite;
    animation-delay: var(--pulse-initial-delay);
}

.device-container.expanded #pill-resume-btn {
    animation: pill-pulse-sequence-square var(--pulse-cycle-interval) var(--pulse-spring) infinite;
    animation-delay: calc(var(--pulse-initial-delay) + 0.3s);
}

.device-container.expanded #pill-third-btn {
    animation: pill-pulse-sequence-dark var(--pulse-cycle-interval) var(--pulse-spring) infinite;
    animation-delay: calc(var(--pulse-initial-delay) + 0.6s);
}

.device-container.expanded .pill-icon-btn:active {
    transform: scale(0.88, 0.94);
    transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-container.expanded .pill-icon-btn:active::before {
    opacity: 0.56;
    transform: scale(1.22);
}

.pill-tooltip {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

@media (hover: hover) {

    .device-container.expanded .pill-icon-btn:hover .pill-tooltip,
    body.device-expanded .expand-fab:hover .pill-tooltip,
    .mini-pill:hover .pill-tooltip {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .orb-cursor-handle:hover .pill-tooltip,
    .orb-rail-btn:hover .pill-tooltip {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.pill-right {
    flex: 1;
    height: calc(100% - 2px);
    background: #ffffff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    margin-right: 2px;
}

.pill-text {
    color: #404040;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

/* Legacy header pieces hidden */
.cutout,
.bar-pill-content,
.spin-circle,
.badge,
.badge-green,
.badge-blue,
.bar-action,
.action-arrow,
.top-bar-art,
.top-bar-fallback {
    display: none !important;
}

/* Left Side Orb Controls (outside mini site) */
.left-controls {
    position: fixed;
    top: 50%;
    left: calc(50% - min(48vw, calc(var(--device-width) / 2)) - 64px);
    width: 74px;
    height: 248px;
    transform: translateY(calc(-50% + var(--orb-scroll-offset-y)));
    display: block;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.18s ease-out;
    --orb-scroll-offset-y: 0px;
}

body.device-expanded .left-controls {
    opacity: 1;
    pointer-events: auto;
}

body.device-expanded.case-open .left-controls {
    opacity: 0;
    pointer-events: none;
}

.orb-cursor-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 24px;
    border-radius: 999px;
    background: #0a0a0a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, height 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
    z-index: 4;
}

.orb-handle-dot {
    display: none;
}

.orb-cursor-handle:hover,
.left-controls:has(.orb-control-rail:hover) .orb-cursor-handle,
.left-controls:focus-within .orb-cursor-handle {
    opacity: 0;
    pointer-events: none;
}

.orb-control-rail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    min-height: 54px;
    border-radius: 28px;
    background: #0a0a0a;
    border: 2px solid #0f0f0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 8px 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    transition: opacity 0.1s ease, min-height 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    z-index: 3;
}

.orb-scroll-line {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    border-radius: 2px;
}

.orb-rail-btn,
.orb-rail-time {
    z-index: 2;
}

.orb-cursor-handle:hover+.orb-control-rail,
.orb-control-rail:hover,
.left-controls:focus-within .orb-control-rail {
    opacity: 1;
    min-height: 238px;
    pointer-events: auto;
}

.orb-rail-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.orb-rail-btn:hover {
    transform: translateY(-1px) scale(1.05);
    filter: brightness(1.03);
}

.orb-rail-btn:focus-visible,
.orb-cursor-handle:focus-visible {
    outline: 2px solid #7f7f7f;
    outline-offset: 2px;
}

.orb-rail-expand {
    background: #f3f3f3;
    color: #121212;
}

.orb-rail-matrix {
    background: #6f8f36;
    color: #ffffff;
}

body.matrix-paused .orb-rail-matrix {
    background: #7c7c7c;
}

.orb-rail-resume {
    background: #f07b34;
    color: #111111;
}

.orb-rail-time {
    margin-top: 1px;
    margin-bottom: 1px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
    user-select: none;
}

.orb-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1;
}

.orb-btn-icon-expand::before {
    content: '\2195';
}

.orb-btn-icon-matrix::before {
    content: '\23f8';
}

body.matrix-paused .orb-btn-icon-matrix::before {
    content: '\25b6';
}

.orb-btn-icon-resume::before {
    content: '\2197';
}

.orb-cursor-handle .pill-tooltip,
.orb-rail-btn .pill-tooltip {
    top: 50%;
    left: calc(100% + 12px);
    transform: translateX(0) translateY(-50%);
}

.work-together-wrap {
    position: fixed;
    left: 20px;
    bottom: 22px;
    z-index: 12005;
    pointer-events: auto;
}

.work-together-btn {
    border: none;
    min-width: 260px;
    height: 58px;
    border-radius: 999px;
    padding: 0 24px 0 18px;
    background: #070707;
    color: #f2f2f2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.work-together-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.work-together-btn:focus-visible,
.work-assistant-close:focus-visible,
.work-chip:focus-visible {
    outline: 2px solid #9f9f9f;
    outline-offset: 2px;
}

.work-together-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, #f5f5f5 2.2px, transparent 2.3px) 50% 50% / 10px 10px no-repeat,
        radial-gradient(circle at 14% 50%, #f5f5f5 2.1px, transparent 2.2px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 86% 50%, #f5f5f5 2.1px, transparent 2.2px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 50% 14%, #f5f5f5 2.1px, transparent 2.2px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 50% 86%, #f5f5f5 2.1px, transparent 2.2px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 27% 27%, #f5f5f5 1.8px, transparent 1.9px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 73% 27%, #f5f5f5 1.8px, transparent 1.9px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 27% 73%, #f5f5f5 1.8px, transparent 1.9px) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 73% 73%, #f5f5f5 1.8px, transparent 1.9px) 0 0 / 100% 100% no-repeat;
}

.work-together-icon-sm {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

.work-together-label {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.work-assistant-panel {
    position: fixed;
    left: 10px;
    bottom: 10px;
    width: min(420px, calc(100vw - 20px));
    height: min(78vh, 620px);
    border-radius: 24px;
    overflow: hidden;
    background: #0b0b0b;
    color: #f2f2f2;
    z-index: 12010;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 18px, 0) scale(0.96);
    transform-origin: left bottom;
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 32px 56px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.work-assistant-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.work-assistant-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #070707;
}

.work-assistant-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.64) 72%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

.work-assistant-header,
.work-assistant-body,
.work-assistant-footer {
    position: relative;
    z-index: 2;
}

.work-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.work-assistant-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(50, 50, 50, 0.9);
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.work-assistant-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 86px;
    padding: 0 26px;
}

.work-assistant-copy {
    font-size: 2rem;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.work-assistant-copy+.work-assistant-copy {
    margin-top: 12px;
}

.work-assistant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.work-chip {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 1.02rem;
    font-weight: 500;
    background: rgba(55, 55, 55, 0.78);
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.work-chip:hover {
    transform: translateY(-1px);
    background: rgba(75, 75, 75, 0.92);
    color: #fff;
}

.work-chip-primary {
    background: #f6f6f6;
    color: #0f0f0f;
}

.work-chip-primary:hover {
    background: #ffffff;
    color: #000;
}

.work-assistant-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 5, 5, 0.45);
}

.work-assistant-input {
    font-size: 1.03rem;
    color: rgba(255, 255, 255, 0.72);
}

.contact-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

/* Vertical Action Button Styles */
.vertical-btn-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.vertical-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    will-change: transform;
}

.vertical-action-btn:hover {
    transform: translateY(-15px);
}

.vertical-action-btn img {
    display: block;
    height: auto;
    max-height: 120px;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
}

.expand-fab .icon-shrink {
    display: none;
}

body.device-maximized .expand-fab .icon-shrink {
    display: block;
}

body.device-maximized .expand-fab .icon-expand {
    display: none;
}

.global-controls {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.id-card-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8;
}

.id-card-wrap.is-open-layer {
    z-index: 71;
}

.id-card-dock {
    position: fixed;
    top: 50%;
    left: 50%;
    width: var(--id-peek-width);
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    --id-open-drift-x: 0px;
    --id-open-drift-y: 0px;
    --id-open-tilt-x: 0deg;
    --id-open-tilt-y: 0deg;
    transform: translate3d(var(--id-peek-shift-x), -50%, 0) rotate(var(--id-peek-rotation)) scale(var(--id-peek-scale));
    transform-origin: right center;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
    z-index: 1;
}

.id-card-dock img {
    width: 100%;
    display: block;
    height: auto;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.22));
}

.id-card-dock.visible {
    opacity: 1;
    pointer-events: auto;
}

.id-card-dock.visible:not(.is-open):hover {
    transform: translate3d(var(--id-peek-hover-shift-x), -50%, 0) rotate(var(--id-peek-rotation)) scale(var(--id-peek-scale));
}

.id-card-dock.is-open {
    width: var(--id-open-width);
    transform: perspective(1180px) translate3d(calc(-50% + var(--id-open-shift-x) + var(--id-open-drift-x)), calc(-50% + var(--id-open-drift-y)), 0) rotateX(var(--id-open-tilt-x)) rotateY(var(--id-open-tilt-y)) scale(var(--id-open-scale));
    transform-origin: center center;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
    z-index: 2;
}

.resume-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.site-resume-btn {
    width: 135px;
    height: auto;
    z-index: 61;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: block;
}

.site-resume-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.site-resume-btn img {
    width: 100%;
    display: block;
}

.site-resume-btn:focus-visible,
.expand-fab:focus-visible {
    outline: 2px solid #7f7f7f;
    outline-offset: 2px;
}



/* Blur Masks */
.content-mask {
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 5;
    /* Above content, below navigation if needed */
    pointer-events: none;
    backdrop-filter: blur(var(--blur-mask-strength));
    border-radius: inherit;
    /* Prevent blurring the device's actual curved corners */
    opacity: 0;
    /* Hidden by default when collapsed */
    transition: opacity 0.5s var(--ease-lux), backdrop-filter 0.5s var(--ease-lux);
}

.device-container.expanded .content-mask {
    opacity: var(--blur-mask-opacity);
}

.content-mask.top {
    top: 0;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.content-mask.bottom {
    bottom: 0;
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
}



.site-content {
    flex: 1;
    background: transparent;
    position: relative;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.42s var(--ease-genie);
    /* Shortened from 0.45s */
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--site-padding-top) var(--site-padding-x) 0;
    /* Adding border radius here to inherit from device container */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.device-container.expanded .site-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.22s;
}

.site-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.site-content::-webkit-scrollbar-thumb {
    display: none;
}

.site-content::-webkit-scrollbar-track {
    display: none;
}

.site-content::-webkit-scrollbar-thumb:hover {
    display: none;
}

.site-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.device-container.reader-mode {
    width: min(98vw, 820px);
    background: #ececec;
}

.device-container.reader-mode .site-content {
    padding: 18px 24px 0;
}

.device-container.reader-mode .mini-matrix-bg {
    opacity: 0;
}

.reader-inline {
    display: none;
    min-height: calc(100% - 8px);
    color: #111;
    font-family: 'Google Sans', sans-serif;
    padding-bottom: 24px;
}

.reader-inline.onboarding-locked .reader-about-grid,
.reader-inline.onboarding-locked .reader-quote-grid,
.reader-inline.onboarding-locked .reader-contact-grid,
.reader-inline.onboarding-locked .reader-inline-foot {
    display: none;
}

.reader-inline.onboarding-locked .reader-about-grid.onboarding-visible,
.reader-inline.onboarding-locked .reader-quote-grid.onboarding-visible,
.reader-inline.onboarding-locked .reader-contact-grid.onboarding-visible,
.reader-inline.onboarding-locked .reader-inline-foot.onboarding-visible {
    display: grid;
    animation: reader-sections-in 0.42s var(--ease-lux) both;
}

.reader-inline.onboarding-unlocked .reader-about-grid,
.reader-inline.onboarding-unlocked .reader-quote-grid,
.reader-inline.onboarding-unlocked .reader-contact-grid,
.reader-inline.onboarding-unlocked .reader-inline-foot {
    animation: reader-sections-in 0.42s var(--ease-lux) both;
}

@keyframes reader-sections-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.device-container.reader-mode .site-content> :not(#reader-inline) {
    display: none !important;
}

.device-container.reader-mode #reader-inline {
    display: block;
}

.reader-inline-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: 24px;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.reader-top-brand {
    font-weight: 700;
}

.reader-top-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reader-top-links a {
    color: #111;
    text-decoration: none;
}

.reader-top-links a:last-child {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reader-top-phone,
.reader-top-cart {
    text-align: right;
}

.reader-about-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    margin-bottom: 26px;
}

.reader-left-label {
    font-size: 0.78rem;
    color: #2a2a2a;
    padding-top: 6px;
}

.reader-about-main h2 {
    font-size: clamp(1.55rem, 3.2vw, 2.7rem);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    max-width: 22ch;
}

.reader-about-main p {
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 64ch;
    color: #333;
}

.reader-quote-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.48fr) 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
}

.reader-quote p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #232323;
}

.reader-image-placeholder {
    min-height: 360px;
    border-radius: 2px;
    background: linear-gradient(180deg, #000000 0%, #acacac 100%);
    position: relative;
    overflow: hidden;
}

.reader-image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reader-contact-grid {
    display: grid;
    grid-template-columns: minmax(180px, 280px);
    margin-bottom: 40px;
}

.reader-contact-grid h3 {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.reader-contact-grid p {
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.35;
}

.reader-inline-foot {
    border-top: 1px solid #d9d9d9;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    font-size: 0.66rem;
    text-transform: uppercase;
}

.reader-inline-foot div:last-child {
    text-align: right;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
}

.device-container.expanded .reveal {
    animation: reveal-up 0.8s var(--ease-lux) forwards;
}

.delay-1 {
    animation-delay: 0.06s;
}

.delay-2 {
    animation-delay: 0.12s;
}

.delay-3 {
    animation-delay: 0.18s;
}

.delay-4 {
    animation-delay: 0.24s;
}

.delay-5 {
    animation-delay: 0.3s;
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-grid {
    display: block;
    margin-bottom: var(--section-gap-lg);
    padding: var(--section-vertical-space) 0 0;
}

.hero-role {

    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: black;
    margin-bottom: 10px;
}

.hero-name {
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--ink);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15em;
}

.hero-name-script {
    font-size: 1em;
    font-weight: 700;
    color: black;
    line-height: 1;
    font-style: italic;
}

.hero-bio {
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--soft-ink);
    max-width: 52ch;
    font-weight: 400;
    margin-bottom: 0;
}

.hero-bio strong {
    color: var(--ink);
    font-weight: 600;
}

.hero-model {
    min-height: var(--hero-model-min-height);
    width: var(--hero-model-min-height);
    /* make it square so border-radius works perfectly */
    margin: 0 auto var(--section-gap-lg);
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #e2e2e2;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hero-model model-viewer,
.hero-model .model-fallback {
    width: 100%;
    height: 100%;
    min-height: var(--hero-model-min-height);
}

.model-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-size: 0.95rem;
}

.social-icon-dock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--section-gap-lg);
    padding: var(--section-vertical-space) 0;
}

.social-icon-btn,
.social-resume-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    color: #333;
    transition: all 0.3s var(--ease-lux);
    text-decoration: none;
}

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

.social-resume-btn {
    padding: 0 16px;
    height: 44px;
    gap: 10px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    background: #111;
    color: #fff;
    margin-left: 4px;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
}

.social-resume-btn svg {
    width: 18px;
    height: 18px;
}

.social-icon-btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.social-resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #222;
}

/* Tooltip for Social Icons */
.social-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease-lux);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



.company-dock-section {
    margin-bottom: var(--section-gap-lg);
    padding: 40px 0;

}

.arrow-marquee {
    width: calc(100% + 2 * var(--site-padding-x));
    margin-left: calc(-1 * var(--site-padding-x));
    margin-right: calc(-1 * var(--site-padding-x));
    height: 34px;
    margin-top: 50px;
    margin-bottom: -30px;
    background-image: var(--marquee-bg);
    background-repeat: repeat-x;
    background-size: 40px 24px;
    animation: marquee-scroll var(--marquee-speed, 1.5s) linear infinite;
}

@keyframes marquee-scroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -40px 0;
    }
}

/* --- DATA GRID NODE SYSTEM --- */
.node-system-section {
    position: relative;
    background-color: #e8e6df;
    width: calc(100% + 2 * var(--site-padding-x));
    margin-left: calc(-1 * var(--site-padding-x));
    margin-right: calc(-1 * var(--site-padding-x));
    padding: 60px 20px;
    margin-bottom: var(--section-gap-lg);
}

.node-system-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: #4a4a4a;
}

.node-graph-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 380px;
    margin: 0 auto;
}

.node-edges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.node-edges path {
    fill: none;
    stroke: #555;
    stroke-width: 1.5;
    stroke-dasharray: 2 4;
}

.node-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 6px 16px 6px 6px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #111;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    user-select: none;
    transition: box-shadow 0.25s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1), border 0.2s cubic-bezier(0.2, 0.9, 0.2, 1);
    /* transition transform dynamically handled in JS where needed */
    cursor: grab;
    border: 2px solid #e8e6df;
}

.node-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%) scale(1.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.node-item:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.98);
}

.node-item.is-dragging {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
}

.node-icon.pt-icon {
    background: #c3ff00;
    border: 1px dashed rgba(0, 0, 0, 0.3);
}

.node-icon.num-icon {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    background: #e8e6df;
}

.node-icon.usr-icon svg {
    color: #888;
}

.node-icon.usr-icon.active {
    background: #c3ff00;
}

.node-icon.usr-icon.active svg {
    color: #111;
}

.dock-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7d7d7d;
    text-align: center;
    margin-bottom: var(--section-gap-xs);
    font-weight: 500;
}

.company-dock {
    width: fit-content;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(218, 226, 243, 0.82);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 10px 28px rgba(125, 144, 184, 0.18);
    border: 1px solid rgba(167, 182, 215, 0.45);
    backdrop-filter: blur(14px) saturate(1.08);
}

.dock-item {
    --scale: 1;
    --lift: 0px;
    width: var(--dock-icon-size);
    height: var(--dock-icon-size);
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transform: translateY(var(--lift)) scale(var(--scale));
    transform-origin: 50% 100%;
    transition: transform 0.14s cubic-bezier(0.2, 0.9, 0.2, 1), background-color 0.16s var(--ease-lux), box-shadow 0.16s var(--ease-lux);
    will-change: transform, background-color;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 6px 14px rgba(95, 114, 152, 0.16);
}

.dock-item:hover {
    background: linear-gradient(180deg, #ffffff 0%, #eef2fc 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 20px rgba(95, 114, 152, 0.22);
}

.dock-logo {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.aircards-dot {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #555;
    border-radius: 50%;
}

.dock-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
    border-radius: 12px;
}

.dock-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    /* Lifted higher */
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    /* Darker, high contrast */
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mini-editorial-section {
    width: min(100%, 760px);
    margin: clamp(16px, 2.2vw, 30px) auto var(--section-gap-lg);
    color: #111;
}

.mini-editorial-title {
    margin: 0 0 14px;
    font-size: clamp(1.85rem, 4.6vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.mini-editorial-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.mini-editorial-pills-primary {
    margin-bottom: 12px;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 4px 14px;
    /* border: 1px solid rgba(0, 0, 0, 0.6); */
    border-radius: 999px;
    color: #111;
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
    background: #f7f7f7;
    position: relative;
}

.mini-pill-highlight {
    background: #e9f255;
}

.mini-editorial-copy {
    margin: 14px 0 0;
    max-width: 740px;
    font-size: clamp(0.98rem, 1.15vw, 1.18rem);
    line-height: 1.28;
    letter-spacing: -0.012em;
}

.mini-editorial-projects {
    margin: clamp(22px, 3.2vw, 34px) 0 10px;
    font-size: clamp(2.3rem, 7vw, 4.4rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.mini-project-row {
    margin-top: 8px;
}

.mini-project-id {
    font-size: clamp(2.3rem, 5.6vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.mini-project-grid {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-project-item {
    display: grid;
    grid-template-columns: minmax(86px, 140px) 1fr;
    gap: 14px;
    align-items: start;
    padding: 8px 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-project-label {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.15;
}

.mini-project-value {
    font-size: clamp(1.02rem, 1.55vw, 1.32rem);
    line-height: 1.18;
}

.mini-role-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 12px;
    margin-right: 8px;
    font-size: clamp(0.92rem, 1.3vw, 1.1rem);
    line-height: 1.12;
    white-space: nowrap;
}

.mini-role-pill-blue {
    background: #bde9ff;
}

.mini-role-pill-green {
    background: #62f0b2;
}

@media (max-width: 640px) {
    .mini-editorial-title {
        font-size: clamp(2rem, 10vw, 2.6rem);
    }

    .mini-pill {
        font-size: 0.95rem;
        min-height: 30px;
        padding: 4px 12px;
    }

    .mini-editorial-copy {
        font-size: 0.98rem;
        line-height: 1.34;
    }

    .mini-editorial-projects {
        font-size: clamp(2.2rem, 14vw, 3rem);
    }

    .mini-project-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 0;
    }

    .mini-project-label {
        font-size: 0.95rem;
        opacity: 0.7;
    }

    .mini-project-value {
        font-size: 1.02rem;
    }
}






.portfolio-section {
    position: relative;
    width: calc(100% + (var(--site-padding-x) * 2));
    margin-left: calc(var(--site-padding-x) * -1);
    margin-right: calc(var(--site-padding-x) * -1);
    margin-bottom: var(--section-gap-lg);
    padding: clamp(20px, 3vw, 32px) calc(var(--site-padding-x) + 12px) clamp(24px, 3.2vw, 42px);
    background: #82C3D9;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
}

.portfolio-section::before,
.portfolio-section::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: clamp(64px, 9vw, 160px);
    background-image: url("images/grad-dith-thick.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

.portfolio-section::before {
    top: 0;
}

.portfolio-section::after {
    bottom: 0;
    transform: scaleY(-1);
    transform-origin: center;
}

.portfolio-section>* {
    position: relative;
    z-index: 1;
}






.portfolio-section-header {
    margin-bottom: 16px;
}

.portfolio-section-title {
    margin: 0;
    color: #121212;
    font-size: 1.18rem;
    letter-spacing: -0.015em;
}

.portfolio-section-title span {
    display: block;
    margin-top: 4px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #444;
}

.portfolio-more {
    margin-bottom: 0;
}

.case-studies {
    display: grid;
    gap: var(--featured-card-gap);
    justify-items: stretch;
    margin-bottom: calc(var(--section-gap-md) + 4px);
}

.featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    width: min(100%, var(--featured-card-width));
    border-radius: var(--featured-card-radius);
    overflow: hidden;
    min-height: var(--featured-card-min-height);
    /* background: #ffffff; */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    --card-tilt-x: 0deg;
    --card-tilt-y: 0deg;
    --card-shift-x: 0px;
    --card-shift-y: 0px;
    --card-hover-lift: 0px;
    transform: perspective(980px) translate3d(var(--card-shift-x), calc(var(--card-shift-y) + var(--card-hover-lift)), 0) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
    margin: 0 auto;
}

.featured-card:hover {
    --card-hover-lift: -2px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.folder-top {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    background: #f3f3f3;
    overflow: hidden;
}

.folder-top::before {
    display: none;
}

.folder-top::after {
    display: none;
}

.folder-top img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    mix-blend-mode: normal;
}

.folder-body {
    position: relative;
    background: #ffffff;
    padding: 14px 16px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.folder-body::before {
    display: none;
}

.folder-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.folder-head h3 {
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 2px;
    color: #111;
}

.folder-head p {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #666;
}

.folder-menu {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #8a8a8a;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-left: 0;
    text-transform: uppercase;
}

.folder-foot {
    margin-top: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    color: #6f6f6f;
    letter-spacing: 0.01em;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.project-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.kicker {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.project-info h3 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--ink);
}

.project-info p {
    font-size: 0.95rem;
    color: var(--soft-ink);
    line-height: 1.5;
    margin: 0;
}

.more-title {
    font-size: 1.18rem;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}

/* --- More Projects Redesign --- */
.more-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: calc(100% + (var(--site-padding-x) * 2));
    margin-left: calc(var(--site-padding-x) * -1);
    margin-right: calc(var(--site-padding-x) * -1);
    margin-bottom: var(--section-gap-md);
}

.more-project-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
    background: #e0e0e0;
    text-decoration: none;
    cursor: pointer;
}

.more-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s var(--ease-lux), transform 0.6s var(--ease-lux);
    will-change: transform, opacity;
}

.more-project-label {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111;
    text-align: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: font-style 0.3s var(--ease-lux);
}

.more-project-item:hover .more-project-label {
    font-style: italic;
}

.more-project-item:hover img {
    opacity: 0.15;
    transform: scale(0.96);
}

/* -------------------------------- */

.github-chart-block {
    width: 100%;
    margin: 0 0 var(--section-gap-lg);
    overflow: hidden;
}

.github-chart-block img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.full-bleed-wrap {
    width: calc(100% + (var(--site-padding-x) * 2));
    margin-left: calc(var(--site-padding-x) * -1);
    margin-right: calc(var(--site-padding-x) * -1);
    margin-bottom: calc(var(--section-gap-md) + 2px);
}

.full-bleed-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.pixel-section {
    margin-bottom: var(--section-gap-lg);
    padding: var(--section-vertical-space) 0;
}

.pixel-title {
    font-size: 1.08rem;
    margin-bottom: 8px;
    text-align: center;
}

.pixel-sub {
    font-size: 0.86rem;
    color: #5c5c5c;
    margin-bottom: 10px;
}

.pixel-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: calc(var(--section-gap-xs) + 2px);
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 0;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    border: 2px solid transparent;
    transition: transform 0.2s var(--ease-lux), border-color 0.2s var(--ease-lux);
    appearance: none;
    -webkit-appearance: none;
}

.swatch.active {
    border-color: #ffffff;
    transform: scale(1.5);
}

.clear-pixel {
    border: 0;
    background: #111;
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 10px;
    display: block;
    flex: 0 0 100%;
    margin: 6px auto 0;
    text-align: center;
    border-radius: 999px;
}

.pixel-canvas-wrap {
    width: min(100%, var(--pixel-canvas-size));
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    position: relative;
    clip-path: polygon(32% 2%, 68% 2%, 98% 32%, 98% 68%, 68% 98%, 32% 98%, 2% 68%, 2% 32%);
    border-radius: 18px;
    overflow: hidden;
    background: #f3f3f3;
}

#pixel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    touch-action: none;
}




.pixel-cursor-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    border: 1px solid rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    transition: opacity 0.12s ease;
}

body.pixel-draw-cursor-active #custom-cursor {
    opacity: 0 !important;
}

.brand-section {
    display: flex;
    flex-direction: column;
    counter-reset: brand-row;
    width: calc(100% + 2 * var(--site-padding-x));
    margin-left: calc(-1 * var(--site-padding-x));
    margin-right: calc(-1 * var(--site-padding-x));
    padding-bottom: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.brand-block {
    display: flex;
    align-items: center;
    position: relative;
    counter-increment: brand-row;
    min-height: 74px;
    padding: 19px var(--site-padding-x) 19px calc(var(--site-padding-x) + 84px);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    transition: filter 0.2s var(--ease-lux), padding-left 0.3s var(--ease-lux);
}

.brand-block::before {
    content: counter(brand-row);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efefef;
    border-right: 1px solid rgba(0, 0, 0, 0.16);
    color: rgba(0, 0, 0, 0.82);
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

a.brand-block:hover {
    padding-left: calc(var(--site-padding-x) + 1px);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    transition: font-style 0.3s var(--ease-lux);
    /* line-height: 0.1; */
    /* letter-spacing: -0.02em; */
}


@media (max-width: 640px) {
    .brand-block {
        min-height: 64px;
        padding: 14px var(--site-padding-x) 14px calc(var(--site-padding-x) + 64px);
    }

    .brand-block::before {
        width: 54px;
        font-size: 1.3rem;
    }

    .brand-text {
        font-size: clamp(1.6rem, 8vw, 2.6rem);
    }
}


.footer {
    margin-top: var(--section-gap-md);
    background: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.footer h3 {
    font-weight: 700;
    font-size: 1.6rem;
    color: #424242;
    margin-bottom: 10px;
}

.footer p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #424242;
    line-height: 1.45;
}

.footer-links {
    text-align: right;
}

.footer-links ul {
    list-style: none;
}

.footer-links a,
.footer-contact a {
    color: #424242;
    text-decoration: none;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: transform 0.3s var(--ease-lux), color 0.25s var(--ease-lux);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #262626;
    transform: translateY(-2px);
}

.footer-hand {
    width: 100%;
    padding-top: 24px;
    opacity: 0.85;
    pointer-events: none;
    display: block;
}

.bottom-bar {
    padding-top: 20px;
    padding-bottom: 20px;
    height: 100px;
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    background: #ffffff00;
    border-radius: 0 0 var(--site-radius) var(--site-radius);
    transition: opacity 0.4s var(--ease-lux);
}

.vertical-action-btn {
    width: 100%;
    /*    max-width: 200px;
    /* Don't let the button get wider than the actual image */
    background: transparent;
    border: none;
    padding: 0;
}

.vertical-action-btn img {
    width: 100%;
    /* Spans the full width of the button */
    height: auto;
    /* CRITICAL: Tells the browser to calculate height based on width */
    display: block;
    object-fit: contain;
    /* Ensures the full image is visible without clipping */
}

.vertical-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    will-change: transform;
}

.vertical-action-btn:hover {
    transform: translateY(-20px);
}

.vertical-action-btn img {
    display: block;
    height: 140px;
    /* Vertical button presence */
    width: auto;
}

.device-container.expanded .bottom-bar {
    opacity: 1;
    transition-delay: 0.2s;
}

@media(max-width: 400px) {
    .pixel-tools {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: calc(var(--section-gap-xs) + 2px);
    }
}

/* --------------------------------------------------------
   ASCII ANIMATED BACKGROUND
   -------------------------------------------------------- */
.ascii-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    /* Sits just above body background, below all content (z-index 10+) */
    overflow: hidden;
}

#canvas-bg {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.24s ease;
}

body.matrix-paused .ascii-bg {
    background: #9b9b9b;
}

body.matrix-paused #canvas-bg {
    opacity: 0;
}

.ascii-particle {
    position: absolute;
    color: var(--muted);
    font-family: 'VCRLocal', monospace;
    /* Nice terminal feel */
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.15;
    user-select: none;
}

@keyframes asciiFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(120vh) rotate(15deg);
    }
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-model {
        min-height: 250px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .device-container {
        width: 100vw;
    }

    .device-container.expanded {
        height: 100vh;
        box-shadow: none;
    }

    .site-content {
        padding: 24px 16px 0;
    }

    .portfolio-section {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        padding: 18px 16px 24px;
        border-radius: 0;
    }

    .featured-card {
        width: 100%;
        min-height: 0;
        border-radius: 14px;
    }

    .folder-top {
        min-height: 0;
    }

    .folder-body {
        padding: 12px 14px;
    }

    .folder-head h3 {
        font-size: 1rem;
    }

    .folder-head p {
        font-size: 0.84rem;
    }

    .folder-foot {
        font-size: 0.78rem;
    }

    .full-bleed-wrap {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
    }

    .location-sub {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }
}

@media (pointer: coarse) {

    body.cursor-system,
    body.cursor-system * {
        cursor: auto !important;
    }
}

/* Case Study Window (Side Overlay) - Refined for "Clean Luxury" */
.case-window {
    position: fixed;
    top: 50%;
    left: calc(50% + (var(--device-width) / 2) + var(--case-window-gap));
    width: var(--case-window-width);
    height: 85vh;
    max-height: 920px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    /* Thinner, cleaner border */
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    /* Softer, luxury shadow */
    display: flex;
    flex-direction: column;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(44px, -50%, 0) scale(0.992);
    transition:
        transform 0.74s var(--ease-genie),
        opacity 0.3s var(--ease-genie),
        height 0.5s var(--ease-genie);
    overflow: hidden;
    outline: none;
    /* Ensure no focus outlines */
    will-change: transform, opacity;
}

body.case-open .device-container {
    transform: translateX(calc(var(--case-pair-shift) * -1));
}

body.case-open .case-window {
    left: calc(50% + (var(--device-width) / 2) + var(--case-window-gap) - var(--case-pair-shift));
}

.case-window *:focus {
    outline: none !important;
}

.case-window.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, -50%, 0) scale(1);
}

.case-window.is-opening {
    pointer-events: none;
}

.case-window.is-closing {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(44px, -50%, 0) scale(0.992);
}

.case-window.minimized {
    height: 44px;
    transform: translateY(-50%) translateX(10px);
    opacity: 0.9;
}

.case-window-header {
    height: 44px;
    background: #f2f2f2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
    padding: 0 12px;
    flex-shrink: 0;
}

.case-window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgb(0 0 0 / 13%);
    /* Default to no pointer */
    transition: filter 0.2s, background-color 0.2s;
}

.close-dot {
    background: #ff5f56;
    /* Only close is active */
}

.close-dot:hover {
    filter: brightness(0.9);
}

.minimize-dot,
.zoom-dot {
    background: #e0e0e0;
    /* Disabled/Grey look */
    pointer-events: none;
}

.case-window-title {
    text-align: center;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #444;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-open-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    background: #fbfbfb;
    color: #565656;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    padding: 0;
}

.case-open-btn:hover {
    background: #efefef;
    border-color: rgba(0, 0, 0, 0.24);
    color: #2e2e2e;
    transform: translateY(-1px);
}

.case-open-btn:active {
    transform: translateY(0);
}

.case-open-btn:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.34);
    outline-offset: 2px;
}

.case-open-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.case-open-icon {
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-0.5px);
}

.case-window-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f9f9f9;
}

.case-window-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    opacity: 0;
    animation: caseFadeIn 0.8s var(--ease-lux) forwards;
}

@keyframes caseFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Custom Scrollbar for Case Window */
.case-window-content::-webkit-scrollbar {
    width: 6px;
}

.case-window-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.case-window-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}



.asset-popout {
    position: fixed;
    top: 136px;
    left: 42px;
    width: min(72vw, 460px);
    height: min(72vh, 560px);
    min-width: 280px;
    min-height: 220px;
    max-width: min(84vw, 640px);
    max-height: min(84vh, 760px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 14px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 11990;
    transform: translate3d(0, 0, 0);
}

.asset-popout.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.asset-popout.is-opening {
    transition: transform 0.78s var(--ease-genie), opacity 0.32s var(--ease-genie);
    will-change: transform, opacity;
}

.asset-popout.is-closing {
    transition: transform 0.74s var(--ease-genie), opacity 0.28s var(--ease-genie);
    will-change: transform, opacity;
    pointer-events: none;
}

.asset-popout-header {
    height: 40px;
    background: #f1f1f1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    user-select: none;
    touch-action: none;
}

.asset-popout-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    font-weight: 600;
    margin-right: 4px;
}

.asset-popout-body {
    flex: 1;
    background: #fff;
}

.asset-popout-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

@media (max-width: 640px) {
    .device-container.reader-mode {
        width: min(98vw, 560px);
    }

    .reader-inline-top {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .reader-top-phone,
    .reader-top-cart {
        text-align: left;
    }

    .reader-about-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .reader-quote-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .reader-image-placeholder {
        min-height: 250px;
    }

    .reader-inline-foot {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .reader-inline-foot div:last-child {
        text-align: left;
    }

    .asset-popout {
        width: min(92vw, 420px);
        height: min(72vh, 500px);
        min-width: 220px;
    }
}

/* Sticky Note Overlay */
.sticky-note {
    position: fixed;
    top: 120px;
    left: 24px;
    width: min(28.7vw, 196px);
    height: min(21.7vh, 150px);
    min-width: 126px;
    min-height: 98px;
    max-width: min(30.8vw, 252px);
    max-height: min(28vh, 196px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #e0e0e0;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 12000;
    transform: translate3d(0, 0, 0);
    resize: none;
}

.sticky-note.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sticky-note.is-opening {
    transition: transform 0.72s var(--ease-genie), opacity 0.3s var(--ease-genie);
    will-change: transform, opacity;
}

.sticky-note.is-closing {
    transition: transform 0.68s var(--ease-genie), opacity 0.26s var(--ease-genie);
    will-change: transform, opacity;
    pointer-events: none;
}

.sticky-note.minimized {
    height: 38px !important;
    min-height: 38px;
    resize: none;
}

.sticky-note-header {
    height: 22px;
    background: #cccccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    flex-shrink: 0;
    user-select: none;
    touch-action: none;
}

.sticky-note-dots .close-dot {
    background: #ff5f56;
}

.sticky-note-dots .minimize-dot {
    background: #ffbd2e;
    pointer-events: auto;
}

.sticky-note-dots .zoom-dot {
    background: #00000021;
    opacity: 0.5;
    pointer-events: none;
}

.sticky-note-grid {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    gap: 2px;
}

.sticky-note-grid span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b5b5b5;
}

.sticky-note-body {
    position: relative;
    flex: 1;
    padding: 12px;
    background: #e0e0e0;
}

.sticky-note-editor {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #201314;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.66rem, 1.12vw, 0.875rem);
    line-height: 1.2;
    resize: none;
    outline: none;
}

.sticky-note-editor::placeholder {
    color: rgba(32, 19, 20, 0.6);
}

.sticky-note.minimized .sticky-note-body,
.sticky-note.minimized .sticky-note-corner {
    display: none;
}

.sticky-note-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, rgba(204, 204, 204, 0.92) 0%, rgba(204, 204, 204, 0.92) 50%, rgba(240, 240, 240, 0.85) 50%, rgba(240, 240, 240, 0.85) 100%);
    pointer-events: none;
}

@media (max-width: 640px) {
    .sticky-note {
        width: min(49vw, 150px);
        height: min(19.6vh, 126px);
        min-width: 112px;
    }

    .sticky-note-body {
        padding: 10px;
    }
}

/* Mobile adjustments for Case Window */
@media (max-width: 1000px) {
    .case-window {
        left: 5vw;
        width: 90vw;
        height: 80vh;
        z-index: 3000;
    }

    body.case-open .device-container {
        transform: translateX(0);
    }

    body.case-open .case-window {
        left: 5vw;
    }
}

/* --------------------------------------------------------
   HERO TYPOGRAPHY (OPENAI STYLE)
   -------------------------------------------------------- */
.onboarding-header {
    margin: 0 0 22px;
    width: 100%;
    padding: 0 0 18px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d9d9d9;
    box-shadow: none;
    text-align: left;
    overflow: hidden;
    position: relative;
}

.onboarding-kicker {
    margin: 0 0 10px;
    font-size: clamp(0.72rem, 1.05vw, 0.9rem);
    line-height: 1.3;
    color: rgba(22, 22, 22, 0.86);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.onboarding-line {
    margin: 0;
    max-width: 100%;
    font-size: clamp(0.98rem, 1.85vw, 1.9rem);
    line-height: 1.34;
    font-weight: 400;
    color: rgba(20, 20, 20, 0.74);
    letter-spacing: -0.015em;
    text-wrap: pretty;
}

.onboarding-word {
    display: inline;
    opacity: 0.93;
    filter: blur(0);
}

.onboarding-segment {
    display: block;
}

.onboarding-segment+.onboarding-segment {
    margin-top: 0.28em;
}

.onboarding-hint {
    appearance: none;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: rgba(17, 17, 17, 0.06);
    color: rgba(15, 15, 15, 0.92);
    font: inherit;
    font-size: 0.96em;
    letter-spacing: inherit;
    line-height: inherit;
    border-radius: 10px;
    padding: 0.05em 0.3em;
    margin: 0 0.05em;
    cursor: pointer;
    transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
    vertical-align: baseline;
}

.onboarding-hint:hover,
.onboarding-hint:focus-visible {
    background: rgba(17, 17, 17, 0.11);
    border-color: rgba(17, 17, 17, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(12, 12, 12, 0.11);
    outline: none;
}

.hero-clean {
    padding: 20px 0 40px;
    margin-bottom: var(--section-gap-lg);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-clean-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #212121;
    margin-bottom: 24px;
}

.hero-title-line-rotating {
    min-height: 1em;
}

.hero-title-rotating-text {
    display: inline-block;
    white-space: nowrap;
}

.hero-language-word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

.hero-clean-title .hero-language-word {
    display: inline-block;
    background: linear-gradient(180deg, #212121 0%, #59595959 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-clean-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    color: var(--soft-ink);
    font-weight: 400;
    letter-spacing: -0.01em;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-clean-subtitle strong {
    color: var(--ink);
    font-weight: 600;
}

.hero-clean-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.hero-clean-actions .btn-primary {
    background: var(--ink);
    color: var(--panel);
    border: none;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-clean-actions .btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.hero-clean-actions .btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-clean-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

.hero-clean-actions .btn-secondary .show-id-icon {
    width: 1.365em;
    height: 1.365em;
    object-fit: contain;
    transform: translateY(-0.5px);
}

.hero-clean-actions .btn-secondary:hover .show-id-icon {
    transform: translateY(-0.5px) translateX(2px);
    transition: transform 0.2s;
}

.hero-clean-actions .btn-secondary svg {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2;
    margin-left: 4px;
    transform: translateY(-1px);
}

.hero-clean-actions .btn-secondary:hover svg {
    transform: translateY(-1px) translateX(2px);
    transition: transform 0.2s;
}

@media(max-width: 600px) {
    .onboarding-header {
        margin-bottom: 20px;
    }

    .onboarding-kicker {
        margin-bottom: 14px;
    }

    .onboarding-line {
        font-size: clamp(0.94rem, 4.5vw, 1.18rem);
        line-height: 1.28;
    }

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

.night-mode .custom-nav-header {
    background: transparent;
}

.night-mode .btn-cv {
    background: #fff;
    color: #000;
}

.night-mode .nav-links a,
.night-mode .hero-greeting,
.night-mode .fit-text:not(.text-orange) {
    color: #f3f3f3;
}

/* --------------------------------------------------------
   DIGITAL CULTURE INDEX FOOTER
   -------------------------------------------------------- */
.index-footer {
    background: #fff;
    color: #111;
    padding: 60px var(--site-padding-x) 40px;
    margin-top: 100px;
    overflow: hidden;
    width: calc(100% + 2 * var(--site-padding-x));
    margin-left: calc(-1 * var(--site-padding-x));
    margin-right: calc(-1 * var(--site-padding-x));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* The colorful square grid */
.index-grid-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    margin-bottom: 40px;
}

.index-grid-square {
    aspect-ratio: 1/1;
    width: 100%;
}

.index-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.index-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 500px;
    margin: 0;
}

.index-right {
    max-width: 320px;
    text-align: left;
}

.index-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
    margin-bottom: 24px;
}

.index-contact-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    gap: 8px;
    transition: transform 0.2s;
}

.index-contact-link:hover {
    transform: translateX(4px);
}

.index-partners {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding-top: 20px;
}

.partners-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-right: 20px;
}

.partner-logo {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    letter-spacing: -0.02em;
}


.index-bottom {
    border-top: 1px solid #111;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111;
}

.index-bottom a {
    color: inherit;
    text-decoration: none;
}

.ask-ai-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ask-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.ask-ai-btn:hover {
    background: #f5f5f5;
}

.ask-ai-tagline {
    font-size: 11px;
    color: #999;
    margin: 0;
    letter-spacing: 0.03em;
    text-align: right;
}


@media (max-width: 800px) {
    .index-grid-wrap {
        grid-template-columns: repeat(10, 1fr);
    }

    .index-main {
        flex-direction: column;
        gap: 30px;
    }

    .index-title {
        font-size: 3rem;
    }

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

    .site-exit-btn,
    .site-resume-btn,
    .expand-fab,
    .work-together-wrap,
    .work-assistant-panel {
        display: none !important;
    }
}

/* WIP Swinging Image */
.wip-swinging-img {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* User requested bottom right */
    width: 200px;
    /* Base width */
    max-width: 25vw;
    height: auto;
    z-index: 10000;

    /* Hide by default, show in reader mode */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;

    /* Origin of swing - you can manually set the point here */
    transform-origin: bottom center;

    animation: swing-wip 3s ease-in-out infinite alternate;
    pointer-events: none;
}

body.reader-mode .wip-swinging-img {
    opacity: 1;
    visibility: visible;
}

@keyframes swing-wip {
    0% {
        transform: rotate(-4deg);
    }

    100% {
        transform: rotate(4deg);
    }
}