/* ========================================
   Crayon: a scrapbook on lined paper
   ======================================== */
:root {
    --paper: #fdfdfb;
    --chrome: #ece3d1;
    --ink: #191510;
    --ink-2: #4a443b;
    --ink-3: #6b6356;
    --rule: rgba(25, 21, 16, .09);
    --tick: #c0b49d;

    --yellow: #f7c948;
    --yellow-soft: #f3e2ad;
    --blue: #2b57d6;
    --cyan: #b7c6ef;
    --pink: #ff4d8d;
    --pink-soft: #ffc6da;
    --mint: #a9dfc6;
    --green: #16b06a;
    --orange: #ff6a35;

    --ff: 'Inter', system-ui, -apple-system, sans-serif;
    --ff-pixel: 'Handjet', 'Arial Black', sans-serif;
    --ff-hand: 'Just Me Again Down Here', 'Segoe Print', 'Bradley Hand', cursive;
    --ff-mono: 'DM Mono', ui-monospace, Menlo, monospace;

    --line: 32px;
    --max-w: 1180px;
    --pad: 24px;
    --nav-h: 64px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    font-family: var(--ff);
    color: var(--ink);
    background-color: var(--paper);
    background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px) var(--line));
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
main { overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.pixel {
    font-family: var(--ff-pixel);
    font-weight: 700;
    text-transform: uppercase;
    line-height: .88;
    letter-spacing: .01em;
}
.hand { font-family: var(--ff-hand); font-weight: 400; line-height: 1.25; }
.mono { font-family: var(--ff-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }

.sec { position: relative; padding: 112px 0; }
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-head .scribble { font-size: 1.6rem; display: inline-block; transform: rotate(-3deg); margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(3.4rem, 10.5vw, 8rem); }
.sec-head .tape-note { margin-top: 24px; }

/* ---------- Bits of paper ---------- */
.tape {
    position: absolute;
    width: 92px; height: 26px;
    background: rgba(183, 198, 239, .78);
    border-left: 2px dashed rgba(255, 255, 255, .55);
    border-right: 2px dashed rgba(255, 255, 255, .55);
    box-shadow: 0 1px 2px rgba(25, 21, 16, .12);
    z-index: 3;
    pointer-events: none;
}
.tape.pink { background: rgba(255, 198, 218, .85); }
.tape.yellow { background: rgba(243, 226, 173, .9); }
.tape.mint { background: rgba(169, 223, 198, .85); }
.tape.tl { top: -12px; left: -22px; transform: rotate(-32deg); }
.tape.tr { top: -12px; right: -22px; transform: rotate(32deg); }
.tape.tc { top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

.tape-note {
    display: inline-block;
    max-width: 440px;
    padding: 10px 22px;
    background: var(--yellow-soft);
    font-size: .9rem;
    line-height: 1.45;
    transform: rotate(-1.5deg);
    box-shadow: 0 2px 0 rgba(25, 21, 16, .08);
    clip-path: polygon(0 4%, 3% 0, 97% 3%, 100% 0, 99% 50%, 100% 100%, 96% 97%, 3% 100%, 0 96%, 1% 50%);
}

.sticky {
    position: absolute;
    padding: 6px 14px;
    font-family: var(--ff-mono);
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--ink);
    white-space: nowrap;
}
/* Mono stickers are pills with a thick white border, like the reference */
.sticky:not(.hand-note) {
    padding: 8px 18px;
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(25, 21, 16, .22);
}
.sticky.hand-note { font-family: var(--ff-hand); font-size: 1.25rem; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 4px 14px; }
/* Handwritten notes are plain paper: square corners, no outline, soft shadow */
.sticky.hand-note { padding: 10px 20px; border: 0; border-radius: 0; box-shadow: 0 3px 8px rgba(25, 21, 16, .2); }

.polaroid {
    position: relative;
    background: #fff;
    padding: 12px 12px 44px;
    box-shadow: 0 1px 2px rgba(25, 21, 16, .1), 0 12px 28px -12px rgba(25, 21, 16, .35);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--ff-hand); font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    font-family: var(--ff-mono); font-weight: 500; font-size: .78rem;
    letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
    border: 2px solid var(--ink);
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink .btn-icon { display: grid; place-items: center; width: 22px; height: 22px; background: var(--blue); border-radius: 3px; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
/* Hero CTA from the reference: ink block that empties on hover, icon square turns pink */
.btn-cta {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 24px 10px 10px;
    font-family: var(--ff-mono); font-weight: 500; font-size: .875rem;
    letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
    color: #fff; background: var(--ink);
    border: 2px solid var(--ink);
    transition: background-color .2s, color .2s;
}
.btn-cta .cta-icon {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    color: var(--ink); background: var(--blue);
    transition: background-color .2s, color .2s;
}
.btn-cta .cta-icon svg { width: 16px; height: 16px; }
.btn-cta:hover, .btn-cta:focus-visible { background: transparent; color: var(--ink); }
.btn-cta:hover .cta-icon, .btn-cta:focus-visible .cta-icon { background: var(--pink); color: var(--blue); }
/* Secondary: the same button inverted, fills with ink on hover */
.btn-cta.ghost { background: transparent; color: var(--ink); }
.btn-cta.ghost .cta-icon { background: var(--yellow); }
.btn-cta.ghost:hover, .btn-cta.ghost:focus-visible { background: var(--ink); color: #fff; }

.link-arrow {
    font-family: var(--ff-mono); font-weight: 500; font-size: .78rem;
    letter-spacing: .14em; text-transform: uppercase;
    text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}

/* ========================================
   Intro: "You found me!"
   ======================================== */
.intro {
    position: fixed; inset: 0; z-index: 150;
    display: grid; place-items: center;
    background-color: var(--paper);
    background-image: inherit;
    cursor: pointer;
    transition: opacity .5s ease, visibility .5s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-chip {
    font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 600;
    padding: 8px 22px;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: rotate(-2deg) scale(.9);
    animation: chipIn .5s var(--ease) forwards;
}
.intro-chip .caret { display: inline-block; width: 3px; height: .9em; background: var(--ink); margin-left: 3px; vertical-align: -.1em; animation: blink .8s steps(1) infinite; }
@keyframes chipIn { to { transform: rotate(-2deg) scale(1); } }
@keyframes blink { 50% { opacity: 0; } }

/* ========================================
   Nav
   ======================================== */
.nav {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: stretch; justify-content: space-between;
    background: rgba(253, 253, 251, .95);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--ink);
}
.nav-left { display: flex; align-items: stretch; }
.nav-logo {
    display: grid; place-items: center;
    width: var(--nav-h);
    text-decoration: none;
}
.nav-logo svg { width: 34px; height: 34px; transition: transform .3s var(--ease); }
.nav-logo:hover svg { transform: rotate(-14deg) scale(1.08); }
/* Flat tabs, no dividers: yellow when active, chrome beige on hover */
.nav-tabs { display: flex; list-style: none; }
.nav-tabs a {
    height: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 0 26px;
    font-family: var(--ff-mono); font-weight: 500; font-size: .92rem;
    letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
    color: var(--ink);
    transition: background-color .15s;
}
.nav-tabs a svg {
    width: 19px; height: 19px; overflow: visible;
    stroke: #fff; stroke-width: 3; stroke-linejoin: round; paint-order: stroke;
    filter: drop-shadow(0 1.5px 1.5px rgba(25, 21, 16, .35));
}
.nav-tabs a:hover { background: var(--chrome); }
.nav-tabs a.active { background: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.social {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 2px solid var(--ink); border-radius: 50%;
    transition: transform .2s var(--ease);
}
.social svg { width: 16px; height: 16px; }
.social:hover { transform: translateY(-3px) rotate(-8deg); }
.social.y { background: var(--yellow); }
.social.p { background: var(--pink); }
.social.g { background: var(--green); }
.nav-contact { padding: 9px 16px; margin-left: 6px; box-shadow: 3px 3px 0 var(--ink); }
.burger { display: none; width: var(--nav-h); border-left: 2px solid var(--ink); }
.burger span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mob-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    display: none; flex-direction: column;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
}
.mob-menu.open { display: flex; }
.mob-menu a {
    padding: 18px var(--pad);
    font-family: var(--ff-mono); font-weight: 500; font-size: .85rem;
    letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
    border-top: 1.5px solid var(--rule);
}
.mob-menu .mob-socials { display: flex; gap: 10px; padding: 16px var(--pad) 20px; }

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: calc(100svh - var(--nav-h));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 72px var(--pad) 88px;
    text-align: center;
}
.name-stage { position: relative; display: inline-block; margin: 0 auto; }
.name-stage .my-name { font-size: 1.7rem; display: block; margin-bottom: 4px; transform: rotate(-2deg); }
.select-box {
    position: relative;
    padding: 18px 34px 10px;
    border: 2px solid var(--orange);
    background: rgba(255, 255, 255, .6);
}
.select-box .handle {
    position: absolute; width: 11px; height: 11px;
    background: #fff; border: 2px solid var(--orange);
}
.handle.h1 { top: -6px; left: -6px; } .handle.h2 { top: -6px; right: -6px; }
.handle.h3 { bottom: -6px; left: -6px; } .handle.h4 { bottom: -6px; right: -6px; }
.select-box .dims {
    position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
    font-family: var(--ff-mono); font-size: .62rem; font-weight: 500;
    color: #fff; background: var(--orange);
    padding: 2px 6px; border-radius: 3px;
}
.hero-name { font-size: clamp(5.6rem, 20vw, 14rem); letter-spacing: -.06em; }

.name-stage .s1 { top: 10px; left: -150px; background: var(--mint); transform: rotate(-7deg); }
.name-stage .s2 { top: 4px; right: -170px; background: var(--yellow-soft); transform: rotate(6deg); }
.name-stage .s3 { bottom: -46px; left: -128px; background: var(--yellow); transform: rotate(-4deg); }
.name-stage .s4 { bottom: -54px; right: -118px; background: var(--mint); transform: rotate(5deg); }
.name-stage .arrow { position: absolute; width: 46px; height: 46px; color: var(--ink); }
.name-stage .a1 { bottom: -22px; left: -40px; }
.name-stage .a2 { bottom: -26px; right: -38px; transform: scaleX(-1); }

.status {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 54px;
    font-family: var(--ff-mono); font-weight: 500; font-size: .72rem;
    letter-spacing: .14em; text-transform: uppercase;
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 176, 106, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(22, 176, 106, 0); } }

.hero-line {
    max-width: 860px;
    margin-top: 22px;
    font-size: clamp(1.9rem, 4.6vw, 3.6rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.025em;
}
.hero-sub { max-width: 620px; margin-top: 22px; color: var(--ink-2); font-size: 1.06rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }

.avatar {
    position: absolute;
    width: 92px; height: 92px;
    border-radius: 50%;
    border: 3px solid var(--orange);
    padding: 4px;
    background: var(--paper);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .tag {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    background: var(--orange); color: #fff;
    font-family: var(--ff-mono); font-size: .58rem; font-weight: 500; letter-spacing: .08em;
    padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.avatar.left { left: 7%; top: 56%; }
.avatar.right { right: 7%; top: 60%; border-color: var(--blue); }
.avatar.right .tag { background: var(--blue); }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ========================================
   About
   ======================================== */
.about-scribble { position: absolute; top: 40px; left: max(var(--pad), calc(50% - 560px)); font-size: 1.5rem; transform: rotate(-4deg); }
.about-grid { display: grid; grid-template-columns: 250px 1fr 270px; gap: 56px; align-items: center; }
.about .polaroid.p-left { transform: rotate(-5deg); }
.about .polaroid.p-right { transform: rotate(4deg); }
.boxed-title {
    display: inline-block;
    padding: 4px 18px;
    font-size: 1.5rem; font-weight: 600;
    border: 2px solid var(--ink); border-radius: 6px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--ink);
    margin-bottom: 26px;
}
/* About copy matches the hero sub-line: Inter, centred, soft ink */
.about-copy { max-width: 36rem; margin-inline: auto; text-align: center; }
.about-copy .pull { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.about-copy .body { margin-top: 18px; font-size: 1.06rem; line-height: 1.7; color: var(--ink-2); }
.about-copy .pull + .body { margin-top: 22px; }
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55% 90%, transparent 90%); padding: 0 2px; }
.hl.pink { background: linear-gradient(transparent 55%, var(--pink-soft) 55% 90%, transparent 90%); }
.hl.mint { background: linear-gradient(transparent 55%, var(--mint) 55% 90%, transparent 90%); }

.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 64px; }
.stat {
    position: relative;
    width: 200px; padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 10px 18px -12px rgba(25, 21, 16, .45);
}
.stat:nth-child(1) { background: var(--yellow-soft); transform: rotate(-3deg); }
.stat:nth-child(2) { background: var(--pink-soft); transform: rotate(2deg); }
.stat:nth-child(3) { background: var(--mint); transform: rotate(-1.5deg); }
.stat-num { font-size: 4.2rem; }
.stat-label { font-size: .88rem; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 48px; }
.chip {
    display: inline-flex; align-items: center;
    font-size: 1.02rem; font-weight: 600;
    clip-path: polygon(0 8%, 4% 0, 96% 6%, 100% 0, 98% 50%, 100% 100%, 95% 94%, 5% 100%, 0 92%, 2% 50%);
}
.chip span { padding: 9px 20px; }
.chip i { font-style: normal; display: grid; place-items: center; width: 44px; align-self: stretch; filter: saturate(1.2); }
.chip.c1 { background: var(--yellow); } .chip.c1 i { background: #e8b82e; }
.chip.c2 { background: var(--green); color: #fff; } .chip.c2 i { background: var(--pink); }
.chip.c3 { background: var(--pink); color: #fff; } .chip.c3 i { background: var(--green); }
.chip.c4 { background: var(--blue); color: #fff; } .chip.c4 i { background: var(--yellow); }
.chip.c5 { background: var(--orange); color: var(--ink); } .chip.c5 i { background: var(--cyan); }
.chip.c6 { background: var(--cyan); } .chip.c6 i { background: var(--orange); }

/* ========================================
   Work: stacked folder cards
   ======================================== */
.work-stack { display: flex; flex-direction: column; gap: 56px; padding-bottom: 40px; }
.folder {
    --card: var(--blue);
    --card-ink: #fff;
    position: sticky;
    top: calc(var(--nav-h) + 24px + var(--i, 0) * 56px);
    padding-top: 44px;
}
.folder-tab {
    position: absolute; top: 0; left: 0;
    height: 46px; padding: 0 64px 0 26px;
    display: flex; align-items: center; gap: 10px;
    background: var(--card); color: var(--card-ink);
    clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
    font-family: var(--ff-mono); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
}
.folder-body {
    display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
    min-height: 480px;
    padding: 52px 52px 56px;
    background: var(--card); color: var(--card-ink);
    border-radius: 0 10px 10px 10px;
    box-shadow: 0 -10px 30px -18px rgba(25, 21, 16, .5);
}
.folder.f-nutri { --card: var(--ink); --card-ink: #fdfdfb; --accent: #34d399; }
.folder.f-fuel { --card: var(--orange); --card-ink: var(--ink); --accent: var(--ink); }
.folder.f-doc { --card: var(--blue); --card-ink: #fff; --accent: var(--yellow); }
.folder-meta { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.folder-meta .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent, currentColor); }
.folder h3 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; margin: 18px 0 18px; }
.folder p { font-size: 1.08rem; line-height: 1.6; max-width: 460px; opacity: .92; }
.folder .link-arrow { display: inline-block; margin-top: 28px; text-decoration-color: var(--accent); }
.folder-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.folder-tags span {
    padding: 4px 12px;
    font-family: var(--ff-mono); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    border: 1.5px solid currentColor; border-radius: 999px;
    opacity: .85;
}
.folder-shot { position: relative; transform: rotate(2deg); transition: transform .35s var(--ease); }
.folder:hover .folder-shot { transform: rotate(0deg) scale(1.02); }
.folder-shot .frame { background: #fff; padding: 10px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); }
.folder-shot img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.folder-shot .frame.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #0d1a14; }
.folder-shot .frame.duo img { aspect-ratio: 9 / 13; object-position: top; }
.folder a.cover { position: absolute; inset: 0; z-index: 4; }
.folder a.cover:focus-visible { outline-offset: -6px; }

/* ========================================
   Approach: sticky notes
   ======================================== */
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.note {
    position: relative;
    min-height: 250px;
    padding: 30px 24px 26px;
    box-shadow: 0 14px 22px -14px rgba(25, 21, 16, .45);
    transition: transform .3s var(--ease);
}
.note:nth-child(1) { background: var(--yellow); transform: rotate(-2.5deg); }
.note:nth-child(2) { background: var(--pink-soft); transform: rotate(1.8deg); margin-top: 28px; }
.note:nth-child(3) { background: var(--mint); transform: rotate(-1.2deg); }
.note:nth-child(4) { background: var(--cyan); transform: rotate(2.4deg); margin-top: 22px; }
.note:hover { transform: rotate(0) translateY(-6px); }
.note-num { font-size: 3.2rem; }
.note h3 { font-family: var(--ff-hand); font-weight: 400; font-size: 2.1rem; line-height: 1; margin: 12px 0 10px; }
.note p { font-size: .95rem; line-height: 1.55; color: var(--ink); }

/* ========================================
   Practice
   ======================================== */
.practice-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.job {
    position: relative;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 10px;
    box-shadow: 6px 6px 0 var(--ink);
    padding: 34px 34px 30px;
}
.job-when { display: inline-block; background: var(--yellow); padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 4px; transform: rotate(-2deg); }
.job h3 { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; margin-top: 18px; }
.job .role { font-family: var(--ff-hand); font-size: 1.5rem; color: var(--blue); }
.job p { margin-top: 14px; color: var(--ink-2); }
.job .folder-tags span { border-color: var(--ink); opacity: 1; }
.toolbox h3 { font-family: var(--ff-hand); font-weight: 400; font-size: 2rem; transform: rotate(-2deg); margin-bottom: 22px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
.tool {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px 12px;
    background: #fff;
    box-shadow: 0 6px 14px -8px rgba(25, 21, 16, .4);
    font-size: .8rem; font-weight: 600;
}
.tool:nth-child(odd) { transform: rotate(-2deg); }
.tool:nth-child(even) { transform: rotate(2deg); }
.tool img { width: 34px; height: 34px; object-fit: contain; }
.tool .tape { width: 54px; height: 16px; }

/* ========================================
   Writing
   ======================================== */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.index-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 30px 26px 24px;
    background-color: #fff;
    background-image: linear-gradient(to bottom, transparent 54px, rgba(255, 77, 141, .45) 54px 56px, transparent 56px),
        repeating-linear-gradient(to bottom, transparent 0 27px, rgba(43, 87, 214, .14) 27px 28px);
    background-position: 0 0, 0 56px;
    box-shadow: 0 14px 24px -16px rgba(25, 21, 16, .5);
    text-decoration: none;
    transition: transform .3s var(--ease);
}
.index-card:nth-child(1) { transform: rotate(-1.5deg); }
.index-card:nth-child(2) { transform: rotate(1deg); }
.index-card:nth-child(3) { transform: rotate(-.5deg); }
.index-card:hover { transform: rotate(0) translateY(-6px); }
.index-card .mono { color: var(--ink-3); }
.index-card h3 { margin-top: 34px; font-size: 1.22rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.index-card p { margin-top: 12px; font-size: .94rem; color: var(--ink-2); line-height: 1.75; flex: 1; }
.index-card .read { margin-top: 18px; font-family: var(--ff-hand); font-size: 1.3rem; color: var(--blue); }

/* ========================================
   Field notes
   ======================================== */
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: start; }
.wall .polaroid { padding: 9px 9px 30px; transition: transform .3s var(--ease); }
.wall .polaroid:nth-child(odd) { transform: rotate(-3deg); }
.wall .polaroid:nth-child(even) { transform: rotate(3deg) translateY(26px); }
.wall .polaroid:hover { transform: rotate(0) scale(1.06); z-index: 5; }
.wall-foot { text-align: center; margin-top: 64px; }
.wall-foot a { font-family: var(--ff-hand); font-size: 1.5rem; }

/* ========================================
   Contact
   ======================================== */
.contact { text-align: center; padding-bottom: 72px; }
.smiley { display: block; width: 150px; height: 150px; margin: 0 auto 26px; animation: smiley-sway 4s ease-in-out infinite; }
@keyframes smiley-sway { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.contact h2 { font-size: clamp(4rem, 13vw, 10rem); }
.contact .lead { font-size: clamp(1.4rem, 2.6vw, 1.9rem); max-width: 640px; margin: 22px auto 0; }
.contact-stage { position: relative; max-width: 900px; margin: 72px auto 0; }
.big-card {
    position: relative;
    padding: 56px 32px 52px;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(-1deg);
}
.big-card .hand { font-size: 1.8rem; }
.big-card .pixel { font-size: clamp(4rem, 12vw, 8.5rem); margin: 10px 0 20px; }
.big-card .email { display: inline-block; font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-all; }
.big-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.me-card {
    position: absolute; top: -54px; left: -64px; z-index: 4;
    width: 260px; padding: 16px 18px;
    text-align: left;
    background: var(--cyan);
    transform: rotate(-6deg);
    box-shadow: 0 14px 20px -12px rgba(25, 21, 16, .5);
}
.me-card .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.me-card .who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.me-card p { font-size: .82rem; line-height: 1.45; margin-top: 8px; }

/* ========================================
   Footer
   ======================================== */
.footer { position: relative; padding: 72px 0 36px; }
.footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 40px;
    background: radial-gradient(ellipse 70% 100% at 50% 0, transparent 69%, var(--ink) 69.5%, transparent 70.5%);
    opacity: .35;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-name { font-size: clamp(2.9rem, 8vw, 5rem); }
.footer-role { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.footer-role::before { content: ""; width: 9px; height: 9px; background: var(--blue); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer-links nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links nav a { text-decoration: none; }
.footer-links nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-links .socials { display: flex; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; font-size: .85rem; color: var(--ink-3); }
.footer-bottom .made { font-family: var(--ff-hand); font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s var(--ease); }
.rv.on { opacity: 1; translate: 0 0; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1100px) {
    .nav-tabs a { padding: 0 14px; }
    .nav-tabs a span { display: none; }
    .avatar { display: none; }
    .name-stage .s1 { left: -70px; top: -14px; }
    .name-stage .s2 { right: -80px; top: -18px; }
    .name-stage .s3 { left: -60px; }
    .name-stage .s4 { right: -56px; }
    .me-card { left: -12px; top: -70px; }
    .about-grid { grid-template-columns: 200px 1fr 200px; gap: 32px; }
    .notes { grid-template-columns: repeat(2, 1fr); }
    .wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    :root { --nav-h: 58px; }
    .nav-tabs, .nav-right .social, .nav-contact { display: none; }
    .burger { display: block; }
    .nav-right { padding: 0; }
    .sec { padding: 84px 0; }
    .name-stage .sticky { display: none; }
    .name-stage .arrow { display: none; }
    .select-box { padding: 14px 18px 8px; }
    .about-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .about-copy { grid-column: 1 / -1; order: -1; }
    .about-scribble { position: static; display: block; text-align: center; margin-bottom: 16px; }
    .folder { position: relative; top: auto; }
    .folder-body { grid-template-columns: 1fr; padding: 36px 26px 34px; gap: 32px; min-height: 0; }
    .practice-grid { grid-template-columns: 1fr; }
    .cards3 { grid-template-columns: 1fr; gap: 28px; }
    .me-card { position: relative; top: auto; left: auto; margin: 0 auto -18px; transform: rotate(-3deg); }
}
@media (max-width: 560px) {
    :root { --pad: 16px; }
    .notes { grid-template-columns: 1fr; }
    .note { min-height: 0; margin-top: 0 !important; }
    .wall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tools { grid-template-columns: repeat(2, 1fr); }
    .stat { width: 100%; max-width: 260px; }
    .hero-ctas .btn, .hero-ctas .btn-cta { width: 100%; justify-content: center; }
    .big-card { padding: 40px 18px; box-shadow: 6px 6px 0 var(--ink); }
    .footer-links { align-items: flex-start; }
    .folder-tab { padding: 0 52px 0 18px; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rv { opacity: 1; translate: none; }
    .intro { display: none; }
}

/* ========================================
   Motion borrowed from the Crayon reference
   ======================================== */
/* Negative lens: an inverted square that follows the pointer over JAMAL and Let's talk */
.neg-zone { position: relative; }
.neg-zone.talk { display: inline-block; }
.negative {
    position: absolute; z-index: 30;
    left: var(--nx, 50%); top: var(--ny, 50%);
    width: 288px; height: 288px;
    translate: -50% -50%; scale: .35; opacity: 0;
    -webkit-backdrop-filter: invert(1); backdrop-filter: invert(1);
    pointer-events: none;
    display: none;
    transition: opacity .3s var(--ease), scale .3s var(--ease), left .18s var(--ease), top .18s var(--ease);
}
.negative i { position: absolute; width: 16px; height: 16px; background: var(--ink); }
.negative i:nth-child(1) { top: -8px; left: -8px; }
.negative i:nth-child(2) { top: -8px; right: -8px; }
.negative i:nth-child(3) { bottom: -8px; left: -8px; }
.negative i:nth-child(4) { bottom: -8px; right: -8px; }
@media (hover: hover) and (min-width: 1024px) {
    .negative { display: block; }
    .neg-zone:hover .negative { opacity: 1; scale: 1; }
    /* Hover area reaches past the name, out to the sticky notes, like the reference */
    .neg-zone::before { content: ""; position: absolute; inset: -80px -240px -90px; }
    .neg-zone.talk::before { inset: -60px -180px; }
}

/* Always-running bits */
.spin-icon { display: inline-block; width: .85em; height: .85em; vertical-align: -.08em; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.smiley .blink { transform-box: fill-box; transform-origin: center; animation: eye-blink 4.4s ease-in-out infinite; }
@keyframes eye-blink { 0%, 91%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }


.name-stage .s1, .name-stage .s2 { animation: bob 5s ease-in-out infinite; }
.name-stage .s2 { animation-delay: -1.2s; }
@keyframes bob { 50% { translate: 0 -7px; } }

/* Skills ribbon */
.marquee {
    margin: 0 -2%;
    padding: 14px 0;
    overflow: hidden;
    background: var(--ink); color: var(--paper);
    transform: rotate(-1.5deg);
    border-block: 2px solid var(--ink);
}
.marquee-track { display: flex; width: max-content; gap: 28px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--ff-mono); font-weight: 500; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.marquee-track .star { color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========================================
   Case studies index
   ======================================== */
.cs-index { padding-top: 72px; }
.cs-kicker { font-size: 1.6rem; }
.cs-title { margin-top: 8px; font-size: clamp(4.5rem, 14vw, 12rem); }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px 40px; margin-top: 64px; }

/* Folder card: chrome tab + panel that go ink on hover */
.cs-card { display: block; text-decoration: none; color: var(--ink); }
.cs-tab {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 22px 112px 22px 34px;
    font-family: var(--ff-mono); font-weight: 500; font-size: .95rem;
    letter-spacing: .2em; text-transform: uppercase;
    background: var(--chrome);
    clip-path: polygon(0 0, calc(100% - 76px) 0, 100% 100%, 0 100%);
    transition: background-color .7s ease-in-out, color .7s ease-in-out;
}
.cs-tab .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: background-color .7s ease-in-out; }
.cs-frame { position: relative; display: block; padding: 20px; background: var(--chrome); transition: background-color .7s ease-in-out; }
.cs-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cs-text { display: block; padding-top: 28px; text-align: center; }
.cs-name { display: block; font-size: clamp(1.9rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; }
.cs-line { display: block; max-width: 28rem; margin: 12px auto 0; color: var(--ink-2); line-height: 1.6; }
.cs-card:hover .cs-tab, .cs-card:focus-visible .cs-tab { background: var(--ink); color: #fff; }
.cs-card:hover .cs-tab .dot, .cs-card:focus-visible .cs-tab .dot { background: #fff; }
.cs-card:hover .cs-frame, .cs-card:focus-visible .cs-frame { background: var(--ink); }
.cs-card:hover .cs-img img { transform: scale(1.05); }

/* Round "See" lens that inverts whatever image sits under it */
.see-lens {
    position: absolute; z-index: 2;
    left: var(--nx, 50%); top: var(--ny, 50%);
    display: none; place-items: center;
    width: 112px; height: 112px; border-radius: 50%;
    translate: -50% -50%; scale: .5; opacity: 0;
    -webkit-backdrop-filter: invert(1); backdrop-filter: invert(1);
    font-family: var(--ff-mono); font-weight: 500; font-size: .875rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
    pointer-events: none;
    transition: opacity .3s var(--ease), scale .3s var(--ease);
}
@media (hover: hover) and (min-width: 1024px) {
    .see-lens { display: grid; }
    .cs-card:hover .see-lens { opacity: 1; scale: 1; }
}
@media (max-width: 860px) {
    .cs-grid { grid-template-columns: 1fr; gap: 64px; }
}
@media (max-width: 560px) {
    .cs-tab { padding: 16px 84px 16px 22px; font-size: .78rem; clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 100%, 0 100%); }
    .cs-frame { padding: 12px; }
}

/* ========================================
   Hero load-in (crayon.js tags pieces with data-in and a --d delay)
   ======================================== */
.hero-wait [data-in] { opacity: 0; }
.hero-name .ch, .hero-line .w { display: inline-block; }
.hero-go [data-in="up"] { animation: in-up .6s var(--ease) var(--d) both; }
.hero-go [data-in="pop"] { animation: in-pop .55s var(--ease) var(--d) both; }
.hero-go [data-in="rise"] { animation: in-rise .55s var(--ease) var(--d) both; }
.hero-go .spin-icon[data-in="rise"] { animation: in-rise .55s var(--ease) var(--d) both, spin 9s linear infinite; }
.hero-go [data-in="drop-sm"] { animation: in-drop-sm .7s var(--ease) var(--d) both; }
.hero-go [data-in="drop-md"] { animation: in-drop-md .7s var(--ease) var(--d) both; }
.hero-go [data-in="drop-lg"] { animation: in-drop-lg .7s var(--ease) var(--d) both; }
/* Keep the idle motion going once each piece has landed */
.hero-go .name-stage .s1[data-in] { animation: in-drop-sm .7s var(--ease) var(--d) both, bob 5s ease-in-out calc(var(--d) + .7s) infinite; }
.hero-go .name-stage .s2[data-in] { animation: in-drop-sm-r .7s var(--ease) var(--d) both, bob 5s ease-in-out calc(var(--d) + .7s) infinite; }
.hero-go .avatar[data-in] { animation: in-up .6s var(--ease) var(--d) both, float 6s ease-in-out calc(var(--d) + .6s) infinite; }
@keyframes in-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes in-pop { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
@keyframes in-rise { from { opacity: 0; translate: 0 .6em; } to { opacity: 1; translate: 0 0; } }
@keyframes in-drop-sm { from { opacity: 0; translate: 0 -28px; rotate: -6deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes in-drop-sm-r { from { opacity: 0; translate: 0 -28px; rotate: 6deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes in-drop-md { from { opacity: 0; translate: 0 -90px; rotate: -5deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes in-drop-lg { from { opacity: 0; translate: 0 -140px; rotate: -7deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
