/* ============================================================
   Precision Silver — Design System & Home Page Styles
   "Industrial Humanist Modernism"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Inter+Tight:wght@400;700&display=swap');

/* ── 1. Design Tokens ─────────────────────────────────────── */
:root {
    --bg: #0F0F0F;
    --bg-raised: #141414;
    --surface: #1C1C1C;
    --surface-hi: #242424;
    --border: rgba(192, 192, 192, 0.15);
    --border-hi: rgba(192, 192, 192, 0.35);
    --accent: #C0C0C0;
    --accent-hi: #E5E5E5;
    --text: #E5E5E5;
    --text-muted: #777;
    --text-faint: #3A3A3A;
    --tag-bg: rgba(192, 192, 192, 0.08);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --nav-h: 56px;
    --nav-h-small: 44px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.3s;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* ── Custom Cursor Styles ── */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-hi);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

/* Hover States */
body.cursor-active .cursor-dot {
    background-color: #FFFFFF;
    width: 8px;
    height: 8px;
}

body.cursor-active .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Particle Trail Styles */
.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: rgba(192, 192, 192, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
}

/* Disable on touch */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring,
    .cursor-trail {
        display: none;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ── 3. Floating Island Nav ───────────────────────────────── */
.nav-wrapper {
    position: fixed;
    top: 20px;
    width: min(720px, calc(100vw - 40px));
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out), visibility 0.8s;
    z-index: 9999;
}

.nav-wrapper.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

nav.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-hi);
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.6s ease;
    will-change: transform, backdrop-filter;
}

/* Shrunk State: Silky Zoom Out */
.nav-wrapper.scrolled nav.site-nav {
    transform: scale(0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: rgba(10, 10, 10, 0.82);
}

.nav-logo {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--accent-hi);
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 6px 14px;
    position: relative;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(192, 192, 192, 0.5);
    /* Silver-Grey Inactive */
    letter-spacing: 0.02em;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #E5E5E5;
    /* Silver-White Glint */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a.active {
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* Sync Glint scaling when navbar is shrunk */
.nav-wrapper.scrolled .nav-links a::after {
    height: 1.2px;
    /* Slightly thinner to match scale */
    bottom: -2px;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Glint & Glow Focus (Cleanup old pill) */


/* Shrunk state on scroll */
.nav-wrapper.scrolled {
    top: 12px;
    width: min(620px, calc(100vw - 40px));
}

.nav-wrapper.scrolled nav.site-nav {
    height: var(--nav-h-small);
    padding: 0 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── 4. Hero Section ──────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 7vw 10vh;
    position: relative;
    z-index: 10;
}

.hero-divider {
    display: none;
}

.hero-playground {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    /* Logic: Don't steal clicks from background items */
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        radial-gradient(circle at var(--mouse-x, -100%) var(--mouse-y, -100%), rgba(255, 255, 255, calc(var(--glow-opacity, 0) * 0.15)) 0%, transparent 250px),
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    transition: background-image 0.1s ease;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(192, 192, 192, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: auto;
    /* Logic: Particles react to mouse */
}

/* Ensure CTA buttons are clickable despite being in hero layers */
.hero-cta-row a,
.hero-scroll-hint {
    pointer-events: auto;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 0.5;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(192, 192, 192, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-heading {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--accent-hi);
    margin-bottom: 32px;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Techy Hero Animations */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 192, 192, 0.03) 0%, transparent 70%);
    border: 1px solid rgba(192, 192, 192, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 15s linear infinite;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(192, 192, 192, 0.02) 0%, transparent 60%);
    border: 1px solid rgba(192, 192, 192, 0.03);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(360deg);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-40px) translateX(20px);
    }
}

.hero-heading em {
    font-style: normal;
    color: var(--text-muted);
}

.hero-sub {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.7;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-hi);
    background: var(--surface);
    color: var(--accent-hi);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background var(--dur), border-color var(--dur), transform var(--dur);
}

.btn-primary:hover {
    background: var(--surface-hi);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.hero-scroll-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-scroll-hint::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--text-muted);
}

/* ── 5. Projects Section ──────────────────────────────────── */
.projects-section {
    padding: 0 7vw;
}

.projects-header {
    display: grid;
    grid-template-columns: 64px 1fr 200px 80px 32px;
    gap: 0 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.projects-header span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ── 6. Project Row ───────────────────────────────────────── */
.project-row {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.row-header {
    display: grid;
    grid-template-columns: 64px 1fr 200px 80px 32px;
    gap: 0 24px;
    align-items: center;
    padding: 28px 0;
    cursor: pointer;
    transition: background var(--dur);
    position: relative;
}

.row-header::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: 0 -7vw;
    background: rgba(192, 192, 192, 0.03);
    opacity: 0;
    transition: opacity var(--dur);
    pointer-events: none;
}

.row-header:hover::before {
    opacity: 1;
}

.row-index {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

.row-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--accent-hi);
    letter-spacing: -0.02em;
    transition: color var(--dur);
}

.project-row.is-open .row-title,
.row-header:hover .row-title {
    color: #fff;
}

.row-category {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.row-year {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.row-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform var(--dur) var(--ease-out),
        border-color var(--dur),
        color var(--dur),
        background var(--dur);
    flex-shrink: 0;
}

.project-row.is-open .row-chevron {
    transform: rotate(180deg);
    border-color: var(--accent);
    color: var(--accent-hi);
    background: rgba(192, 192, 192, 0.08);
}

/* ── 7. Expanded Accordion Card ───────────────────────────── */
.row-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.project-row.is-open .row-detail {
    max-height: 640px;
}

.row-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 0 48px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.detail-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    aspect-ratio: 16/9;
}

.detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.project-row.is-open .detail-image-wrap img {
    transform: scale(1.02);
}

/* CSS placeholder for projects without images */
.detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-raised) 100%);
}

.placeholder-glyph {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
}

.placeholder-glyph svg {
    opacity: 0.3;
}

.detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 8px 0;
}

.detail-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    border-left: 2px solid var(--border-hi);
    padding-left: 16px;
}

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

.detail-tag {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--tag-bg);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.btn-case-study {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-hi);
    background: transparent;
    color: var(--accent-hi);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background var(--dur), border-color var(--dur), transform var(--dur), color var(--dur);
}

.btn-case-study:hover {
    background: var(--accent-hi);
    color: var(--bg);
    border-color: var(--accent-hi);
    transform: translateY(-1px);
}

.btn-case-study svg {
    transition: transform var(--dur) var(--ease-out);
}

.btn-case-study:hover svg {
    transform: translateX(3px);
}

/* ── Live At button (secondary) ───────────────────────────── */
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-live-at {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--accent);
    background: rgba(192, 192, 192, 0.05);
    color: var(--accent-hi);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--dur) var(--ease-out);
}

.btn-live-at:hover {
    border-color: var(--accent);
    color: var(--accent-hi);
    transform: translateY(-1px);
}

.btn-live-at svg {
    transition: transform var(--dur) var(--ease-out);
}

.btn-live-at:hover svg {
    transform: translate(2px, -2px);
}

/* ── 8. About Section ─────────────────────────────────────── */
.about-section {
    padding: 120px 7vw;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-heading {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent-hi);
    line-height: 1.1;
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.9375rem;
}

/* ── 8b. About — Photo + Quote ───────────────────────────── */
.about-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.about-photo-frame {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}

.about-photo {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-hi);
    display: block;
}

/* Fallback initials block */
.about-photo-fallback {
    width: 260px;
    height: 320px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-hi);
    background: linear-gradient(145deg, var(--surface) 0%, #111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo-fallback span {
    font-family: 'Inter Tight', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-faint);
}

/* Subtle animated silver rim */
.photo-rim {
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(192, 192, 192, 0.6) 30%,
            transparent 60%,
            rgba(192, 192, 192, 0.2) 80%,
            transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    padding: 1px;
    animation: rim-spin 6s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes rim-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-quote {
    text-align: center;
    padding: 0 8px;
    border: none;
}

.quote-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-style: italic;
    color: var(--accent);
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.quote-cite {
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── 9. Footer ────────────────────────────────────────────── */
footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--dur);
}

.footer-links a:hover {
    color: var(--accent-hi);
}

/* ── 10. Utilities ────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* ── 10b. Modal ───────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    width: min(500px, 90vw);
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(192, 192, 192, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-hi);
}

.modal-heading {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--accent-hi);
}

.modal-sub {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

/* ── Action Hub Styling ── */
.action-hub {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

.email-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(192, 192, 192, 0.2);
    text-align: center;
}

.email-display code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent-hi);
    letter-spacing: -0.01em;
}

.hub-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hub-buttons button,
.hub-buttons a {
    justify-content: center;
    padding: 14px;
    font-size: 0.85rem;
}

/* ── Footer Email Copy Styling ── */
.footer-email-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.copy-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--accent-hi);
    color: var(--bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.copy-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.footer-email-link {
    transition: color 0.3s ease;
}

.footer-email-link.copied {
    color: #FFFFFF !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 120px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    margin-top: 10px;
    justify-content: center;
    width: 100%;
}

/* ── 11. Preloader ────────────────────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(192, 192, 192, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 192, 192, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Moving horizontal scanline */
.preloader-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.25) 40%, rgba(255, 255, 255, 0.5) 50%, rgba(192, 192, 192, 0.25) 60%, transparent);
    animation: scan 2.5s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    from {
        top: 0;
    }

    to {
        top: 100%;
    }
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.preloader-logo {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--accent-hi);
    animation: pl-fade 1.2s var(--ease-out) both;
}

@keyframes pl-fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.preloader-bar-wrap {
    width: clamp(180px, 28vw, 320px);
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hi));
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.6);
}

.preloader-status {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: pl-fade 1.4s var(--ease-out) both;
}

/* ── 12. Responsiveness ───────────────────────────────────── */
@media (max-width: 1024px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .about-copy {
        order: 1;
    }

    .about-photo-col {
        order: 2;
    }

    .hero-heading {
        font-size: clamp(3rem, 12vw, 6rem);
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        width: calc(100vw - 32px);
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .projects-header {
        display: none;
    }

    .row-header {
        grid-template-columns: 40px 1fr 40px;
        padding: 20px 0;
    }

    .row-category,
    .row-year {
        display: none;
    }

    .row-detail-inner {
        grid-template-columns: 1fr;
        padding: 0 0 40px;
        gap: 24px;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
}

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

    .hero-content {
        padding: 0 6vw 8vh;
        min-height: 60vh;
    }

    .hero-divider {
        display: none;
    }

    .hero-playground {
        height: 40vh;
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .modal-container {
        padding: 30px 20px;
    }

    .modal-heading {
        font-size: 1.5rem;
    }
}