/* ==========================================================================
   AKSHAT — corkboard portfolio
   Everything textured here is generated (SVG noise), no image assets.
   ========================================================================== */

:root {
    /* board + wood */
    --cork: #9c6a38;
    --cork-deep: #7e5128;
    --wood-hi: #a8743c;
    --wood-mid: #7a4c22;
    --wood-dark: #4f3014;

    /* papers */
    --paper: #f0e7d3;
    --paper-warm: #ece0c5;
    --paper-aged: #e3d5b4;
    --ink: #3c2b1c;
    --ink-soft: #5d4733;

    /* accents */
    --red: #a3322b;
    --red-deep: #7d1f1a;
    --green-card: #7d8a66;
    --sticky-yellow: #f2d271;
    --sticky-blue: #b9d7e6;
    --sticky-pink: #f0b9bf;
    --sticky-green: #c4d6a4;

    --shadow-soft: 0 2px 6px rgba(50, 26, 8, .28), 0 10px 24px rgba(50, 26, 8, .22);
    --shadow-lift: 0 6px 14px rgba(50, 26, 8, .3), 0 22px 44px rgba(50, 26, 8, .3);

    --font-display: "Lilita One", system-ui, sans-serif;
    --font-hand: "Caveat", cursive;
    --font-type: "Special Elite", monospace;
    --font-body: "Karla", system-ui, sans-serif;

    --frame: clamp(14px, 2.6vw, 34px);
}

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

html { scroll-behavior: smooth; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--cork);
    /* cork: fine speckle + coarse blotches + warm falloff */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.26 0 0 0 0 0.15 0 0 0 0 0.06 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23s)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.34 0 0 0 0 0.2 0 0 0 0 0.09 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23b)'/%3E%3C/svg%3E"),
        radial-gradient(120% 90% at 50% 0%, rgba(255, 214, 150, .14), transparent 60%);
    overflow-x: hidden;
}

::selection { background: var(--red); color: var(--paper); }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }

/* ==========================================================================
   FIXED SCENERY — wooden frame, sunlight, vignette
   ========================================================================== */

.board-frame {
    position: fixed;
    z-index: 60;
    pointer-events: none;
    background-color: var(--wood-mid);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='80'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.22' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.11 0 0 0 0 0.04 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='600' height='80' filter='url(%23w)'/%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--wood-hi), var(--wood-mid) 45%, var(--wood-dark));
}

.frame-top {
    top: 0; left: 0; right: 0;
    height: var(--frame);
    box-shadow: 0 5px 14px rgba(30, 14, 2, .5);
}

.frame-left, .frame-right {
    top: 0; bottom: 0;
    width: var(--frame);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.22 0.012' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.11 0 0 0 0 0.04 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='80' height='600' filter='url(%23w)'/%3E%3C/svg%3E"),
        linear-gradient(90deg, var(--wood-hi), var(--wood-mid) 45%, var(--wood-dark));
}

.frame-left { left: 0; box-shadow: 5px 0 14px rgba(30, 14, 2, .4); }
.frame-right { right: 0; box-shadow: -5px 0 14px rgba(30, 14, 2, .4); }

.sunlight {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    background:
        linear-gradient(112deg, rgba(255, 222, 160, .2) 0%, rgba(255, 222, 160, .07) 28%, transparent 46%),
        linear-gradient(292deg, rgba(35, 16, 2, .22) 0%, transparent 40%);
    mix-blend-mode: soft-light;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    background: radial-gradient(130% 110% at 50% 42%, transparent 55%, rgba(28, 12, 1, .38) 100%);
}

/* ==========================================================================
   TAB NAV — paper tabs tucked under the top frame
   ========================================================================== */

.tab-nav {
    position: fixed;
    top: var(--frame);
    right: clamp(20px, 5vw, 70px);
    z-index: 70;
    display: flex;
    gap: 8px;
}

.tab {
    display: inline-block;
    padding: 14px 13px 9px;
    font-family: var(--font-type);
    font-size: 13px;
    text-decoration: none;
    color: var(--ink);
    background: var(--paper-warm);
    border-radius: 0 0 7px 7px;
    box-shadow: 0 4px 8px rgba(40, 20, 5, .3);
    margin-top: -8px;
    transform-origin: top center;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}

.tab:nth-child(odd) { background: var(--paper-aged); }
.tab-1 { transform: rotate(-1.5deg); }
.tab-2 { transform: rotate(1deg); }
.tab-3 { transform: rotate(-.5deg); }
.tab-4 { transform: rotate(1.5deg); }
.tab-5 { transform: rotate(-1deg); }
.tab-6 { transform: rotate(.8deg); }

.tab:hover, .tab:focus-visible {
    transform: rotate(0deg) translateY(7px);
    background: var(--paper);
    outline: none;
}

.tab-sound {
    background: var(--sticky-yellow) !important;
    transform: rotate(2deg);
}

.tab-sound[aria-pressed="false"] {
    text-decoration: line-through;
    opacity: .75;
}

/* ==========================================================================
   PAGE STRUCTURE
   ========================================================================== */

.corkwall {
    position: relative;
    padding: calc(var(--frame) + 30px) calc(var(--frame) + clamp(14px, 4vw, 60px)) 0;
    transition: filter .45s ease;
}

body.is-focused .corkwall {
    filter: blur(9px) brightness(.55) saturate(.85);
}

.board {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(60px, 9vh, 110px) 0;
}

/* section label — a small pinned paper strip */
.board-label {
    position: relative;
    display: inline-block;
    padding: 12px 22px 10px 38px;
    margin-bottom: clamp(34px, 5vh, 60px);
    font-family: var(--font-type);
    font-size: clamp(15px, 1.6vw, 19px);
    letter-spacing: 1px;
    color: var(--ink);
    background: var(--paper-aged);
    box-shadow: var(--shadow-soft);
    transform: rotate(var(--r, 0deg));
}

.board-label .pin {
    position: absolute;
    top: 50%;
    left: 13px;
    margin-top: -7px;
}

/* ==========================================================================
   SHARED ARTIFACT PIECES — pins, tape, pinned base
   ========================================================================== */

.pinned {
    position: relative;
    transform: rotate(var(--r, 0deg));
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.pin {
    position: absolute;
    top: -7px;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    z-index: 3;
}

.pin::after {
    /* the pin's cast shadow on the paper */
    content: "";
    position: absolute;
    top: 9px;
    left: 3px;
    width: 14px;
    height: 7px;
    background: rgba(40, 18, 4, .3);
    border-radius: 50%;
    filter: blur(2px);
    z-index: -1;
}

.pin-red { background: radial-gradient(circle at 32% 28%, #e07f78, var(--red) 55%, #6e1814); }
.pin-blue { background: radial-gradient(circle at 32% 28%, #8fb6d6, #3f6c95 55%, #24435f); }
.pin-green { background: radial-gradient(circle at 32% 28%, #a9c08a, #5f7a43 55%, #3c5028); }
.pin-brass { background: radial-gradient(circle at 32% 28%, #ecd9a8, #b98f4a 55%, #7a5a26); }

.tape {
    position: absolute;
    width: 84px;
    height: 26px;
    background: rgba(231, 222, 196, .65);
    box-shadow: 0 1px 3px rgba(50, 26, 8, .18);
    z-index: 3;
}

.tape::before, .tape::after {
    /* ragged tape ends */
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 4px;
    background: inherit;
}

.tape::before { left: -3px; clip-path: polygon(100% 0, 0 18%, 70% 38%, 10% 62%, 80% 80%, 0 100%, 100% 100%); }
.tape::after { right: -3px; clip-path: polygon(0 0, 100% 14%, 30% 36%, 90% 58%, 20% 82%, 100% 100%, 0 100%); }

.tape-tl { top: -12px; left: -26px; transform: rotate(-42deg); }
.tape-tr { top: -12px; right: -26px; transform: rotate(42deg); }
.tape-br { bottom: -12px; right: -26px; transform: rotate(-40deg); }
.tape-t { top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* paper grain laid over every cream surface */
.poster, .letter, .project, .story-card, .envelope, .biz-card, .ticket, .focus-paper, .focus-polaroid {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.23 0 0 0 0 0.12 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   HERO BOARD
   ========================================================================== */

.hero-board {
    min-height: calc(100vh - var(--frame));
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(30px, 5vh, 70px);
}

.hero-stage {
    position: relative;
    height: min(74vh, 720px);
    min-height: 560px;
}

.hero-stage .pinned { position: absolute; }

/* the big torn poster */
.poster {
    left: 50%;
    top: 48%;
    width: min(46vw, 520px);
    min-width: 300px;
    margin-left: calc(min(46vw, 520px) / -2);
    margin-top: -160px;
    padding: clamp(34px, 4.5vw, 64px) clamp(22px, 3vw, 44px);
    background-color: #d9d2c4;
    text-align: center;
    clip-path: polygon(1.2% 3%, 6% .4%, 14% 2.6%, 25% .8%, 38% 2.4%, 52% .2%, 64% 2.8%, 77% 1%, 89% 2.6%, 98.6% 1.4%, 99.6% 12%, 98% 26%, 99.8% 41%, 98.2% 57%, 99.6% 72%, 98% 86%, 99.2% 97%, 90% 99.6%, 78% 97.8%, 64% 99.4%, 50% 97.6%, 36% 99.6%, 22% 98%, 10% 99.8%, 2% 98.4%, .4% 88%, 2% 74%, .2% 58%, 1.8% 42%, .4% 26%, 1.6% 12%);
}

.poster-title {
    font-family: var(--font-display);
    color: #6b4a23;
    line-height: .88;
    text-shadow: 2px 3px 0 rgba(60, 35, 10, .18);
}

.poster-line {
    display: block;
    font-size: clamp(54px, 7.2vw, 104px);
    letter-spacing: 1px;
}

.line-a { transform: rotate(-2deg); }
.line-b { transform: rotate(1.4deg) translateX(8px); font-size: clamp(40px, 5.4vw, 78px); color: #7d5a2e; }

.poster-sub {
    margin-top: 20px;
    font-family: var(--font-type);
    font-size: clamp(13px, 1.4vw, 17px);
    color: var(--ink-soft);
    letter-spacing: 2px;
}

/* takeout-style green flyer */
.flyer {
    left: 2%;
    top: 4%;
    width: 168px;
    padding: 16px 14px 14px;
    background-color: var(--green-card);
    color: #232a1b;
    text-decoration: none;
    display: block;
    transition: box-shadow .25s;
}

.flyer:hover { box-shadow: var(--shadow-lift); }

.flyer-head {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: .5px;
    font-style: italic;
}

.flyer-art { display: block; margin: 8px 0 6px; }
.flyer-art svg { width: 100%; }

.flyer-foot {
    display: block;
    font-family: var(--font-type);
    font-size: 11px;
    text-align: center;
    border-top: 2px dashed rgba(35, 42, 27, .4);
    padding-top: 7px;
}

.flyer-badge {
    position: absolute;
    top: 8px;
    right: -10px;
    padding: 5px 8px;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 15px;
    color: #232a1b;
    background: #d8b13c;
    border-radius: 50%;
    transform: rotate(12deg);
    box-shadow: 0 2px 4px rgba(40, 20, 5, .3);
}

/* achievement briefs — small clickable paper scraps */
.brief {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 168px;
    padding: 18px 16px 14px;
    background-color: var(--paper-aged);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.23 0 0 0 0 0.12 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E");
    transition: box-shadow .25s;
}

.brief:hover, .brief:focus-visible { box-shadow: var(--shadow-lift); outline: none; }

.brief-a { left: 6%; top: 44%; }
.brief-b { left: 13%; bottom: 6%; }

.brief-stat {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--red-deep);
    text-align: center;
}

.brief-desc {
    font-family: var(--font-type);
    font-size: 11.5px;
    line-height: 1.5;
    text-align: center;
    color: var(--ink-soft);
}

.brief-cta {
    margin-top: 4px;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    color: var(--red);
}

.brief:hover .brief-cta { text-decoration: underline wavy 1.5px; }

/* polaroid — me */
.polaroid {
    width: 196px;
    padding: 10px 10px 14px;
    background-color: #f4f0e6;
    transition: box-shadow .25s;
}

.polaroid:hover { box-shadow: var(--shadow-lift); }

.hero-polaroid { right: 4%; top: 40%; }

.polaroid img {
    width: 100%;
    aspect-ratio: 1 / 1.06;
    object-fit: cover;
    filter: saturate(.92) contrast(1.02);
}

.polaroid-caption {
    display: block;
    margin-top: 9px;
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 19px;
    text-align: center;
    color: var(--ink-soft);
}

/* sticky notes */
.sticky {
    width: 124px;
    min-height: 116px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(50, 26, 8, .2), 0 9px 16px rgba(50, 26, 8, .22);
}

.sticky::after {
    /* curled bottom corner */
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent rgba(50, 26, 8, .14) transparent;
}

.sticky-yellow { background: linear-gradient(165deg, #f7dd86, var(--sticky-yellow) 60%, #e3bd55); }
.sticky-blue { background: linear-gradient(165deg, #cde4f0, var(--sticky-blue) 60%, #9fc3d6); }
.sticky-pink { background: linear-gradient(165deg, #f7cdd2, var(--sticky-pink) 60%, #df9da6); }
.sticky-green { background: linear-gradient(165deg, #d5e4b9, var(--sticky-green) 60%, #aabf85); }

.sticky-text {
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 21px;
    line-height: 1.15;
    text-align: center;
    color: #43321f;
}

.hero-stage .sticky-yellow { right: 12%; top: 2%; }

/* "ai shrink" scrap */
.games-scrap {
    right: 17%;
    bottom: 12%;
    padding: 12px 16px;
    background: repeating-linear-gradient(180deg, #eef3f6 0 22px, #c8dbe6 22px 23px);
    background-color: #eef3f6;
}

.scrap-text {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 21px;
    color: #2f4a68;
    line-height: 1.15;
}

.scrap-danger { color: var(--red-deep); }

.games-scrap { transition: box-shadow .25s; }
.games-scrap:hover, .games-scrap:focus-visible { box-shadow: var(--shadow-lift); outline: none; }

/* the "do NOT click" joke card sits in the skills grid */
.note-joke {
    min-height: 196px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ==========================================================================
   THE HOTLINE — golden handset, bottom-left corner
   ========================================================================== */

.phone-corner {
    position: fixed;
    left: calc(var(--frame) + 8px);
    bottom: 16px;
    z-index: 65;
    width: 150px;
    transition: filter .45s ease, transform .3s ease;
    filter: drop-shadow(0 10px 14px rgba(30, 14, 2, .45));
    transform-origin: 50% 70%;
}

.phone-corner svg { width: 100%; display: block; }

.phone-corner:hover, .phone-corner:focus-visible {
    transform: rotate(-8deg) scale(1.08);
    animation: none;
    outline: none;
}

.phone-tag {
    position: absolute;
    right: -34px;
    bottom: 8px;
    padding: 6px 9px 4px;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 16px;
    color: #43321f;
    background: var(--sticky-yellow);
    transform: rotate(-7deg);
    box-shadow: 0 3px 6px rgba(40, 20, 5, .3);
    white-space: nowrap;
}

body.is-focused .phone-corner {
    filter: blur(6px) brightness(.55) drop-shadow(0 8px 12px rgba(30, 14, 2, .45));
    pointer-events: none;
}

/* links inside the case-file body (contact card) */
.focus-body a {
    color: var(--ink);
    font-family: var(--font-type);
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.focus-body a:hover { color: var(--red); }

/* red doodle arrows */
.doodle-arrow { position: absolute; width: 52px; opacity: .9; }
.arrow-a { right: 13.5%; bottom: 26%; }
.arrow-b { right: 24%; bottom: 7%; }

/* scroll hint */
.scroll-hint {
    align-self: center;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-hint-text {
    font-family: var(--font-hand);
    font-size: 20px;
    font-weight: 600;
    color: rgba(48, 26, 8, .75);
}

.scroll-hint-line {
    width: 2px;
    height: 44px;
    background: rgba(48, 26, 8, .5);
    animation: hint-grow 1.6s ease-in-out infinite;
    transform-origin: top;
}

@keyframes hint-grow {
    0%, 100% { transform: scaleY(.35); opacity: .4; }
    55% { transform: scaleY(1); opacity: 1; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: start;
}

.letter {
    padding: clamp(30px, 4vw, 52px) clamp(26px, 3.6vw, 50px);
    background-color: var(--paper);
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.75;
}

.letter p + p { margin-top: 1em; }

.letter-greeting {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: clamp(30px, 3.2vw, 40px);
    color: var(--red-deep);
    margin-bottom: 14px !important;
}

.letter-sign {
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 27px;
    text-align: right;
    color: var(--ink-soft);
}

.letter-stamp {
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 10px 8px;
    font-family: var(--font-type);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    color: rgba(163, 50, 43, .75);
    border: 2px solid rgba(163, 50, 43, .55);
    border-radius: 50%;
    transform: rotate(11deg);
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding-top: 14px;
}

.ticket {
    width: 100%;
    max-width: 270px;
    padding: 18px 20px 18px 26px;
    background-color: var(--paper-aged);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ticket-row { font-family: var(--font-type); font-size: 13.5px; }
.ticket-row b { color: var(--red-deep); }

.ticket-punch {
    position: absolute;
    top: 50%;
    left: -8px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--cork-deep);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
}

/* ==========================================================================
   WORK — index cards
   ========================================================================== */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
    gap: clamp(26px, 4vw, 48px);
}

.project {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 26px 22px 18px;
    background-color: var(--paper);
    /* ruled index card */
    background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(116, 88, 60, .18) 27px 28px);
    transition: box-shadow .25s;
}

.project:hover, .project:focus-visible { box-shadow: var(--shadow-lift); outline: none; }

.project-no {
    font-family: var(--font-type);
    font-size: 11.5px;
    letter-spacing: 1.5px;
    color: var(--red-deep);
}

.project-name {
    font-family: var(--font-display);
    font-size: clamp(25px, 2.4vw, 31px);
    color: #5d4220;
    letter-spacing: .5px;
}

.project-blurb { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.project-tags {
    font-family: var(--font-type);
    font-size: 11.5px;
    color: var(--ink-soft);
    opacity: .8;
}

.project-open {
    margin-top: auto;
    padding-top: 8px;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 20px;
    color: var(--red);
}

.project:hover .project-open { text-decoration: underline wavy 1.5px; }

.work-note {
    position: absolute;
    right: -8px;
    bottom: -12px;
}

/* ==========================================================================
   STORY — red string timeline
   ========================================================================== */

.story-board {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(44px, 7vh, 84px);
}

.string-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 3px 2px rgba(40, 18, 4, .35));
}

.story-card {
    width: min(100%, 480px);
    padding: 26px 26px 22px;
    background-color: var(--paper-warm);
}

.story-card:nth-child(odd) { align-self: flex-start; margin-left: clamp(0px, 4vw, 50px); }
.story-card:nth-child(even) { align-self: flex-end; margin-right: clamp(0px, 4vw, 50px); }

.story-year {
    position: absolute;
    top: -14px;
    right: 18px;
    padding: 7px 12px 5px;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--paper);
    background: #36302a;
    transform: rotate(2deg);
    box-shadow: 0 3px 6px rgba(30, 14, 2, .35);
}

.story-card h3 {
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 26px);
    color: #54401f;
}

.story-role {
    font-family: var(--font-type);
    font-size: 12.5px;
    color: var(--red-deep);
    margin: 4px 0 10px;
}

.story-card p:last-child { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ==========================================================================
   NOTES / SKILLS
   ========================================================================== */

.notes-cluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
    gap: clamp(26px, 4vw, 46px);
    align-items: stretch;
}

.note-lg {
    width: auto;
    min-height: 196px;
    padding: 26px 22px;
    gap: 12px;
}

.sticky-head {
    font-family: var(--font-type);
    font-size: 13px;
    letter-spacing: 1px;
    text-align: center;
    color: #43321f;
    border-bottom: 2px dashed rgba(67, 50, 31, .35);
    padding-bottom: 8px;
}

.sticky-list {
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
    color: #43321f;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: start;
}

.envelope {
    padding: clamp(34px, 4.5vw, 56px) clamp(26px, 4vw, 54px);
    background-color: var(--paper);
}

.envelope-line {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: clamp(32px, 3.6vw, 46px);
    color: var(--red-deep);
    line-height: 1.1;
}

.envelope-mail {
    display: inline-block;
    margin: 18px 0 14px;
    font-family: var(--font-type);
    font-size: clamp(15px, 1.7vw, 20px);
    color: var(--ink);
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.envelope-mail:hover { color: var(--red); }

.envelope-tel {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-type);
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--ink-soft);
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.envelope-tel:hover { color: var(--red); }

.envelope-note { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); max-width: 42ch; }

.envelope-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(50, 26, 8, .2);
    transform: rotate(4deg);
    /* perforated stamp edge */
    clip-path: polygon(0 4%, 4% 0, 8% 4%, 12% 0, 16% 4%, 20% 0, 24% 4%, 28% 0, 32% 4%, 36% 0, 40% 4%, 44% 0, 48% 4%, 52% 0, 56% 4%, 60% 0, 64% 4%, 68% 0, 72% 4%, 76% 0, 80% 4%, 84% 0, 88% 4%, 92% 0, 96% 4%, 100% 0, 100% 100%, 0 100%);
}

.envelope-stamp svg {
    width: 58px;
    height: 58px;
    display: block;
}

.stamp-value {
    position: absolute;
    right: 8px;
    bottom: 7px;
    font-family: var(--font-type);
    font-size: 11px;
    color: #4e7a3a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .7);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 10px;
}

.biz-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px 18px;
    background-color: var(--paper-warm);
    text-decoration: none;
    transition: box-shadow .25s;
}

.biz-card:hover, .biz-card:focus-visible { box-shadow: var(--shadow-lift); outline: none; }

.biz-head {
    font-family: var(--font-display);
    font-size: 23px;
    color: #54401f;
}

.biz-sub { font-family: var(--font-type); font-size: 13px; color: var(--ink-soft); }

.resume-card { background-color: var(--paper); }

.resume-corner {
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 26px 26px 0;
    border-color: transparent var(--cork-deep) rgba(50, 26, 8, .15) transparent;
}

/* ==========================================================================
   SHELF FOOTER
   ========================================================================== */

.shelf {
    margin: clamp(50px, 8vh, 90px) calc(-1 * (var(--frame) + clamp(14px, 4vw, 60px))) 0;
    padding: 26px 20px 30px;
    text-align: center;
    background-color: var(--wood-mid);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='80'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.22' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.11 0 0 0 0 0.04 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='600' height='80' filter='url(%23w)'/%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--wood-hi), var(--wood-mid) 40%, var(--wood-dark));
    box-shadow: 0 -6px 16px rgba(30, 14, 2, .4);
}

.shelf-text {
    font-family: var(--font-type);
    font-size: 13px;
    color: rgba(244, 232, 208, .85);
    letter-spacing: 1px;
}

/* ==========================================================================
   FOCUS OVERLAY — the "case file" view
   ========================================================================== */

.focus-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
}

.focus-overlay.is-open { display: flex; }

.focus-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 11, 1, .35);
}

.focus-stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    padding: 30px;
    max-width: 980px;
    width: min(94vw, 980px);
}

.focus-polaroid {
    flex: 0 0 clamp(200px, 26vw, 290px);
    padding: 12px 12px 16px;
    background-color: #f4f0e6;
    box-shadow: var(--shadow-lift);
    transform: rotate(-5deg);
}

.focus-art { display: block; aspect-ratio: 1 / 1.05; overflow: hidden; background: #3a3a3a; }
.focus-art svg, .focus-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.focus-caption {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(19px, 2.2vw, 27px);
    text-align: center;
    color: #9a958a;
    letter-spacing: 2px;
}

.focus-paper {
    flex: 1;
    position: relative;
    padding: clamp(30px, 4vw, 52px) clamp(26px, 3.6vw, 50px) clamp(26px, 3vw, 40px);
    background-color: var(--paper);
    box-shadow: var(--shadow-lift);
    transform: rotate(1.2deg);
    clip-path: polygon(2% 1%, 30% 2.5%, 50% .5%, 72% 2.8%, 98% 1.2%, 99.4% 30%, 98% 55%, 99.6% 80%, 98.4% 98.6%, 70% 97.4%, 44% 99.2%, 18% 97.6%, 1% 99%, .4% 70%, 2% 45%, .6% 20%);
}

.focus-banner {
    display: inline-block;
    padding: 10px 20px 8px;
    margin: 0 0 18px -34px;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 32px);
    letter-spacing: 1px;
    color: var(--paper);
    background: #2e2a26;
    transform: rotate(-1.5deg);
    box-shadow: 0 4px 10px rgba(30, 14, 2, .35);
    clip-path: polygon(2% 8%, 100% 0, 97% 92%, 0 100%);
}

.focus-body { font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.7; color: var(--ink); }
.focus-body p + p { margin-top: .8em; }
.focus-body b, .focus-body strong { color: var(--red-deep); }

.focus-actions { margin-top: 22px; }

.focus-link {
    display: inline-block;
    padding: 10px 18px 8px;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: .5px;
    color: var(--paper);
    background: var(--red);
    text-decoration: none;
    transform: rotate(-1deg);
    box-shadow: 0 3px 8px rgba(30, 14, 2, .3);
    transition: transform .2s, background .2s;
}

.focus-link:hover { background: var(--red-deep); transform: rotate(0deg) scale(1.04); }

.focus-close {
    position: absolute;
    top: -16px;
    right: 10px;
    padding: 11px 16px 9px;
    font-family: var(--font-type);
    font-size: 13px;
    color: var(--ink);
    background: var(--sticky-yellow);
    box-shadow: 0 4px 10px rgba(30, 14, 2, .35);
    transform: rotate(3deg);
    transition: transform .2s;
}

.focus-close:hover { transform: rotate(0deg) scale(1.06); }

/* ==========================================================================
   TOYS & EASTER EGGS
   ========================================================================== */

/* fortune scrap */
.fortune {
    left: 26%;
    top: 0;
    width: 152px;
    padding: 18px 14px 12px;
    background-color: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow .25s;
}

.fortune:hover, .fortune:focus-visible { box-shadow: var(--shadow-lift); outline: none; }

.fortune-head {
    font-family: var(--font-type);
    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
    color: var(--ink-soft);
    border-bottom: 1px dashed rgba(93, 71, 51, .4);
    padding-bottom: 5px;
}

.fortune-text {
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
    text-align: center;
    color: var(--red-deep);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* office cat */
.cat-card {
    right: 30%;
    top: 2%;
    width: 112px;
    padding: 6px 6px 8px;
    background-color: #f4f0e6;
}

.cat-card svg { width: 100%; }

.cat-caption {
    display: block;
    margin-top: 5px;
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 12.5px;
    text-align: center;
    color: var(--ink-soft);
}

.paw { position: absolute; width: 22px; opacity: 0; pointer-events: none; z-index: 7; }
.paw svg { width: 100%; }

/* dartboard */
.dartboard {
    right: 2%;
    bottom: 0;
    width: 118px;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dartboard svg { width: 100%; border-radius: 50%; filter: drop-shadow(0 6px 10px rgba(40, 18, 4, .4)); }

.dart-caption {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 15px;
    color: rgba(48, 26, 8, .9);
    background: var(--paper-aged);
    padding: 2px 9px;
    box-shadow: 0 2px 4px rgba(40, 20, 5, .25);
    white-space: nowrap;
}

/* ceiling cord — hangs from the top frame */
.ceiling-pull {
    position: fixed;
    top: var(--frame);
    left: 50%;
    margin-left: -23px;
    z-index: 64;
    width: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: filter .45s ease;
}

.ceiling-pull svg {
    width: 46px;
    touch-action: none;
    filter: drop-shadow(0 4px 5px rgba(40, 18, 4, .4));
}

.ceiling-pull .grab { pointer-events: all; cursor: grab; }
.ceiling-pull:active .grab { cursor: grabbing; }

body.is-focused .ceiling-pull { filter: blur(6px) brightness(.55); }

.string-tag {
    margin-top: -130px;
    margin-left: 56px;
    padding: 4px 8px 2px;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 14px;
    color: #5a2b30;
    background: var(--sticky-pink);
    transform: rotate(-5deg);
    box-shadow: 0 2px 5px rgba(40, 20, 5, .3);
    white-space: nowrap;
    pointer-events: none;
}

/* light switch + night mode */
.light-switch {
    position: absolute;
    left: 0.5%;
    bottom: 30%;
    width: 56px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.switch-plate {
    width: 34px;
    height: 54px;
    background: linear-gradient(170deg, #efe6cf, #d9cba8);
    border-radius: 7px;
    box-shadow: 0 3px 7px rgba(40, 20, 5, .35), inset 0 0 0 3px rgba(93, 71, 51, .22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch-nub {
    width: 13px;
    height: 22px;
    background: linear-gradient(180deg, #caa84e, #8f6f22);
    border-radius: 4px;
    transform: translateY(-8px);
    transition: transform .14s ease;
    box-shadow: 0 2px 3px rgba(40, 20, 5, .4);
}

body.lights-off .switch-nub { transform: translateY(8px); }

.switch-label {
    font-family: var(--font-type);
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(48, 26, 8, .7);
}

.night {
    position: fixed;
    inset: 0;
    z-index: 56;
    pointer-events: none;
    background: radial-gradient(90% 70% at 50% 45%, rgba(18, 7, 0, .42), rgba(12, 4, 0, .68));
    opacity: 0;
    transition: opacity .7s ease;
}

body.lights-off .night { opacity: 1; }
.sunlight { transition: opacity .7s ease; }
body.lights-off .sunlight { opacity: 0; }

/* tear-off number flyer */
.tearoff {
    left: 31.5%;
    bottom: 0;
    width: 164px;
    padding: 14px 10px 12px;
    background-color: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.tearoff-head {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.1;
    color: #54401f;
    text-align: center;
}

.tearoff-tabs { display: flex; gap: 4px; align-items: flex-start; }

.tear-tab {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-type);
    font-size: 8px;
    letter-spacing: .5px;
    color: var(--ink-soft);
    padding: 8px 2px;
    background: var(--paper-warm);
    box-shadow: 0 2px 3px rgba(40, 20, 5, .2);
    border-top: 1px dashed rgba(93, 71, 51, .5);
}

.tear-tab:hover { background: var(--sticky-yellow); }

.tearoff-foot { font-family: var(--font-hand); font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }

/* the vase. careful. */
.vase-spot {
    position: absolute;
    right: 31%;
    bottom: 0;
    width: 128px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vase { width: 84px; }
.vase-art svg { width: 100%; display: block; filter: drop-shadow(0 5px 7px rgba(40, 18, 4, .45)); }

.vase-ledge {
    width: 128px;
    height: 13px;
    margin-top: -3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--wood-hi), var(--wood-dark));
    box-shadow: 0 5px 9px rgba(30, 14, 2, .45);
}

.vase-note {
    margin-top: 8px;
    padding: 3px 9px 2px;
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    color: var(--ink-soft);
    background: var(--paper-aged);
    box-shadow: 0 2px 4px rgba(40, 20, 5, .25);
    transform: rotate(-2deg);
}

/* coffee mug (about section) */
.mug-card {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transform: rotate(var(--r, 0deg));
}

.mug-card svg { width: 96px; filter: drop-shadow(0 5px 8px rgba(40, 18, 4, .35)); }

.mug-cap {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-soft);
    background: var(--paper-aged);
    padding: 2px 8px;
    box-shadow: 0 2px 4px rgba(40, 20, 5, .25);
    white-space: nowrap;
}

/* tiny paper fragments that flutter off when something tears */
.paper-bit {
    position: fixed;
    width: 7px;
    height: 9px;
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(40, 20, 5, .3);
    z-index: 80;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 10%, 85% 100%, 10% 90%);
}

/* ==========================================================================
   SPEECH BUBBLES — pop out of pinned things on hover
   ========================================================================== */

.speech-bubble {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 60%;
    padding: 9px 14px 8px;
    background: #faf6ec;
    color: #2e2a26;
    font-family: var(--font-display);
    font-size: 14.5px;
    letter-spacing: .4px;
    white-space: nowrap;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(40, 20, 5, .3);
    transform: scale(.4) rotate(-5deg);
    transform-origin: bottom left;
    opacity: 0;
    transition: transform .28s cubic-bezier(.34, 1.8, .64, 1), opacity .18s;
    pointer-events: none;
    z-index: 9;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 12px;
    width: 18px;
    height: 13px;
    background: #faf6ec;
    clip-path: polygon(0 0, 100% 0, 18% 100%);
}

.speech-bubble.bubble-left {
    left: auto;
    right: 60%;
    transform-origin: bottom right;
    transform: scale(.4) rotate(5deg);
}

.speech-bubble.bubble-left::after {
    left: auto;
    right: 12px;
    clip-path: polygon(0 0, 100% 0, 82% 100%);
}

[data-bubble]:hover > .speech-bubble,
[data-bubble]:focus-visible > .speech-bubble {
    opacity: 1;
    transform: scale(1) rotate(2deg);
}

[data-bubble]:hover > .speech-bubble.bubble-left,
[data-bubble]:focus-visible > .speech-bubble.bubble-left {
    transform: scale(1) rotate(-2deg);
}

/* ==========================================================================
   FIND ME ON — scribbled flyer with tear-off social tabs
   ========================================================================== */

.findme {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 330px;
    margin: 0 auto;
    transform: rotate(var(--r, 0deg));
}

.findme-top {
    position: relative;
    width: 100%;
    padding: 30px 20px 26px;
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.23 0 0 0 0 0.12 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E");
    box-shadow: var(--shadow-soft);
    text-align: center;
    clip-path: polygon(1% 4%, 12% 1%, 30% 3%, 52% .6%, 74% 2.8%, 99% 1.4%, 99.4% 40%, 98.2% 72%, 99.6% 96%, 78% 98.6%, 54% 97%, 30% 99.4%, 2% 97.8%, .6% 64%, 1.8% 30%);
}

.findme-pin-a { left: 13%; top: 12px; margin-left: 0; }
.findme-pin-b { left: auto; right: 13%; top: 12px; margin-left: 0; }

.findme-scribble {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88%;
    transform: translate(-50%, -50%);
    opacity: .85;
}

.findme-title {
    position: relative;
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 36px;
    color: #2e2a26;
}

.findme-tabs {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-top: -2px;
}

.findme-tab {
    width: 44px;
    height: 92px;
    background-color: var(--paper);
    box-shadow: 0 4px 7px rgba(40, 20, 5, .28);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    text-decoration: none;
    transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}

.findme-tab:nth-child(1) { transform: rotate(-1.2deg); }
.findme-tab:nth-child(2) { height: 82px; transform: rotate(1deg); }
.findme-tab:nth-child(3) { height: 96px; }
.findme-tab:nth-child(4) { height: 84px; transform: rotate(1.4deg); }
.findme-tab:nth-child(5) { height: 90px; transform: rotate(-1.6deg); }

.findme-tab:hover, .findme-tab:focus-visible {
    transform: rotate(0deg) translateY(6px);
    background-color: #fbf7ee;
    outline: none;
}

.findme-tab svg { width: 26px; height: 26px; }


/* ==========================================================================
   RESUME OVERLAY — the pdf, pinned to the board
   ========================================================================== */

.resume-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: center;
    justify-content: center;
}

.resume-overlay.is-open { display: flex; }

.resume-sheet {
    position: relative;
    width: min(92vw, 880px);
    height: 88vh;
    padding: 58px 22px 64px;
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.23 0 0 0 0 0.12 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E");
    box-shadow: var(--shadow-lift);
    transform: rotate(.5deg);
}

.resume-banner {
    position: absolute;
    top: -14px;
    left: 26px;
    margin: 0;
}

.resume-sheet iframe {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(93, 71, 51, .35);
    background: #fff;
}

.resume-hint {
    position: absolute;
    bottom: 20px;
    left: 26px;
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink-soft);
}

.resume-dl {
    position: absolute;
    bottom: 12px;
    right: 20px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 880px) {
    .tab-nav { right: 8px; gap: 5px; }
    .tab { padding: 11px 9px 7px; font-size: 11px; }

    /* hero collapses into a stacked pile */
    .hero-stage { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 20px 0 30px; }
    .hero-stage .pinned { position: relative; inset: auto; margin: 0; }
    .poster { width: min(92vw, 460px); order: 1; }
    .hero-polaroid { order: 2; }
    .hero-stage .sticky-yellow { order: 3; }
    .brief-a { order: 4; }
    .brief-b { order: 5; }
    .flyer { order: 6; }
    .fortune { order: 7; }
    .cat-card { order: 8; }
    .tearoff { order: 9; }
    .vase-spot { order: 10; position: relative; right: auto; bottom: auto; }
    .dartboard { order: 11; }
    .games-scrap, .doodle-arrow, .ceiling-pull, .light-switch, .speech-bubble { display: none; }

    .phone-corner { width: 84px; left: calc(var(--frame) + 4px); bottom: 12px; }
    .phone-tag { font-size: 13px; right: -22px; }

    .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .about-side { flex-direction: row; flex-wrap: wrap; justify-content: center; }

    .story-card:nth-child(odd), .story-card:nth-child(even) { align-self: center; margin: 0; }

    .work-note { position: relative; right: auto; bottom: auto; margin: 34px auto 0; }

    .focus-stage { flex-direction: column; gap: 26px; max-height: 92vh; overflow-y: auto; padding: 46px 18px 30px; }
    .focus-polaroid { flex: 0 0 auto; width: min(62vw, 250px); }
    .focus-close { top: 6px; right: 6px; position: fixed; }

    .resume-sheet { width: 96vw; height: 84vh; padding: 50px 10px 60px; }
    .resume-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint-line { animation: none; }
    html { scroll-behavior: auto; }
}
