/* ============================================================
   Gub Gub Global — Desktop OS theme
   Shared stylesheet for the "Indexable Desktop" architecture.
   Brand: Royale-blue Aero glass. Playful, premium, high-converting.
   ============================================================ */

@import url(https://db.onlinewebfonts.com/c/074b684d1a44a36eeef40214dcabba7b?family=A-TTF+Shin+Go+Pro+H);
@import url(https://db.onlinewebfonts.com/c/1a5dfa4fc7cf6be2d5ec0c879123e657?family=A-TTF+Shin+Go+Pro+L);

:root {
    --royale-deep: #094e8c;
    --royale-bright: #007dc1;
    --green-hi: #e0ffe0;
    --green-mid: #44aa44;
    --green-dark: #006600;
    --green-glow: rgba(50, 255, 50, 0.5);

    /* ── Liquid-Glass (Vista Aero) system ──────────────────────────
       The frame is real translucent glass: a blue-biased tint over a
       heavy backdrop blur, lit by a bright specular sheen and a rim
       highlight, ringed by a soft Aero glow. Tokens drive every glass
       surface so windows, taskbar, hero, login + clock stay cohesive. */
    --glass-tint: rgba(28, 92, 165, 0.22);        /* blue glass body tint */
    --glass-tint-deep: rgba(10, 52, 104, 0.30);   /* lower-edge denser tint */
    --glass-blur: 30px;                            /* frosted depth */
    --glass-sat: 1.7;                             /* refraction: boost what's behind */
    --glass-rim: rgba(214, 238, 255, 0.85);        /* bright inner edge highlight */
    --glass-rim-soft: rgba(150, 205, 255, 0.45);   /* outer edge definition */
    --glass-spec: rgba(255, 255, 255, 0.62);       /* specular sheen peak */
    --glass-spec-soft: rgba(255, 255, 255, 0.22);  /* secondary reflection streak */
    --aero-glow: rgba(96, 184, 255, 0.55);         /* active-window halo */

    /* Frame depth: how much glass shows around the dark content panel */
    --frame: 9px;

    /* Vista Aero glass frame tints (legacy names — kept for compatibility) */
    --glass-frame: var(--glass-tint);
    --glass-border: rgba(180, 222, 255, 0.62);
    --glass-inset: rgba(255, 255, 255, 0.75);
    /* Legacy surface vars — still used by clock face / login box */
    --glass-surface-top: rgba(255, 255, 255, 0.42);
    --glass-surface-mid: rgba(190, 226, 255, 0.20);
    --glass-surface-bot: rgba(255, 255, 255, 0.05);
    --navy: #003366;
    --ink: #0a2742;           /* dark title-bar text */
    --white: #ffffff;
    --white70: rgba(255, 255, 255, 0.7);
    --white80: rgba(255, 255, 255, 0.8);
    --watermark: rgba(0, 0, 0, 0.10);
    --inset-bg: rgba(0, 0, 0, 0.38);
    --content-bg: rgba(6, 24, 60, 0.90);  /* dark panel inside glass frame */
    --font-body: "A-TTF Shin Go Pro L", "Segoe UI", "Trebuchet MS", sans-serif;
    --font-head: "A-TTF Shin Go Pro H", "Segoe UI", "Trebuchet MS", sans-serif;
    /* Vista window radii: small top, near-square bottom */
    --win-r-top: 9px;
    --win-r-bot: 5px;
    /* Aero drop-shadow layers — soft blue halo + grounded depth shadow */
    --shadow-aero:
        0 0 0 1px rgba(8, 38, 78, 0.55),
        0 0 0 2px rgba(150, 205, 255, 0.28),
        0 0 34px var(--aero-glow),
        0 22px 60px rgba(0, 0, 0, 0.50),
        0 6px 16px rgba(0, 0, 0, 0.34);
    --shadow-inactive:
        0 0 0 1px rgba(8, 38, 78, 0.45),
        0 12px 34px rgba(0, 0, 0, 0.42),
        0 3px 8px rgba(0, 0, 0, 0.24);
    /* Reusable specular sheen for glass tops (title bars, taskbar, buttons) */
    --gloss-band: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(232, 245, 255, 0.55) 44%,
        rgba(150, 205, 250, 0.16) 50%,
        rgba(198, 230, 255, 0.40) 100%);
}

* { box-sizing: border-box; }

body, html {
    font-family: var(--font-body);
    height: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(180deg, var(--royale-deep) 0%, var(--royale-bright) 100%);
}
h1, h2, h3, h4, .font-bold, summary { font-family: var(--font-head); font-weight: 700; }

a { color: var(--green-hi); }
a:hover { color: var(--green-mid); }

/* Accessibility helpers ----------------------------------------------------- */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 100000;
    background: var(--green-dark); color: #fff; padding: 10px 16px;
    border-radius: 8px; transition: top 0.2s; font-weight: 700;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; border-radius: 4px; }

/* ── Login / boot splash (runs once per session) ── */
#login-screen {
    position: fixed; inset: 0; z-index: 10000;
    background: linear-gradient(180deg, var(--royale-deep) 0%, var(--royale-bright) 100%);
    display: flex; justify-content: center; align-items: center;
    opacity: 1; transition: opacity 0.5s ease-in-out;
    /* Safety net: if JS never runs, the splash still clears so the site is usable. */
    animation: bootAutoHide 0.6s ease 3.4s forwards;
}
#login-screen.hidden { opacity: 0; pointer-events: none; }
@keyframes bootAutoHide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.login-box {
    display: flex; align-items: center; gap: 24px; padding: 28px; max-width: 90vw;
    background:
        linear-gradient(180deg, var(--glass-surface-top), var(--glass-surface-mid) 50%, var(--glass-surface-bot)),
        var(--glass-tint);
    backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border-radius: 16px; border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px rgba(255,255,255,0.12), 0 20px 50px rgba(0,0,0,0.35);
    position: relative; overflow: hidden;
}
.login-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 60%; height: 60%;
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.25), transparent 60%);
    pointer-events: none;
}
.profile-pic { width: 100px; height: 100px; border-radius: 12px; border: 2px solid var(--glass-border); }
.login-fields { display: flex; flex-direction: column; gap: 12px; }
.username { font-size: 1.5rem; color: var(--white); font-weight: 700; }
.password-field {
    background: var(--inset-bg); border: none; border-radius: 8px;
    padding: 10px 14px; font-size: 1rem; color: var(--white);
    min-height: 42px; display: flex; align-items: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.12);
}
.typing-cursor { display: inline-block; width: 2px; height: 1.25rem; background: var(--green-mid); animation: blink 1s step-end infinite; }
@keyframes blink { from, to { background: transparent } 50% { background: var(--green-mid); } }

/* ── Desktop ── */
/* #desktop is its own stacking context (isolate) so the video sits reliably
   at the back as the first child, with all UI painting above it. */
#desktop { height: 100vh; width: 100vw; position: relative; overflow: hidden; isolation: isolate; }
#desktop-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }

/* ── Desktop Icons (real anchor links for crawlers) ── */
.desktop-icon {
    width: 120px; height: 120px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    cursor: pointer; position: absolute; transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    border-radius: 12px; font-size: 0.85rem; font-weight: 600;
    text-decoration: none;
}
.desktop-icon:hover, .desktop-icon:focus-visible {
    /* Vista soft-blue selection rectangle (ring via inset shadow → no layout shift) */
    background: linear-gradient(180deg, rgba(150,205,255,0.26), rgba(90,160,230,0.10));
    box-shadow: inset 0 0 0 1px rgba(180,222,255,0.50), inset 0 1px 0 rgba(255,255,255,0.40), 0 2px 10px rgba(0,0,0,0.22);
    color: var(--white);
}
.desktop-icon.disabled { filter: grayscale(80%); cursor: not-allowed; pointer-events: none; }
.desktop-icon img { width: 64px; height: 64px; margin-bottom: 7px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35)); }

/* ── Window (Vista Aero Glass) ── */
.window {
    position: absolute; width: 90vw; max-width: 760px; height: 540px;
    /* Liquid glass body: blue tint, luminous at the top, denser at the lower edge */
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.20) 0%,
            rgba(255,255,255,0.05) 42%,
            rgba(150,200,250,0.05) 62%,
            var(--glass-tint-deep) 100%
        ),
        var(--glass-tint);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border);
    border-radius: var(--win-r-top) var(--win-r-top) var(--win-r-bot) var(--win-r-bot);
    /* Bright inner rim + faint all-round edge + grounded depth */
    box-shadow:
        inset 0 1px 0 var(--glass-rim),
        inset 0 0 0 1px rgba(255,255,255,0.12),
        inset 0 -12px 30px -16px rgba(6,34,74,0.65),
        var(--shadow-inactive);
    /* No window-level padding — content panel applies its own margin for the inset */
    padding: 0;
    display: none; flex-direction: column;
    transform: scale(0.5); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s, box-shadow 0.25s;
    overflow: hidden;
}
/* Specular sheen — bright wet-glass reflection sweeping the top-left, plus a
   faint diagonal light streak. This is the "liquid" in liquid glass. */
.window::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    border-radius: inherit;
    background:
        radial-gradient(150% 95% at 0% -12%, var(--glass-spec) 0%, rgba(255,255,255,0.14) 24%, transparent 46%),
        linear-gradient(122deg, transparent 40%, var(--glass-spec-soft) 47%, transparent 53%);
}
.window.open { display: flex; transform: scale(1); opacity: 1; }
.window.minimized { transform: scale(0) translateY(100px); opacity: 0; }
.window.maximized { width: 100%; height: calc(100% - 52px); top: 0 !important; left: 0 !important; border-radius: 0; }
.window.maximized .window-content { margin: 0; border-radius: 0; }
/* Active window gets full Aero glow drop-shadow + brighter rim */
.window.is-active {
    box-shadow:
        inset 0 1px 0 var(--glass-rim),
        inset 0 0 0 1px rgba(255,255,255,0.16),
        inset 0 -12px 30px -16px rgba(6,34,74,0.55),
        var(--shadow-aero);
}

/* Vista Aero title bar — light glossy split gradient, NOT dark blue */
.title-bar {
    width: 100%; height: 30px; flex-shrink: 0;
    position: relative; z-index: 2; cursor: grab;
    /* Shared Aero gloss band: bright sheen → mid dip → pearl reflection */
    background: var(--gloss-band);
    border-bottom: 1px solid rgba(86,156,222,0.45);
    /* Crisp light line along the very top + soft reflection at the base */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), inset 0 -1px 0 rgba(255,255,255,0.20);
    display: flex; align-items: center;
    /* Left padding for title text; right reserve for the gel caption cluster */
    padding: 0 120px 0 13px;
}
.title-bar::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.60), transparent);
    pointer-events: none; border-radius: var(--win-r-top) var(--win-r-top) 0 0;
}
.title-bar:active { cursor: grabbing; }
/* Dark ink text + strong white halo blob (Vista style) */
.title-bar-text {
    font-weight: 700; font-size: 0.82rem;
    color: var(--ink);
    text-shadow:
        0 0 14px rgba(255,255,255,1),
        0 0 7px rgba(255,255,255,0.9),
        0 1px 0 rgba(255,255,255,0.7);
    position: relative; z-index: 1;
}

/* Vista caption buttons — a floating cluster of glossy gel buttons, top-right */
.window-controls {
    position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
    z-index: 10; height: 21px; display: flex; align-items: stretch; gap: 3px;
}
.window-controls button {
    border: none; cursor: pointer; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; font-family: Arial, sans-serif;
    line-height: 1; color: rgba(255,255,255,0.96);
    transition: background 0.12s, box-shadow 0.12s, filter 0.12s;
    position: relative; overflow: hidden;
    /* Gel body: bright top rim, inner sheen ring, drop for lift */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.75),
        inset 0 0 0 1px rgba(255,255,255,0.22),
        inset 0 -4px 6px -3px rgba(0,0,0,0.30),
        0 1px 2px rgba(0,0,0,0.30);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.35);
}
/* Min + Max share a blue glass gel look */
.window-controls .minimize,
.window-controls .maximize {
    width: 30px;
    background: linear-gradient(to bottom,
        rgba(168,218,255,0.92) 0%,
        rgba(96,166,228,0.92) 49%,
        rgba(58,124,194,0.95) 51%,
        rgba(104,178,240,0.90) 100%
    );
}
.window-controls .minimize:hover,
.window-controls .maximize:hover {
    background: linear-gradient(to bottom,
        rgba(208,240,255,1) 0%,
        rgba(132,196,250,1) 49%,
        rgba(74,148,220,1) 51%,
        rgba(140,206,255,1) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 0 0 1px rgba(255,255,255,0.35),
        0 0 12px rgba(120,200,255,0.7), 0 1px 2px rgba(0,0,0,0.3);
}
.window-controls button:active { filter: brightness(0.9); }
/* Close button: wider, red gel */
.window-controls .close {
    width: 40px;
    background: linear-gradient(to bottom,
        rgba(252,168,168,0.96) 0%,
        rgba(224,72,72,0.97) 49%,
        rgba(178,26,26,0.98) 51%,
        rgba(214,62,62,0.97) 100%
    );
}
.window-controls .close:hover {
    background: linear-gradient(to bottom,
        rgba(255,206,206,1) 0%,
        rgba(255,92,92,1) 49%,
        rgba(198,22,22,1) 51%,
        rgba(232,66,66,1) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 0 0 1px rgba(255,255,255,0.3),
        0 0 14px rgba(255,70,70,0.75), 0 1px 2px rgba(0,0,0,0.3);
}

/* Dark navy panel inset from the glass frame (glass shows as a strip on
   left/right/bottom; the title-bar spans full width above it). */
.window-content {
    flex-grow: 1; padding: 18px 18px 20px; overflow-y: auto; color: var(--white);
    /* Dark navy with a faint top-down sheen so it reads as a lit surface */
    background:
        linear-gradient(180deg, rgba(180,220,255,0.07), transparent 16%),
        var(--content-bg);
    /* Glass frame depth visible on left, right, bottom */
    margin: 0 var(--frame) var(--frame);
    border-radius: 3px;
    /* Bevel: top edge light + dark inner ring + blue-glass outer ring + seat shadow */
    box-shadow:
        inset 0 1px 0 rgba(175,218,255,0.20),
        0 0 0 1px rgba(6,36,76,0.60),
        0 0 0 2px rgba(150,205,255,0.30),
        0 3px 12px -4px rgba(0,0,0,0.45);
    position: relative; z-index: 2; line-height: 1.5;
}
/* Vista-style aqua scrollbars */
.window-content::-webkit-scrollbar { width: 10px; }
.window-content::-webkit-scrollbar-track {
    background: rgba(5,18,48,0.8); border-radius: 0 0 2px 0;
}
.window-content::-webkit-scrollbar-thumb {
    border-radius: 5px; border: 2px solid rgba(5,18,48,0.8);
    background: linear-gradient(to bottom,
        rgba(160,220,255,0.85) 0%,
        rgba(80,165,235,0.90) 45%,
        rgba(40,120,200,0.95) 51%,
        rgba(90,175,245,0.85) 100%
    );
}
.window-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom,
        rgba(200,240,255,1) 0%,
        rgba(100,185,255,1) 45%,
        rgba(50,140,220,1) 51%,
        rgba(110,195,255,1) 100%
    );
}
.window-content h1 { font-size: 1.6rem; margin: 0 0 6px; }
.window-content h2 { font-size: 1.3rem; margin: 0 0 8px; }
.window-content h3 { font-size: 1.1rem; margin: 0 0 6px; }
.window-content p { margin: 0 0 12px; }
.window-content .muted { color: var(--white70); }

/* ── Detail nav (back button inside title bar) ── */
.detail-nav { display: flex; align-items: center; gap: 8px; }
.detail-nav button { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--white); }

/* ── Explorer list items ── */
.explorer-item {
    display: flex; align-items: center; padding: 10px 12px; border-radius: 10px;
    cursor: pointer; transition: all 0.2s; margin-bottom: 6px; text-decoration: none; color: var(--white);
}
.explorer-item:hover { background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
.explorer-item img { width: 48px; height: 48px; margin-right: 12px; border-radius: 8px; }
.explorer-item span { font-weight: 600; }
.explorer-item small { display: block; font-weight: 400; color: var(--white70); }

/* ── Tabs ── */
.tab-bar {
    display: flex; margin-bottom: 16px; flex-wrap: wrap; gap: 2px;
    background: var(--inset-bg); padding: 4px; border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.12);
}
.tab { padding: 7px 14px; cursor: pointer; font-size: 0.85rem; color: var(--white70); border-radius: 8px; transition: all 0.2s; font-weight: 600; border: none; background: none; }
.tab:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.tab.active { background: linear-gradient(180deg, rgba(196,228,255,0.32), rgba(120,180,240,0.12)); color: var(--white); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 1px 2px rgba(0,0,0,0.22); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Accordion ── */
details { margin-bottom: 8px; border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; }
details:hover { border-color: rgba(255,255,255,0.2); }
details[open] { background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)); }
summary { padding: 12px 14px; cursor: pointer; font-weight: 700; list-style: none; color: var(--white); font-size: 0.9rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+'; margin-right: 10px; color: var(--green-mid); font-size: 1.1rem; }
details[open] > summary::before { content: '−'; }
.accordion-content { padding: 0 14px 14px 14px; border-top: 1px solid rgba(255,255,255,0.1); color: var(--white70); font-size: 0.88rem; line-height: 1.5; }

/* ── CTA buttons (glossy Vista green gel) ── */
.portfolio-button, button[type="submit"], .cta-button {
    /* Glass sheen (white top half → shadow lower half) over the green body */
    background:
        linear-gradient(180deg, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0.06) 48%, rgba(0,0,0,0.05) 52%, rgba(0,0,0,0.12) 100%),
        linear-gradient(180deg, var(--green-hi) 0%, var(--green-mid) 40%, var(--green-dark) 100%);
    color: var(--white); font-weight: 700; border: none;
    text-shadow: 0 1px 1px rgba(0,70,0,0.5);
    box-shadow: 0 4px 16px rgba(40,190,40,0.30), inset 0 1px 0 rgba(255,255,255,0.65), inset 0 0 0 1px rgba(255,255,255,0.16);
    border-radius: 10px; transition: all 0.2s; cursor: pointer; text-decoration: none;
    padding: 12px 20px; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.portfolio-button:hover, button[type="submit"]:hover, .cta-button:hover { transform: translateY(-2px); box-shadow: 0 7px 26px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.22); color: var(--white); }
.portfolio-button:active, button[type="submit"]:active, .cta-button:active { transform: translateY(0); }
.cta-button.full { width: 100%; }

/* ── Proof / stats ── */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.proof-stat { background: linear-gradient(180deg, rgba(150,205,255,0.10), rgba(0,0,0,0.22)); border: 1px solid rgba(150,205,255,0.22); border-radius: 12px; padding: 14px; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.16); }
.proof-stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--green-hi); line-height: 1.1; }
.proof-stat span { font-size: 0.72rem; color: var(--white70); text-transform: uppercase; letter-spacing: 0.04em; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.badge { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 5px 12px; font-size: 0.75rem; font-weight: 600; color: var(--white80); }

/* ── Forms ── */
.window-content input, .window-content select, .window-content textarea {
    background: var(--inset-bg); border: 1px solid rgba(255,255,255,0.15); color: var(--white);
    border-radius: 8px; padding: 11px 14px; width: 100%; font-family: var(--font-body); font-size: 0.95rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.12);
    transition: border-color 0.2s, background 0.2s;
}
.window-content input::placeholder, .window-content textarea::placeholder { color: rgba(255,255,255,0.35); }
.window-content input:focus, .window-content select:focus, .window-content textarea:focus {
    border-color: var(--green-mid); background: rgba(0,0,0,0.45); outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 0 0 2px rgba(68,170,68,0.3);
}
.window-content select option { background: var(--royale-deep); color: var(--white); }
.window-content label { color: var(--white80); display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { margin-bottom: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Taskbar (Vista glass) ── */
#taskbar {
    position: fixed; bottom: 0; left: 0; right: 0; height: 54px;
    /* Glossy reflective sheen over a deep-blue glass body */
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.55) 0%,
            rgba(214,238,255,0.22) 46%,
            rgba(255,255,255,0.03) 50%,
            rgba(150,200,245,0.13) 100%
        ),
        linear-gradient(to bottom,
            rgba(72,165,215,0.46) 0%,
            rgba(16,92,144,0.55) 50%,
            rgba(7,58,104,0.62) 100%
        );
    backdrop-filter: blur(20px) saturate(1.7); -webkit-backdrop-filter: blur(20px) saturate(1.7);
    border-top: 1px solid rgba(255,255,255,0.85);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.30),
        inset 0 -1px 0 rgba(0,0,0,0.28),
        0 -3px 16px rgba(0,0,0,0.30);
    display: flex; align-items: center; justify-content: space-between; padding: 0 14px; gap: 8px; z-index: 100;
}
/* Second gloss line just below the top border */
#taskbar::before { content: ''; position: absolute; top: 2px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.40); pointer-events: none; }
.taskbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
#start-button {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; padding: 0;
    /* Pearl halo behind the orb */
    background: radial-gradient(circle at 50% 38%, rgba(160,228,255,0.45), rgba(40,120,200,0) 68%);
    border: none; box-shadow: 0 0 15px rgba(120,210,255,0.55);
    cursor: pointer; transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
#start-button:hover { transform: scale(1.08); filter: brightness(1.15); box-shadow: 0 0 24px rgba(160,228,255,0.85); }
#start-button img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
#taskbar-icons { display: flex; align-items: center; gap: 6px; height: 100%; overflow: hidden; }
.taskbar-icon {
    height: 38px; width: 38px; padding: 5px;
    background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.38); border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s;
}
.taskbar-icon:hover {
    background: linear-gradient(180deg, rgba(196,232,255,0.52), rgba(120,190,250,0.20));
    border-color: rgba(255,255,255,0.65);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 0 11px rgba(120,200,255,0.55);
}
.taskbar-icon img { width: 24px; height: 24px; }
.taskbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Persistent CTA always visible in taskbar */
#taskbar-cta {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0.06) 48%, rgba(0,0,0,0.05) 52%, rgba(0,0,0,0.12) 100%),
        linear-gradient(180deg, var(--green-hi) 0%, var(--green-mid) 40%, var(--green-dark) 100%);
    color: var(--white); font-weight: 700; border: none; border-radius: 8px; cursor: pointer;
    padding: 9px 16px; font-size: 0.82rem; white-space: nowrap; text-decoration: none;
    text-shadow: 0 1px 1px rgba(0,70,0,0.5);
    box-shadow: 0 0 12px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 0 0 1px rgba(255,255,255,0.16); transition: all 0.2s;
}
#taskbar-cta:hover { transform: translateY(-1px); box-shadow: 0 0 22px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.65); color: var(--white); }
#clock { color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,0.5); text-align: right; font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 640px) { #clock { display: none; } #taskbar-icons { display: none; } }

/* ── Sticky note ── */
#sticky-note {
    position: absolute; bottom: 66px; right: 20px; width: 150px; min-height: 130px;
    background: linear-gradient(135deg, #FFFFA5 0%, #ffe066 100%);
    box-shadow: 3px 3px 12px rgba(0,0,0,0.3), inset 0 -2px 4px rgba(0,0,0,0.08);
    padding: 14px; cursor: grab; border-radius: 2px;
    animation: floatWobble 6s ease-in-out infinite; transform-origin: top center; z-index: 40;
}
#sticky-note:active { cursor: grabbing; }
#sticky-note-text { font-family: var(--font-body); font-size: 13px; color: #333; line-height: 1.4; font-weight: 600; }
#sticky-note .note-cta { display: inline-block; margin-top: 8px; color: #006600; font-weight: 800; text-decoration: underline; cursor: pointer; }
@keyframes floatWobble { 0%, 100% { transform: rotateY(2deg) rotateX(1deg) translateY(0); } 50% { transform: rotateY(-2deg) rotateX(-1deg) translateY(-6px); } }

/* ── Analog clock ── */
#analog-clock { position: absolute; bottom: 230px; right: 20px; width: 120px; height: 120px; cursor: grab; animation: floatWobble 6s ease-in-out infinite; animation-delay: -3s; z-index: 40; }
#analog-clock:active { cursor: grabbing; }
.clock-face { width: 100%; height: 100%; border: 3px solid var(--glass-border); background: linear-gradient(180deg, var(--glass-surface-top), var(--glass-surface-mid) 50%, var(--glass-surface-bot)), var(--glass-tint); backdrop-filter: blur(8px) saturate(1.4); -webkit-backdrop-filter: blur(8px) saturate(1.4); border-radius: 50%; position: relative; box-shadow: 0 6px 18px rgba(0,0,0,0.30), 0 0 16px var(--aero-glow), inset 0 1px 0 var(--glass-rim); }
.clock-face::before { content: ''; position: absolute; top: 5%; left: 10%; width: 60%; height: 40%; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.3), transparent 70%); border-radius: 50%; pointer-events: none; }
.clock-hand { position: absolute; bottom: 50%; left: 50%; transform-origin: bottom; }
.hour-hand { width: 3px; height: 28%; border-radius: 2px; background: var(--white); box-shadow: 0 0 4px rgba(0,0,0,0.3); }
.minute-hand { width: 2px; height: 38%; border-radius: 1.5px; background: var(--white); box-shadow: 0 0 3px rgba(0,0,0,0.2); }
.second-hand { width: 1px; height: 43%; background: var(--green-mid); box-shadow: 0 0 6px var(--green-glow); }
.clock-center { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; background: var(--green-mid); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 8px var(--green-glow); }

/* ── Website screenshot cards ── */
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.site-card { display: block; text-decoration: none; color: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.25); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.site-card:hover { transform: translateY(-3px); border-color: var(--green-mid); box-shadow: 0 10px 28px rgba(0,0,0,0.4); color: var(--white); }
/* Fixed height thumbnail — compact regardless of column width */
.site-thumb { width: 100%; height: 130px; object-fit: cover; object-position: top center; display: block; background: #0b2447; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-meta { padding: 10px 12px; }
.site-meta b { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.site-meta small { color: var(--white70); font-size: 0.75rem; display: block; margin: 2px 0 5px; }
.site-meta .visit { color: var(--green-hi); font-weight: 700; font-size: 0.75rem; }

/* ── Video showcase ── */
.video-grid { display: grid; gap: 14px; }
.video-grid.long { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.video-grid.shorts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.video-container { position: relative; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,0.1); }
.video-container iframe { width: 100%; display: block; border: 0; }
.video-container.r169 iframe { aspect-ratio: 16/9; }
.video-container.r916 iframe { aspect-ratio: 9/16; }
.video-overlay { position: absolute; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(9,78,140,0.85), rgba(0,125,193,0.6)); color: var(--white); padding: 4px 10px; font-size: 0.7rem; font-weight: 700; border-top-right-radius: 8px; }

/* ── Top ticker ── */
#desktop-ticker { position: fixed; top: 0; left: 0; right: 0; height: 28px; background: rgba(0,0,0,0.35); box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.08); overflow: hidden; z-index: 5; display: flex; align-items: center; }
.ticker-track { display: flex; white-space: nowrap; animation: tickerScroll 28s linear infinite; font-size: 0.75rem; font-weight: 700; color: var(--white70); text-transform: uppercase; letter-spacing: 0.06em; gap: 32px; }
.ticker-track span::before { content: '✦ '; color: var(--green-mid); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Cursor trail ── */
.cursor-dot { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: var(--green-mid); pointer-events: none; z-index: 99999; opacity: 0; transition: opacity 0.15s; mix-blend-mode: screen; }
body:hover .cursor-dot { opacity: 0.5; }

/* ── Home hero card (the homepage's real, crawlable content) ── */
#home-main { margin: 0; }
.hero-card {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(92vw, 560px); max-height: 80vh;
    /* z-index: 2 — BELOW managed windows which start at z-index 10 */
    z-index: 2;
    display: flex; flex-direction: column; overflow: hidden;
    /* Same liquid-glass treatment as .window */
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.20) 0%,
            rgba(255,255,255,0.05) 42%,
            rgba(150,200,250,0.05) 62%,
            var(--glass-tint-deep) 100%
        ),
        var(--glass-tint);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border);
    border-radius: var(--win-r-top) var(--win-r-top) var(--win-r-bot) var(--win-r-bot);
    box-shadow:
        inset 0 1px 0 var(--glass-rim),
        inset 0 0 0 1px rgba(255,255,255,0.16),
        inset 0 -12px 30px -16px rgba(6,34,74,0.55),
        var(--shadow-aero);
    padding: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.hero-card.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.92); }
.hero-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit;
    background:
        radial-gradient(150% 95% at 0% -12%, var(--glass-spec) 0%, rgba(255,255,255,0.14) 24%, transparent 46%),
        linear-gradient(122deg, transparent 40%, var(--glass-spec-soft) 47%, transparent 53%);
}
.hero-card .title-bar { cursor: default; }
.hero-card .window-content { position: relative; z-index: 2; }

/* ============================================================
   MOBILE — preserve the desktop OS experience, scaled for touch.
   Icons stay visible. Windows stay floating. The desktop metaphor
   is the product — don't strip it on mobile.
   ============================================================ */
@media (max-width: 820px) {
    /* Keep the OS shell locked in viewport — no page scroll */
    html, body { overflow: hidden; height: 100%; }
    #desktop { height: 100vh; overflow: hidden; }
    #desktop::after { font-size: 5rem; } /* shrink watermark */
    #analog-clock { display: none; }
    #sticky-note { display: none; }

    /* Desktop icons — large, 2-column grid flush to left like a real Windows desktop */
    .desktop-icon {
        width: 170px; height: 170px; font-size: 0.92rem;
        border-radius: 12px;
    }
    .desktop-icon img { width: 80px; height: 80px; margin-bottom: 7px; }

    /* Col A: left: 8px — Col B: left: 186px (8 + 170 + 8px gap)
       Fits 2 columns on any phone 380px+ wide. Row pitch: 178px. */
    #services-icon  { left: 8px   !important; right: auto !important; top: 36px  !important; }
    #projects-icon  { left: 186px !important; right: auto !important; top: 36px  !important; }
    #videos-icon    { left: 8px   !important; right: auto !important; top: 214px !important; }
    #websites-icon  { left: 186px !important; right: auto !important; top: 214px !important; }
    #design-icon    { left: 8px   !important; right: auto !important; top: 392px !important; }
    #about-icon     { left: 186px !important; right: auto !important; top: 392px !important; }
    #contact-icon   { left: 8px   !important; right: auto !important; top: 570px !important; }

    /* Hero card — smaller, still centered floating window */
    .hero-card {
        width: min(92vw, 400px);
        max-height: 82vh;
    }
    /* On mobile the hero is dismissible just like desktop — close reveals the OS */
    .hero-card.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.92); }

    /* Windows — full-width, slide up from bottom, tall enough to use */
    .window {
        width: 96vw; max-width: 96vw;
        height: 78vh; max-height: 78vh;
        /* Override absolute positioning — center horizontally, sit above taskbar */
        position: fixed !important;
        left: 2vw !important;
        bottom: 56px; top: auto !important;
        border-radius: var(--win-r-top) var(--win-r-top) var(--win-r-bot) var(--win-r-bot);
        transform: translateY(110%) scale(0.95);
        transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s;
        opacity: 0;
    }
    .window.open {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    .window.minimized {
        transform: translateY(110%) scale(0.95);
        opacity: 0;
    }
    .window.maximized {
        width: 100vw !important; max-width: 100vw !important;
        height: calc(100vh - 80px) !important;
        left: 0 !important; bottom: 52px; top: 28px !important;
        border-radius: 0;
    }
    .window.maximized .window-content { margin: 0; border-radius: 0; }

    /* Title bar — taller touch target; reserve room for the gel caption cluster */
    .title-bar { height: 44px; padding: 0 120px 0 13px; }

    /* Content panel — keep the inset but tighten padding */
    .window-content { padding: 14px 14px 36px; }

    /* Typography scaling */
    .window-content h1 { font-size: 1.3rem; }
    .window-content h2 { font-size: 1.1rem; }

    /* Proof stats 2-col */
    .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .proof-stat { padding: 10px 8px; }
    .proof-stat b { font-size: 1.4rem; }

    /* Site grid 2-col on mobile */
    .site-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .site-thumb { height: 90px; }

    /* Forms — prevent iOS zoom (needs 16px+) */
    .form-grid { grid-template-columns: 1fr; }
    .window-content input, .window-content select, .window-content textarea {
        font-size: 1rem; padding: 13px 14px;
    }

    /* Tabs compact */
    .tab-bar { gap: 3px; }
    .tab { padding: 7px 10px; font-size: 0.78rem; }

    /* Taskbar compact */
    #taskbar-cta { padding: 8px 10px; font-size: 0.78rem; }
    #start-button { width: 36px; height: 36px; }
    #clock { display: none; }
}

@media (max-width: 380px) {
    /* Very small phones: scale columns down slightly */
    .desktop-icon { width: 148px; height: 148px; }
    .desktop-icon img { width: 68px; height: 68px; }
    #projects-icon, #websites-icon, #about-icon { left: 160px !important; }
    .site-grid { grid-template-columns: 1fr; }
    .site-thumb { height: 110px; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .tab { padding: 6px 8px; font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
    #sticky-note, #analog-clock { animation: none; }
}

/* Mobile home hero — visible value prop / CTA stack shown on small screens
   and to anyone before JS (progressive enhancement). */
#mobile-hero { display: none; }
@media (max-width: 820px) {
    #mobile-hero {
        display: block; position: relative; z-index: 30;
        padding: 56px 18px 18px; max-width: 640px; margin: 0 auto;
    }
    #mobile-hero h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 10px; }
    #mobile-hero p { color: var(--white80); margin: 0 0 16px; }
    #mobile-app-list { display: grid; gap: 10px; margin-top: 18px; }
}
