/* ========================================
   miris.studio - Skeuomorphic Desk Surface
   ======================================== */

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

:root {
    --oak-surface: #3D3020;
    --lighter-oak: #5A4830;
    --cream-paper: #F5EEE0;
    --sticky-yellow: #FFF3B0;
    --leather-brown: #6B4C30;
    --dark-ink: #2C2419;
    --warm-tan: #C8B8A0;
    --navy-metallic: #344860;
    --brass: #B89040;
    --warm-dark: #3A3028;
    --parchment: #E8D8C0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Cabin', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: var(--dark-ink);
    background: var(--oak-surface);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* --- Desk Lamp Bokeh Overlay --- */
#desk-lamp-bokeh {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 1.5s ease;
}

#desk-lamp-bokeh.lit {
    opacity: 1;
}

/* Main lamp glow gradients */
#desk-lamp-bokeh::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at 80% 20%, rgba(184, 144, 64, 0.10) 0%, rgba(184, 144, 64, 0.05) 30%, transparent 70%);
}

#desk-lamp-bokeh::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at 70% 25%, rgba(184, 144, 64, 0.08) 0%, transparent 60%);
}

.bokeh-spot {
    position: absolute;
    border-radius: 50%;
    background: rgba(184, 144, 64, 0.03);
    filter: blur(1px);
}

.bokeh-1 { width: 45px; height: 45px; top: 8%; right: 12%; }
.bokeh-2 { width: 30px; height: 30px; top: 15%; right: 25%; }
.bokeh-3 { width: 55px; height: 55px; top: 5%; right: 35%; }
.bokeh-4 { width: 25px; height: 25px; top: 22%; right: 8%; }
.bokeh-5 { width: 40px; height: 40px; top: 12%; right: 45%; }
.bokeh-6 { width: 35px; height: 35px; top: 30%; right: 18%; }
.bokeh-7 { width: 20px; height: 20px; top: 6%; right: 55%; }
.bokeh-8 { width: 60px; height: 60px; top: 18%; right: 30%; }
.bokeh-9 { width: 28px; height: 28px; top: 35%; right: 40%; }
.bokeh-10 { width: 38px; height: 38px; top: 10%; right: 5%; }
.bokeh-11 { width: 22px; height: 22px; top: 25%; right: 50%; }
.bokeh-12 { width: 50px; height: 50px; top: 3%; right: 20%; }

/* --- Desk Surface with Wood Grain --- */
#desk-surface {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 30px;
    grid-template-areas:
        "nameplate nameplate nameplate nameplate nameplate . nav nav nav nav nav nav"
        "featured featured featured featured featured featured tools tools tools tools tools tools"
        "about about about about about about contact contact contact contact contact contact"
        ". . . . . . . . . . . .";
    /* Wood grain texture using repeating-linear-gradient simulating oak grain */
    background-color: var(--oak-surface);
    background-image:
        repeating-linear-gradient(
            85deg,
            transparent,
            transparent 3px,
            rgba(90, 72, 48, 0.3) 3px,
            rgba(90, 72, 48, 0.3) 4px,
            transparent 4px,
            transparent 15px
        ),
        repeating-linear-gradient(
            87deg,
            transparent,
            transparent 8px,
            rgba(90, 72, 48, 0.15) 8px,
            rgba(90, 72, 48, 0.15) 9px,
            transparent 9px,
            transparent 30px
        ),
        repeating-linear-gradient(
            84deg,
            transparent,
            transparent 20px,
            rgba(44, 36, 25, 0.08) 20px,
            rgba(44, 36, 25, 0.08) 22px,
            transparent 22px,
            transparent 50px
        );
}

/* --- Desk Item Base with reveal animation --- */
.desk-item {
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

.desk-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.desk-item:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.desk-item.revealed:hover {
    transform: translateY(-4px);
}

/* --- Skeleton Loader with shimmer animation --- */
.skeleton-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--parchment);
    border-radius: 4px;
    z-index: 5;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 238, 224, 0.6) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

.skeleton-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Nameplate (Logo - top-left Z-pattern) --- */
#nameplate {
    grid-area: nameplate;
    z-index: 10;
}

.nameplate-content {
    position: relative;
    z-index: 1;
}

.leather-frame {
    background: var(--leather-brown);
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(44, 36, 25, 0.05) 2px,
            rgba(44, 36, 25, 0.05) 3px
        );
    padding: 20px 40px;
    border-radius: 8px;
    border: 3px dashed rgba(200, 184, 160, 0.3);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05);
    display: inline-block;
    position: relative;
}

.nameplate-stitch {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px dashed rgba(200, 184, 160, 0.25);
    border-radius: 5px;
    pointer-events: none;
}

.studio-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--parchment);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.studio-tagline {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--warm-tan);
    margin-top: -2px;
    letter-spacing: 0.05em;
}

/* --- Sticky Note Navigation (top-right Z-pattern) --- */
#sticky-nav {
    grid-area: nav;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 10px;
}

.sticky-note {
    width: 110px;
    height: 110px;
    background: var(--sticky-yellow);
    padding: 15px 12px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        2px 3px 8px rgba(0,0,0,0.25),
        0 1px 2px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Paper texture on sticky note */
    background-image:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.1) 0%,
            transparent 3px,
            transparent 100%
        );
}

/* Each sticky note has unique rotation for messy desk feel */
.sticky-note-1 { transform: rotate(-3deg); }
.sticky-note-2 { transform: rotate(2deg); }
.sticky-note-3 { transform: rotate(-1.5deg); }
.sticky-note-4 { transform: rotate(4deg); }

/* Initial drop-in state (animated via JS) */
.sticky-note.drop-ready {
    opacity: 0;
    transform: translateY(-30px);
}

.sticky-note.drop-ready.sticky-note-1 { transform: rotate(-3deg) translateY(-30px); }
.sticky-note.drop-ready.sticky-note-2 { transform: rotate(2deg) translateY(-30px); }
.sticky-note.drop-ready.sticky-note-3 { transform: rotate(-1.5deg) translateY(-30px); }
.sticky-note.drop-ready.sticky-note-4 { transform: rotate(4deg) translateY(-30px); }

.sticky-note.revealed.sticky-note-1 { transform: rotate(-3deg) translateY(0); opacity: 1; }
.sticky-note.revealed.sticky-note-2 { transform: rotate(2deg) translateY(0); opacity: 1; }
.sticky-note.revealed.sticky-note-3 { transform: rotate(-1.5deg) translateY(0); opacity: 1; }
.sticky-note.revealed.sticky-note-4 { transform: rotate(4deg) translateY(0); opacity: 1; }

.sticky-note:hover {
    box-shadow:
        3px 6px 16px rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.2);
    z-index: 20;
}

.sticky-note-1:hover { transform: rotate(-3deg) translateY(-6px) !important; }
.sticky-note-2:hover { transform: rotate(2deg) translateY(-6px) !important; }
.sticky-note-3:hover { transform: rotate(-1.5deg) translateY(-6px) !important; }
.sticky-note-4:hover { transform: rotate(4deg) translateY(-6px) !important; }

/* Active sticky note has a highlighted bottom border */
.sticky-note.active-note {
    box-shadow:
        3px 6px 16px rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.2),
        0 -3px 0 var(--brass) inset;
}

.sticky-text {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-ink);
    text-align: center;
    position: relative;
    z-index: 1;
}

.sticky-fold {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(
        135deg,
        transparent 50%,
        rgba(0,0,0,0.06) 50%,
        rgba(0,0,0,0.1) 100%
    );
}

.sticky-note .skeleton-loader {
    border-radius: 0;
    background: var(--sticky-yellow);
}

/* --- Card Items (Featured, Tools, Contact) --- */
.card-item {
    background: var(--cream-paper);
    border-radius: 4px;
    padding: 0;
    position: relative;
    box-shadow:
        3px 4px 10px rgba(0,0,0,0.25),
        1px 2px 4px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Paper texture via SVG noise */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Curled corner shadow */
.card-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 40px;
    height: 40px;
    background: transparent;
    box-shadow: -3px -3px 5px rgba(0,0,0,0.08);
    transform: rotate(2deg);
    border-radius: 0 0 4px 0;
    pointer-events: none;
}

.card-item:hover {
    box-shadow:
        5px 8px 20px rgba(0,0,0,0.3),
        2px 4px 8px rgba(0,0,0,0.2);
}

.card-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-ink);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.card-divider {
    width: 60px;
    height: 2px;
    background: var(--brass);
    margin-bottom: 16px;
    border-radius: 1px;
}

.card-text {
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--warm-dark);
    margin-bottom: 12px;
}

/* --- Featured Project (center-left) --- */
#projects {
    grid-area: featured;
}

.project-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--leather-brown);
    margin-bottom: 10px;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tag {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--sticky-yellow);
    color: var(--dark-ink);
    padding: 4px 12px;
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* --- Paper Clip (CSS-drawn) --- */
.paper-clip {
    position: absolute;
    top: -8px;
    right: 30px;
    width: 24px;
    height: 50px;
    z-index: 10;
}

.clip-outer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 46px;
    border: 2.5px solid var(--navy-metallic);
    border-radius: 10px 10px 4px 4px;
    background: transparent;
}

.clip-inner {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 30px;
    border: 2px solid var(--navy-metallic);
    border-radius: 6px 6px 3px 3px;
    border-top: none;
    background: transparent;
}

/* --- Binder Clip (CSS-drawn) --- */
.binder-clip {
    position: absolute;
    top: -12px;
    left: 40px;
    z-index: 10;
}

.binder-top {
    width: 36px;
    height: 18px;
    background: var(--navy-metallic);
    border-radius: 4px 4px 0 0;
    position: relative;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.binder-arm {
    position: absolute;
    width: 3px;
    height: 16px;
    background: var(--navy-metallic);
    top: 12px;
    border-radius: 0 0 2px 2px;
}

.binder-arm-left {
    left: 6px;
    transform: rotate(15deg);
}

.binder-arm-right {
    right: 6px;
    transform: rotate(-15deg);
}

/* --- Tools & Links (center-right) --- */
#tools-links {
    grid-area: tools;
}

.tools-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tool-item {
    padding: 0;
}

/* --- Toggle Switch (Physical skeuomorphic) --- */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.toggle-track {
    width: 48px;
    height: 26px;
    background: linear-gradient(to bottom, #888, #aaa);
    border-radius: 13px;
    position: relative;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.1);
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-track.active {
    background: linear-gradient(to bottom, var(--brass), #c9a050);
}

.toggle-knob {
    width: 22px;
    height: 22px;
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: left 0.3s ease, transform 0.15s ease;
}

.toggle-track.active .toggle-knob {
    left: 24px;
}

/* Click bounce animation on toggle */
@keyframes toggleBounce {
    0% { transform: scale(1); }
    40% { transform: scale(0.9); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.toggle-knob.bounce {
    animation: toggleBounce 0.3s ease;
}

.toggle-label {
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--warm-dark);
}

/* --- About / Leather Notebook (bottom-left) --- */
#about {
    grid-area: about;
}

.notebook-content {
    position: relative;
    z-index: 1;
}

.leather-notebook {
    background: var(--leather-brown);
    border-radius: 6px;
    padding: 0;
    display: flex;
    box-shadow:
        4px 5px 15px rgba(0,0,0,0.35),
        2px 3px 6px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Leather texture using fine gradients */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(44, 36, 25, 0.06) 1px,
            rgba(44, 36, 25, 0.06) 2px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(44, 36, 25, 0.04) 2px,
            rgba(44, 36, 25, 0.04) 3px
        );
}

.leather-notebook:hover {
    box-shadow:
        6px 10px 25px rgba(0,0,0,0.4),
        3px 5px 10px rgba(0,0,0,0.25);
}

.notebook-spine {
    width: 20px;
    min-height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.05) 30%,
        rgba(255,255,255,0.03) 50%,
        rgba(0,0,0,0.1) 100%
    );
    flex-shrink: 0;
}

.notebook-cover {
    padding: 28px 30px;
    position: relative;
    flex: 1;
}

/* Stitching border (repeating dash) */
.notebook-stitch {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed rgba(200, 184, 160, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.notebook-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--parchment);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.notebook-inner {
    padding-top: 4px;
}

.notebook-text {
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--warm-tan);
    margin-bottom: 12px;
}

.notebook-text:last-child {
    margin-bottom: 0;
}

.notebook-text em {
    font-style: italic;
    color: var(--parchment);
}

/* --- Contact (bottom-right) --- */
#contact {
    grid-area: contact;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-ink);
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    padding: 8px 12px;
    background: rgba(200, 184, 160, 0.15);
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
    background: rgba(200, 184, 160, 0.3);
    transform: translateX(4px);
}

.link-icon {
    font-size: 1.3rem;
    color: var(--brass);
}

.link-text {
    color: var(--warm-dark);
}

/* --- Desk Decorations (scattered objects) --- */
.desk-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease 1.5s;
}

.desk-decoration.visible {
    opacity: 1;
}

/* Pencil */
.pencil {
    width: 180px;
    height: 8px;
    background: linear-gradient(
        to bottom,
        #E8C840 0%,
        #D4B030 50%,
        #C0A020 100%
    );
    border-radius: 1px 4px 4px 1px;
    bottom: 80px;
    left: 50%;
    transform: rotate(-12deg);
    box-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.pencil::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 0;
    width: 14px;
    height: 8px;
    background: linear-gradient(to left, #E8C840, #F0D8A0 40%, #2C2419 80%, #2C2419);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.pencil::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    width: 16px;
    height: 8px;
    background: #D4A0A0;
    border-radius: 0 3px 3px 0;
}

/* Eraser */
.eraser {
    width: 40px;
    height: 20px;
    background: linear-gradient(to bottom, #E8A0A0, #D08888);
    border-radius: 3px;
    bottom: 60px;
    right: 120px;
    transform: rotate(8deg);
    box-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.eraser::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Coffee ring stain */
.coffee-ring {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(107, 76, 48, 0.12);
    border-radius: 50%;
    bottom: 140px;
    right: 80px;
    box-shadow: inset 0 0 8px rgba(107, 76, 48, 0.06);
}

/* --- Expanded Overlay (focused view) --- */
#expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 25, 0.5);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

#expanded-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#expanded-container {
    background: var(--cream-paper);
    border-radius: 6px;
    width: 60%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 8px 20px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    /* Paper texture */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

#expanded-overlay.active #expanded-container {
    transform: scale(1) translateY(0);
}

/* Close button styled as paper clip X */
#close-expanded {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.close-clip {
    position: relative;
    width: 36px;
    height: 36px;
}

.clip-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 3px;
    background: var(--navy-metallic);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.clip-bar-1 {
    transform: translate(-50%, -50%) rotate(45deg);
}

.clip-bar-2 {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#close-expanded:hover .clip-bar {
    background: var(--dark-ink);
}

/* Expanded content styling */
#expanded-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-ink);
    margin-bottom: 12px;
}

#expanded-content p {
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--warm-dark);
    margin-bottom: 14px;
}

#expanded-content .expanded-divider {
    width: 80px;
    height: 2px;
    background: var(--brass);
    margin-bottom: 20px;
    border-radius: 1px;
}

#expanded-content .expanded-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

#expanded-content .expanded-tag {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--sticky-yellow);
    color: var(--dark-ink);
    padding: 4px 12px;
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

#expanded-content .expanded-tool-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

#expanded-content .expanded-tool-item {
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    color: var(--warm-dark);
    padding: 8px 12px;
    background: rgba(200, 184, 160, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#expanded-content .expanded-tool-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--brass);
    border-radius: 50%;
    flex-shrink: 0;
}

#expanded-content .expanded-notebook-text {
    font-family: 'Cabin', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--warm-dark);
    margin-bottom: 14px;
}

#expanded-content .expanded-notebook-text em {
    font-style: italic;
    color: var(--leather-brown);
}

#expanded-content .expanded-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-ink);
    font-family: 'Cabin', sans-serif;
    font-size: 1.05rem;
    padding: 10px 14px;
    background: rgba(200, 184, 160, 0.15);
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-bottom: 10px;
}

#expanded-content .expanded-contact-link:hover {
    background: rgba(200, 184, 160, 0.3);
    transform: translateX(4px);
}

#expanded-content .expanded-contact-link .link-icon {
    font-size: 1.3rem;
    color: var(--brass);
}

/* --- Dimmed state for non-active desk items --- */
.desk-item.dimmed,
.desk-decoration.dimmed {
    opacity: 0.4 !important;
    transition: opacity 0.4s ease;
}

/* --- Responsive: Tablet (2-column stack) --- */
@media (max-width: 1024px) {
    #desk-surface {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "nameplate nav"
            "featured tools"
            "about contact";
        padding: 30px;
        gap: 24px;
    }

    #sticky-nav {
        gap: 10px;
    }

    .sticky-note {
        width: 90px;
        height: 90px;
    }

    .sticky-text {
        font-size: 1.1rem;
    }

    .desk-decoration {
        display: none;
    }

    #expanded-container {
        width: 80%;
    }
}

/* --- Responsive: Mobile (vertical scroll, full-width cards) --- */
@media (max-width: 640px) {
    #desk-surface {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "nameplate"
            "nav"
            "featured"
            "tools"
            "about"
            "contact";
        padding: 20px;
        gap: 20px;
    }

    #sticky-nav {
        justify-content: flex-start;
        gap: 10px;
    }

    .sticky-note {
        width: 100%;
        height: auto;
        padding: 12px 16px;
        transform: rotate(0) !important;
    }

    .sticky-note:hover {
        transform: rotate(0) translateY(-4px) !important;
    }

    .sticky-note.drop-ready {
        transform: translateY(-30px) !important;
    }

    .sticky-note.revealed {
        transform: rotate(0) translateY(0) !important;
    }

    .leather-frame {
        padding: 16px 24px;
    }

    .studio-name {
        font-size: 2rem;
    }

    .card-content {
        padding: 24px;
    }

    .notebook-cover {
        padding: 24px;
    }

    .desk-decoration {
        display: none;
    }

    #expanded-container {
        width: 95%;
        padding: 24px;
    }

    .leather-notebook {
        flex-direction: column;
    }

    .notebook-spine {
        width: 100%;
        height: 10px;
        min-height: 10px;
    }
}
