/* =========================================================
   HAZIK MALIK — WRITER PORTFOLIO
   SCRAPBOOK EDITION
   ========================================================= */


/* =========================================================
   01. DESIGN VARIABLES
   ========================================================= */

:root {
    --desk: #171716;
    --desk-light: #20201e;

    --paper: #f3e4d1;
    --paper-light: #f8ecdc;
    --paper-dark: #dfc7ad;

    --ink: #24221f;
    --ink-soft: #62594f;

    --red: #e45142;
    --red-dark: #c83d32;

    --cream: #f7ead9;

    --grid: rgba(72, 91, 112, 0.18);

    --shadow-large:
        0 25px 60px rgba(0, 0, 0, 0.45);

    --shadow-paper:
        0 8px 20px rgba(0, 0, 0, 0.16);

    --ease-out:
        cubic-bezier(0.16, 1, 0.3, 1);

    --ease-spring:
        cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* =========================================================
   02. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 20%,
            #242422 0%,
            var(--desk) 55%,
            #111110 100%
        );

    color: var(--ink);

    overflow-x: hidden;

    font-family: "Courier Prime", monospace;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.12;

    background-image:
        url("data:image/svg+xml,%3Csvg width='180' height='180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.4'/%3E%3C/svg%3E");

    z-index: 9999;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */

.font-elegant {
    font-family: "Playfair Display", serif;
}

.font-typewriter {
    font-family: "Courier Prime", monospace;
}

.font-handwriting {
    font-family: "Caveat", cursive;
}


/* =========================================================
   04. SITE WRAPPER
   ========================================================= */

.site-wrapper {
    position: relative;

    width: 100%;
    min-height: 100vh;

    padding:
        0
        clamp(55px, 8vw, 150px);
}


/* =========================================================
   05. SIDE SCRAPBOOK BORDERS
   ========================================================= */

.side-border {
    position: fixed;

    top: 0;
    bottom: 0;

    width: clamp(34px, 4vw, 58px);

    background:
        repeating-linear-gradient(
            0deg,
            var(--red) 0 38px,
            transparent 38px 42px
        );

    z-index: 50;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;

    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.25);
}

.side-border::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            135deg,
            transparent 0 9px,
            rgba(0, 0, 0, 0.14) 9px 10px
        );

    opacity: 0.45;

    pointer-events: none;
}

.side-border-left {
    left: 0;
}

.side-border-right {
    right: 0;
}

.side-symbol {
    position: relative;

    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #171716;

    font-size: 20px;

    opacity: 0.9;

    transform: rotate(
        calc(var(--rotation, 0) * 1deg)
    );

    transition:
        transform 0.4s var(--ease-spring),
        opacity 0.3s ease;
}

.side-symbol:nth-child(2n) {
    transform: rotate(-4deg);
}

.side-symbol:nth-child(3n) {
    transform: rotate(5deg);
}

.side-symbol:hover {
    transform:
        scale(1.15)
        rotate(0deg);

    opacity: 1;
}


/* =========================================================
   06. FLOATING DOODLES
   ========================================================= */

.doodle {
    position: fixed;

    color: var(--cream);

    opacity: 0.7;

    pointer-events: none;

    z-index: 2;

    font-family: "Caveat", cursive;

    transition:
        transform 0.8s var(--ease-out);
}

.doodle-pen {
    left: 5%;
    top: 38%;

    font-size: 70px;

    transform: rotate(-18deg);
}

.doodle-star {
    right: 5%;
    top: 28%;

    font-size: 48px;

    transform: rotate(12deg);
}

.doodle-book {
    left: 4%;
    bottom: 18%;

    font-size: 58px;

    transform: rotate(9deg);
}

.doodle-scribble {
    right: 5%;
    bottom: 20%;

    font-size: 42px;

    transform: rotate(-8deg);
}


/* =========================================================
   07. CENTRAL PAPER
   ========================================================= */

.paper {
    position: relative;

    width: min(1180px, 100%);

    margin: 0 auto;

    min-height: 100vh;

    background-color: var(--paper);

    box-shadow:
        var(--shadow-large);

    overflow: hidden;

    isolation: isolate;
}

.paper::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)' opacity='.06'/%3E%3C/svg%3E");

    opacity: 0.8;

    z-index: -1;
}

.paper::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.14),
            transparent 8%,
            transparent 92%,
            rgba(0,0,0,0.05)
        );

    z-index: -1;
}


/* =========================================================
   08. PAPER TOP DECORATION
   ========================================================= */

.paper-decoration-top {
    position: absolute;

    top: 15px;
    left: 50%;

    transform: translateX(-50%);

    color: var(--red);

    font-size: 20px;

    opacity: 0.7;

    letter-spacing: 8px;

    pointer-events: none;
}


/* =========================================================
   09. HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: relative;

    z-index: 100;

    width: 100%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding:
        45px
        clamp(28px, 7vw, 85px)
        20px;
}

.site-logo {
    font-size: 42px;

    color: var(--red);

    line-height: 1;

    transition:
        transform 0.4s var(--ease-spring);
}

.site-logo:hover {
    transform:
        rotate(-5deg)
        scale(1.08);
}

.main-navigation {
    display: flex;

    align-items: center;

    gap: clamp(20px, 4vw, 48px);
}

.main-navigation a {
    position: relative;

    color: var(--ink);

    font-size: 15px;

    transition:
        color 0.3s ease,
        transform 0.4s var(--ease-spring);
}

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    height: 2px;

    background: var(--red);

    transform:
        scaleX(0)
        rotate(-2deg);

    transform-origin: left;

    transition:
        transform 0.5s var(--ease-out);
}

.main-navigation a:hover {
    color: var(--red);

    transform:
        translateY(-3px)
        rotate(-1deg);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   10. SECTION BASE
   ========================================================= */

.section-spacing {
    position: relative;

    padding:
        clamp(90px, 12vw, 170px)
        clamp(30px, 8vw, 100px);
}

.section-label {
    color: var(--red);

    font-size: 13px;

    letter-spacing: 2px;

    margin-bottom: 30px;

    opacity: 0.9;
}


/* =========================================================
   11. HERO
   ========================================================= */

.hero-section {
    position: relative;

    min-height: 850px;

    display: flex;

    align-items: center;

    padding:
        100px
        clamp(30px, 8vw, 100px)
        140px;
}

.hero-content {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 0.85fr);

    align-items: center;

    gap: clamp(45px, 8vw, 110px);
}

.hero-text {
    position: relative;

    z-index: 5;
}

.hero-kicker {
    color: var(--ink-soft);

    font-size: clamp(15px, 2vw, 19px);

    margin-bottom: 12px;
}

.hero-name {
    display: flex;

    flex-direction: column;

    font-size:
        clamp(72px, 11vw, 150px);

    line-height: 0.82;

    letter-spacing: -7px;

    color: var(--ink);
}

.hero-first-name {
    font-weight: 800;
}

.hero-last-name {
    font-weight: 400;

    font-style: italic;

    color: var(--red);

    transform:
        translateX(0)
        rotate(-2deg);

    transition:
        transform 0.8s var(--ease-spring);
}

.hero-name:hover .hero-last-name {
    transform:
        translateX(18px)
        rotate(-4deg);
}

.hero-description {
    position: relative;

    width: fit-content;

    margin-top: 45px;

    padding:
        20px 28px;

    background: var(--paper-light);

    box-shadow: var(--shadow-paper);

    transform: rotate(-1.5deg);

    transition:
        transform 0.5s var(--ease-spring),
        box-shadow 0.5s ease;
}

.hero-description:hover {
    transform:
        rotate(1deg)
        translateY(-5px);

    box-shadow:
        0 14px 25px rgba(0, 0, 0, 0.15);
}

.hero-description p {
    position: relative;

    z-index: 2;

    font-size: 17px;

    line-height: 1.6;
}

.tape {
    position: absolute;

    background:
        linear-gradient(
            90deg,
            rgba(240, 226, 185, 0.8),
            rgba(255, 243, 204, 0.7),
            rgba(238, 219, 175, 0.8)
        );

    border: 1px solid rgba(100, 80, 50, 0.08);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.12),
        inset 0 0 7px rgba(255, 255, 255, 0.3);

    z-index: 20;

    pointer-events: none;
}

.tape-small {
    width: 75px;
    height: 22px;

    top: -11px;
    left: 35px;

    transform: rotate(-4deg);
}

.hero-tagline {
    margin-top: 42px;

    max-width: 430px;

    font-size: clamp(25px, 3vw, 38px);

    line-height: 1.2;
}

.hero-tagline em {
    color: var(--red);
}

.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    margin-top: 35px;

    padding:
        13px 20px;

    border: 1px solid var(--ink);

    color: var(--ink);

    transition:
        background 0.4s ease,
        color 0.4s ease,
        transform 0.5s var(--ease-spring);
}

.hero-button span {
    transition:
        transform 0.4s var(--ease-spring);
}

.hero-button:hover {
    background: var(--red);

    color: var(--cream);

    border-color: var(--red);

    transform:
        translateY(-4px)
        rotate(-1deg);
}

.hero-button:hover span {
    transform:
        translate(4px, 4px);
}


/* =========================================================
   12. HERO PHOTO
   ========================================================= */

.hero-visual {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}

.photo-stack {
    position: relative;

    width: min(390px, 100%);
}

.polaroid {
    position: relative;

    padding:
        15px
        15px
        60px;

    background: #faf8f3;

    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.22);

    transform:
        rotate(3deg);

    transition:
        transform 0.7s var(--ease-spring),
        box-shadow 0.7s ease;
}

.polaroid:hover {
    transform:
        rotate(-2deg)
        translateY(-12px)
        scale(1.025);

    box-shadow:
        0 30px 45px rgba(0, 0, 0, 0.28);
}

.photo-frame {
    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #d4c5b4;
}

.profile-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.88)
        contrast(0.95);

    transition:
        transform 1s var(--ease-out),
        filter 0.8s ease;
}

.polaroid:hover .profile-image {
    transform: scale(1.06);

    filter:
        saturate(1)
        contrast(1);
}

.photo-caption {
    position: absolute;

    bottom: 15px;
    left: 0;
    right: 0;

    text-align: center;

    font-size: 27px;

    color: var(--ink-soft);

    transform: rotate(-2deg);
}

.tape-photo {
    width: 145px;
    height: 30px;

    top: -16px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-3deg);
}

.photo-note {
    position: absolute;

    right: -45px;
    bottom: 30px;

    padding: 12px 18px;

    background: #dcc4a9;

    color: var(--ink);

    font-size: 26px;

    transform: rotate(7deg);

    box-shadow: var(--shadow-paper);

    transition:
        transform 0.5s var(--ease-spring);
}

.photo-stack:hover .photo-note {
    transform:
        rotate(2deg)
        translateY(-7px);
}

.hero-note {
    position: absolute;

    bottom: 55px;
    right: clamp(30px, 9vw, 120px);

    color: var(--red);

    font-size: 25px;

    transform: rotate(-4deg);

    opacity: 0.8;
}


/* =========================================================
   13. ABOUT PAPER
   ========================================================= */

.about-paper {
    position: relative;

    max-width: 900px;

    margin: 0 auto;

    padding:
        clamp(45px, 7vw, 90px);

    background:
        linear-gradient(
            180deg,
            var(--paper-light),
            var(--paper)
        );

    box-shadow:
        var(--shadow-large);

    transform: rotate(-0.6deg);

    clip-path: polygon(
        0 0,
        100% 0,
        100% 96%,
        98% 98%,
        96% 96%,
        94% 100%,
        92% 97%,
        90% 100%,
        88% 97%,
        86% 100%,
        84% 97%,
        82% 100%,
        80% 97%,
        78% 100%,
        76% 97%,
        74% 100%,
        72% 97%,
        70% 100%,
        68% 97%,
        66% 100%,
        64% 97%,
        62% 100%,
        60% 97%,
        58% 100%,
        56% 97%,
        54% 100%,
        52% 97%,
        50% 100%,
        48% 97%,
        46% 100%,
        44% 97%,
        42% 100%,
        40% 100%,
        38% 97%,
        36% 100%,
        34% 97%,
        32% 100%,
        30% 97%,
        28% 100%,
        26% 97%,
        24% 100%,
        22% 97%,
        20% 100%,
        18% 97%,
        16% 100%,
        14% 97%,
        12% 100%,
        10% 97%,
        8% 100%,
        6% 97%,
        4% 100%,
        2% 97%,
        0 96%
    );
}

.tape-about-left {
    width: 105px;
    height: 28px;

    top: -12px;
    left: 40px;

    transform: rotate(-7deg);
}

.tape-about-right {
    width: 105px;
    height: 28px;

    top: -10px;
    right: 40px;

    transform: rotate(6deg);
}

.about-inner {
    position: relative;
}

.about-heading {
    margin-bottom: 45px;
}

.small-handwriting {
    display: block;

    color: var(--red);

    font-size: 28px;

    margin-bottom: 4px;

    transform: rotate(-2deg);
}

.about-heading h2 {
    font-size: clamp(50px, 7vw, 85px);

    line-height: 0.95;

    font-weight: 700;
}

.about-content {
    font-size: clamp(16px, 2vw, 19px);

    line-height: 1.9;

    color: #3f3a34;
}

.about-content p {
    margin-bottom: 25px;
}

.about-signature {
    margin-top: 60px;

    text-align: right;
}

.signature-intro {
    display: block;

    font-size: 24px;

    color: var(--ink-soft);

    transform: rotate(-2deg);
}

.signature {
    display: inline-block;

    margin-top: -4px;

    color: var(--red);

    font-size: 70px;

    line-height: 1;

    transform: rotate(-5deg);

    transition:
        transform 0.5s var(--ease-spring);
}

.signature:hover {
    transform:
        rotate(-2deg)
        scale(1.05);
}


/* =========================================================
   14. BELIEFS / SCRAPBOOK NOTES
   ========================================================= */

.beliefs-section {
    min-height: 720px;
}

.scrapbook-area {
    position: relative;

    min-height: 560px;

    background:
        linear-gradient(
            rgba(45, 45, 43, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(45, 45, 43, 0.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    border-top: 1px solid rgba(50, 45, 40, 0.1);
    border-bottom: 1px solid rgba(50, 45, 40, 0.1);
}

.paper-note {
    position: absolute;

    padding: 30px;

    box-shadow:
        5px 10px 18px rgba(0, 0, 0, 0.14);

    transition:
        transform 0.6s var(--ease-spring),
        box-shadow 0.6s ease;

    cursor: default;
}

.paper-note:hover {
    transform:
        translateY(-12px)
        rotate(0deg)
        scale(1.035);

    box-shadow:
        8px 22px 30px rgba(0, 0, 0, 0.18);

    z-index: 20;
}

.note-one {
    top: 55px;
    left: 7%;

    width: 270px;

    background: #ead8c1;

    transform: rotate(-5deg);
}

.note-one p {
    font-size: 38px;

    line-height: 1;
}

.note-pin {
    position: absolute;

    width: 12px;
    height: 12px;

    top: 13px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--red);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.25);
}

.note-two {
    top: 190px;
    left: 40%;

    width: 285px;

    background:
        repeating-linear-gradient(
            0deg,
            #eadfca 0 30px,
            #9db1bd 30px 31px
        );

    transform: rotate(3deg);
}

.note-two p {
    font-size: 19px;

    line-height: 1.65;
}

.note-three {
    top: 80px;
    right: 8%;

    width: 290px;

    background: #d8bea2;

    transform: rotate(6deg);
}

.note-three p {
    font-size: 31px;

    line-height: 1.15;
}

.desk-note {
    position: absolute;

    right: 20%;
    bottom: 40px;

    color: var(--red);

    font-size: 29px;

    transform: rotate(-4deg);

    transition:
        transform 0.5s var(--ease-spring);
}

.desk-note:hover {
    transform:
        rotate(0deg)
        translateY(-5px);
}


/* =========================================================
   15. WORKS
   ========================================================= */

.works-header {
    position: relative;

    margin-bottom: 65px;
}

.works-header h2 {
    font-size: clamp(55px, 8vw, 100px);

    line-height: 0.95;

    font-weight: 700;

    max-width: 750px;
}

.works-header h2 em {
    color: var(--red);

    font-weight: 400;
}

.works-header p {
    position: absolute;

    right: 0;
    bottom: -20px;

    font-size: 26px;

    color: var(--ink-soft);

    transform: rotate(-4deg);
}

.works-list {
    border-top: 2px solid var(--ink);
}

.work-item {
    position: relative;

    display: grid;

    grid-template-columns:
        100px
        minmax(0, 1fr)
        auto;

    gap: 25px;

    align-items: center;

    padding:
        28px 10px;

    border-bottom: 1px solid rgba(44, 42, 37, 0.25);

    transition:
        transform 0.5s var(--ease-spring),
        padding 0.5s var(--ease-spring),
        background 0.4s ease;
}

.work-item::before {
    content: "";

    position: absolute;

    inset: 0;

    background: var(--paper-light);

    opacity: 0;

    transform: scaleY(0.7);

    transition:
        opacity 0.4s ease,
        transform 0.5s var(--ease-out);

    z-index: -1;
}

.work-item:hover {
    padding-left: 20px;
    padding-right: 20px;

    transform: translateY(-3px);
}

.work-item:hover::before {
    opacity: 1;

    transform: scaleY(1);
}

.work-year {
    color: var(--red);

    font-size: 15px;
}

.work-main {
    display: flex;

    align-items: baseline;

    gap: 25px;

    min-width: 0;
}

.work-title {
    font-family: "Playfair Display", serif;

    font-size: clamp(24px, 3vw, 40px);

    line-height: 1.1;

    transition:
        color 0.4s ease,
        transform 0.5s var(--ease-spring);
}

.work-item:hover .work-title {
    color: var(--red);

    transform:
        translateX(5px)
        skewX(-2deg);
}

.work-leader {
    flex: 1;

    min-width: 40px;

    height: 8px;

    background-image:
        radial-gradient(
            circle,
            var(--ink-soft) 1px,
            transparent 1px
        );

    background-size: 7px 7px;

    opacity: 0.25;

    transition:
        opacity 0.4s ease;
}

.work-item:hover .work-leader {
    opacity: 0.6;
}

.work-publication {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--ink-soft);

    font-size: 14px;

    white-space: nowrap;
}

.work-arrow {
    opacity: 0;

    transform:
        translate(-5px, 5px);

    transition:
        opacity 0.4s ease,
        transform 0.4s var(--ease-spring);
}

.work-item:hover .work-arrow {
    opacity: 1;

    transform:
        translate(0, 0);
}

.works-footer-note {
    text-align: right;

    margin-top: 50px;

    color: var(--red);

    font-size: 28px;

    transform: rotate(-3deg);
}


/* =========================================================
   16. CONNECT
   ========================================================= */

.connect-section {
    padding-top: 100px;
}

.connect-paper {
    position: relative;

    max-width: 760px;

    margin: 0 auto;

    padding:
        clamp(45px, 7vw, 80px);

    background: #dfc7ad;

    box-shadow: var(--shadow-large);

    transform: rotate(1deg);

    transition:
        transform 0.7s var(--ease-spring);
}

.connect-paper:hover {
    transform:
        rotate(-0.5deg)
        translateY(-7px);
}

.tape-connect {
    width: 150px;
    height: 30px;

    top: -15px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-2deg);
}

.connect-small {
    color: var(--red);

    font-size: 13px;

    letter-spacing: 2px;

    margin-bottom: 20px;
}

.connect-paper h2 {
    font-size: clamp(60px, 9vw, 100px);

    line-height: 0.9;
}

.connect-description {
    max-width: 500px;

    margin-top: 30px;

    line-height: 1.7;

    font-size: 17px;
}

.email-link {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    margin-top: 35px;

    padding-bottom: 7px;

    border-bottom: 2px solid var(--red);

    color: var(--red);

    font-size: 17px;

    transition:
        gap 0.5s var(--ease-spring),
        transform 0.5s var(--ease-spring);
}

.email-link:hover {
    gap: 23px;

    transform: translateX(4px);
}


/* =========================================================
   17. FOOTER
   ========================================================= */

.site-footer {
    padding:
        50px
        clamp(30px, 8vw, 100px)
        65px;
}

.footer-line {
    height: 1px;

    width: 100%;

    background: rgba(44, 42, 37, 0.3);

    margin-bottom: 25px;
}

.footer-content {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    align-items: center;
}

.footer-left {
    font-size: 12px;

    color: var(--ink-soft);
}

.footer-center {
    text-align: center;

    font-size: 24px;

    color: var(--red);
}

.footer-signature {
    text-align: right;

    font-size: 48px;

    color: var(--red);

    transform: rotate(-4deg);

    transition:
        transform 0.5s var(--ease-spring);
}

.footer-signature:hover {
    transform:
        rotate(0deg)
        scale(1.05);
}


/* =========================================================
   18. SCROLL REVEAL
   ========================================================= */

.reveal-wrapper {
    opacity: 0;

    transform:
        translateY(55px)
        rotate(1deg);

    transition:
        opacity 1s var(--ease-out),
        transform 1s var(--ease-out);
}

.reveal-wrapper.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        rotate(0deg);
}


/* =========================================================
   19. SPECIAL ANIMATION DETAILS
   ========================================================= */

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.photo-note {
    animation:
        gentleFloat 5s ease-in-out infinite;
}

@keyframes tinyWiggle {

    0%,
    100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(-1deg);
    }
}

.hero-note {
    animation:
        tinyWiggle 4s ease-in-out infinite;
}


/* =========================================================
   20. TEXT SELECTION
   ========================================================= */

::selection {
    background: var(--red);

    color: var(--cream);
}


/* =========================================================
   21. ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline:
        2px solid var(--red);

    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-wrapper {
        opacity: 1;

        transform: none;
    }
}


/* =========================================================
   22. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .site-wrapper {
        padding:
            0
            45px;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 80px;
    }

    .hero-section {
        min-height: auto;

        padding-top: 120px;
    }

    .hero-visual {
        max-width: 450px;

        margin: 0 auto;
    }

    .hero-note {
        display: none;
    }

    .scrapbook-area {
        min-height: 750px;
    }

    .note-one {
        left: 5%;
    }

    .note-two {
        left: 35%;
        top: 280px;
    }

    .note-three {
        right: 5%;
        top: 510px;
    }

    .desk-note {
        right: 8%;
        bottom: 15px;
    }

    .work-item {
        grid-template-columns:
            75px
            minmax(0, 1fr);
    }

    .work-publication {
        grid-column: 2;
    }
}


/* =========================================================
   23. MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .site-wrapper {
        padding:
            0
            28px;
    }

    .side-border {
        width: 28px;
    }

    .side-symbol {
        min-height: 42px;

        font-size: 14px;
    }

    .doodle {
        display: none;
    }

    .paper {
        width: 100%;
    }

    .site-header {
        padding:
            35px
            22px
            15px;
    }

    .site-logo {
        font-size: 34px;
    }

    .main-navigation {
        gap: 15px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .hero-section {
        padding:
            80px
            24px
            100px;
    }

    .hero-name {
        font-size: clamp(65px, 18vw, 105px);

        letter-spacing: -4px;
    }

    .hero-description {
        margin-top: 35px;

        padding:
            18px 20px;
    }

    .hero-description p {
        font-size: 14px;
    }

    .hero-tagline {
        font-size: 28px;
    }

    .photo-stack {
        width: 82%;
    }

    .photo-note {
        right: -25px;

        font-size: 21px;
    }

    .section-spacing {
        padding:
            90px
            24px;
    }

    .about-paper {
        padding:
            55px
            28px
            70px;
    }

    .about-heading h2 {
        font-size: 54px;
    }

    .about-content {
        font-size: 15px;

        line-height: 1.8;
    }

    .signature {
        font-size: 58px;
    }

    .scrapbook-area {
        min-height: 850px;
    }

    .paper-note {
        position: absolute;
    }

    .note-one {
        width: 210px;

        left: 5%;

        top: 50px;
    }

    .note-one p {
        font-size: 30px;
    }

    .note-two {
        width: 220px;

        left: auto;
        right: 4%;

        top: 290px;
    }

    .note-two p {
        font-size: 15px;
    }

    .note-three {
        width: 225px;

        left: 10%;
        right: auto;

        top: 530px;
    }

    .note-three p {
        font-size: 25px;
    }

    .desk-note {
        right: 10%;

        bottom: 20px;

        font-size: 23px;
    }

    .works-header h2 {
        font-size: 55px;
    }

    .works-header p {
        position: relative;

        right: auto;
        bottom: auto;

        margin-top: 20px;

        font-size: 23px;
    }

    .work-item {
        display: block;

        padding:
            25px
            5px;
    }

    .work-year {
        margin-bottom: 10px;
    }

    .work-main {
        display: block;
    }

    .work-title {
        font-size: 28px;
    }

    .work-leader {
        display: none;
    }

    .work-publication {
        margin-top: 12px;

        font-size: 12px;
    }

    .works-footer-note {
        font-size: 23px;
    }

    .connect-paper {
        padding:
            55px
            28px;
    }

    .connect-paper h2 {
        font-size: 65px;
    }

    .email-link {
        font-size: 13px;

        word-break: break-word;
    }

    .footer-content {
        grid-template-columns: 1fr;

        gap: 15px;

        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-signature {
        text-align: center;
    }
}


/* =========================================================
   24. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 400px) {

    .main-navigation {
        gap: 9px;
    }

    .main-navigation a {
        font-size: 11px;
    }

    .hero-name {
        font-size: 62px;
    }

    .photo-stack {
        width: 88%;
    }

    .note-one {
        left: 2%;
    }

    .note-two {
        right: 0;
    }

    .note-three {
        left: 4%;
    }
}
/* =========================================================
   WRITER DESK ILLUSTRATIONS
   ========================================================= */

.desk-illustrations {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.desk-asset {
    position: absolute;
    display: block;
    width: clamp(78px, 10vw, 165px);
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
    animation: deskFloat 7s ease-in-out infinite;
}

.asset-pen {
    top: 9%;
    left: 1.5%;
    width: clamp(95px, 12vw, 185px);
    transform: rotate(18deg);
}

.asset-pencil {
    top: 30%;
    right: 1.2%;
    width: clamp(85px, 10vw, 150px);
    transform: rotate(-18deg);
    animation-delay: -2s;
}

.asset-notebook {
    bottom: 7%;
    left: 1%;
    width: clamp(105px, 13vw, 200px);
    transform: rotate(-10deg);
    animation-delay: -4s;
}

.asset-ink {
    top: 56%;
    right: 2%;
    width: clamp(75px, 9vw, 135px);
    transform: rotate(8deg);
    animation-delay: -1s;
}

.asset-paperclip {
    top: 51%;
    left: 2%;
    width: clamp(65px, 7vw, 110px);
    transform: rotate(-14deg);
    animation-delay: -3s;
}

.asset-coffee {
    right: 2%;
    bottom: 6%;
    width: clamp(95px, 11vw, 170px);
    transform: rotate(12deg);
    animation-delay: -5s;
}

@keyframes deskFloat {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -10px;
    }
}

/* Keep the phone layout clean and readable. */
@media (max-width: 900px) {
    .desk-asset {
        display: none;
    }
}
/* =========================================================
   ARTICLE READING PAGE
   ========================================================= */

.article-page {
    min-height: 100vh;
    margin: 0;
    padding: clamp(24px, 6vw, 90px) 20px;
    background: #171717;
    color: #1f1b18;
}

.article-shell {
    width: min(880px, 100%);
    margin: 0 auto;
}

.article-back {
    display: inline-block;
    margin-bottom: 24px;
    color: #f36b5d;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, color 0.2s ease;
}

.article-back:hover {
    color: #fff1dc;
    transform: translateX(-4px);
}

.article-paper {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 8vw, 100px) clamp(26px, 8vw, 110px);
    background:
        linear-gradient(
            rgba(255, 248, 232, 0.92),
            rgba(249, 235, 211, 0.96)
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(202, 166, 132, 0.08) 31px
        );
    border: 1px solid rgba(255, 241, 220, 0.7);
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.article-paper::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 150px;
    height: 22px;
    background: rgba(243, 107, 93, 0.7);
    content: "";
    transform: translateX(-50%) rotate(-2deg);
}

.article-meta {
    margin: 0 0 16px;
    color: #e85d50;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.article-title {
    max-width: 760px;
    margin: 0;
    color: #22201d;
    font-size: clamp(2.4rem, 6vw, 5.3rem);
    line-height: 0.95;
}

.article-publication {
    margin: 24px 0 50px;
    color: #e85d50;
    font-size: 1.35rem;
}

.article-body {
    max-width: 690px;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.95;
}

.article-body p {
    margin: 0 0 1.7em;
}

.article-body p:first-child::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    color: #e85d50;
    font-family: Georgia, serif;
    font-size: 4.6em;
    line-height: 0.7;
}

@media (max-width: 600px) {
    .article-page {
        padding: 24px 14px;
    }

    .article-paper {
        padding: 48px 25px 55px;
    }

    .article-publication {
        margin-bottom: 36px;
    }
}
.side-border {
    opacity: 0.3;
}