/* ==========================================================================
   1. FONTS & IMPORTS
   ========================================================================== */

/* Google Fonts Import for "Who am I" heading and bio typewriter text */
@import url('https://fonts.googleapis.com/css2?family=Playwrite+CU+Guides&family=Special+Elite&display=swap');

/* Custom "GoodFriend" OpenType font for main headings, body, and labels */
@font-face {
    font-family: 'GoodFriend';
    src: url('GoodFriend-Regular308333633555015214.2b1.89bf12660258392045d8519ef364e4e6 (1).otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   2. ROOT COLOR VARIABLES & GLOBAL SETTINGS
   ========================================================================== */

:root {
    --bg: #ffefd6;
    --ink: #1a1410;
    --pink: #ff6fc4;
    --orange: #ffb454;
    --rose: #c8155a;
    --clay: #a86b4a;
    --sky: #9cc8e8;

    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark mode fallback: maintain consistent warm scrapbook aesthetic */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #dfe2e3;
        --ink: #1a1410;
    }
}

/* Ensure padding and border are included in element's total width and height */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'GoodFriend', Gaegu, 'Comic Sans MS', cursive, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}


/* ==========================================================================
   3. PAGE CONTAINER & BORDERS (FILM & BRICK)
   ========================================================================== */

/* Main centered page wrapper */
.page {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 56px;
    background-color: var(--bg);
}

/* Left and right film border strips */
.film {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    background-size: 100% auto;
    background-repeat: repeat-y;
    overflow: hidden;
}

.film.l {
    left: 0;
    background-image: url('images/img1.webp');
}

.film.r {
    right: 0;
    background-image: url('images/img2.webp');
}

/* Flowing small black particles effect inside the film strips */
.film-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Layer 1: Fine cinematic black particles drifting upward */
.film-particles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        16px 50px 0 0 rgba(0, 0, 0, 0.75),
        28px 120px 0 0.5px rgba(26, 20, 16, 0.85),
        36px 190px 0 -0.5px rgba(0, 0, 0, 0.6),
        20px 270px 0 0 rgba(0, 0, 0, 0.7),
        32px 350px 0 0.5px rgba(26, 20, 16, 0.9),
        18px 430px 0 -0.5px rgba(0, 0, 0, 0.65),
        26px 510px 0 0 rgba(0, 0, 0, 0.8),
        38px 590px 0 0.5px rgba(26, 20, 16, 0.7),
        22px 670px 0 -0.5px rgba(0, 0, 0, 0.6),
        30px 750px 0 0 rgba(0, 0, 0, 0.85),
        15px 830px 0 0.5px rgba(26, 20, 16, 0.75),
        34px 910px 0 -0.5px rgba(0, 0, 0, 0.65),
        25px 990px 0 0 rgba(0, 0, 0, 0.8);
    animation: film-particle-drift 7s linear infinite;
    will-change: transform;
}

/* Layer 2: Secondary offset particle stream with subtle horizontal drift */
.film-particles::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        24px 30px 0 0.5px rgba(0, 0, 0, 0.8),
        14px 140px 0 0 rgba(26, 20, 16, 0.7),
        32px 220px 0 -0.5px rgba(0, 0, 0, 0.6),
        22px 310px 0 0.5px rgba(0, 0, 0, 0.85),
        38px 400px 0 0 rgba(26, 20, 16, 0.65),
        16px 480px 0 -0.5px rgba(0, 0, 0, 0.75),
        28px 560px 0 0.5px rgba(0, 0, 0, 0.9),
        20px 650px 0 0 rgba(26, 20, 16, 0.7),
        35px 730px 0 -0.5px rgba(0, 0, 0, 0.65),
        18px 820px 0 0.5px rgba(0, 0, 0, 0.8),
        27px 900px 0 0 rgba(26, 20, 16, 0.75),
        33px 980px 0 -0.5px rgba(0, 0, 0, 0.6);
    animation: film-particle-drift-sway 11s linear infinite;
    will-change: transform;
}

@keyframes film-particle-drift {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        opacity: 0.95;
    }
    100% {
        transform: translateY(-500px);
        opacity: 0.7;
    }
}

@keyframes film-particle-drift-sway {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.65;
    }
    50% {
        transform: translateY(-250px) translateX(2px);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-500px) translateX(-1px);
        opacity: 0.65;
    }
}


/* ==========================================================================
   2.2 MATRIX 01 BINARY FLOW EFFECT (Atmospheric Low-Opacity Background)
   ========================================================================== */

.matrix-rain-bg {
    position: absolute;
    top: 48px;
    left: 56px;
    right: 56px;
    bottom: 46px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    user-select: none;
    opacity: 0.08;
}

.matrix-col {
    font-family: 'Courier Prime', 'Special Elite', monospace;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 2px;
    color: var(--ink);
    white-space: pre;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* Cascading down */
.flow-down {
    animation: matrixStreamDown 14s linear infinite;
}

/* Floating up */
.flow-up {
    animation: matrixStreamUp 17s linear infinite;
}

@keyframes matrixStreamDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0%);
    }
}

@keyframes matrixStreamUp {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Brick divider strip at top and bottom */
.brick {
    height: 46px;
    background: url('images/img3.webp') center / cover;
}

/* Top Interactive Navigation Bar (Black background with tactile brick buttons) */
.brick.brick-nav {
    height: auto;
    min-height: 48px;
    padding: 8px 12px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.brick-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
}

/* Tactile 3D Brick Buttons directly nested into the brick wall */
.brick-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(184, 93, 56, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 2.5px solid rgba(0, 0, 0, 0.45);
    border-right: 2px solid rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    color: #fff9f0;
    font-family: 'GoodFriend', Gaegu, 'Courier Prime', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s ease, filter 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.brick-link-btn:hover {
    transform: translateY(-2px);
    background: rgba(205, 107, 68, 0.98);
    color: #ffe8bd;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.brick-link-btn:active {
    transform: translateY(2px) scale(0.97);
    border-bottom-width: 1.5px;
    filter: brightness(0.95);
}

.brick-link-btn.soon-btn {
    background: rgba(168, 107, 74, 0.9);
}


/* ==========================================================================
   3B. AMBIENT FLOWING WATER EFFECT (OUTSIDE MOVIE ROLL FILM BORDERS)
   ========================================================================== */

/* Outer water wings that fill the margins outside the 1000px page */
.water-wing {
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - 1000px) / 2);
    min-width: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgba(156, 200, 232, 0.18) 0%, 
        rgba(130, 185, 225, 0.32) 40%, 
        rgba(110, 175, 220, 0.38) 70%, 
        rgba(156, 200, 232, 0.22) 100%);
    opacity: 0.92;
}

.water-left {
    left: 0;
    border-right: 1px solid rgba(156, 200, 232, 0.45);
    box-shadow: inset -8px 0 16px rgba(156, 200, 232, 0.3);
}

.water-right {
    right: 0;
    border-left: 1px solid rgba(156, 200, 232, 0.45);
    box-shadow: inset 8px 0 16px rgba(156, 200, 232, 0.3);
}

/* Continuous vertical flow container */
.water-stream-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.water-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    will-change: transform;
}

/* Base undulating blue water current */
.layer-base {
    fill: rgba(156, 200, 232, 0.42);
    animation: water-flow-down 9s linear infinite;
}

/* Mid translucent water wave ribbon */
.layer-mid {
    fill: rgba(200, 232, 255, 0.48);
    animation: water-flow-down 6s linear infinite;
    opacity: 0.85;
}

/* Surface shimmer ripple */
.layer-shimmer {
    fill: rgba(110, 175, 220, 0.28);
    animation: water-flow-down 13s linear infinite;
}

/* Endless seamless vertical flowing water keyframes */
@keyframes water-flow-down {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* On smaller screens where the page touches viewport edges, hide outer water wings */
@media (max-width: 1060px) {
    .water-wing {
        display: none;
    }
}


/* ==========================================================================
   4. HEADINGS & HIGHLIGHT TEXT
   ========================================================================== */

h2 {
    font-family: 'GoodFriend', Gaegu, 'Comic Sans MS', cursive, sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 4vw, 34px);
    text-align: center;
    margin: 0;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

/* Star/sparkle SVGs on the sides of headings */
h2 svg {
    width: 44px;
    height: 44px;
    flex: none;
}

/* Right-side star SVG is flipped horizontally */
h2 svg.r {
    transform: scaleX(-1);
}

/* Orange text accent */
.o {
    color: var(--orange);
}

/* Pink text accent with gentle floating wiggle */
.p {
    color: var(--pink);
    display: inline-block;
    animation: lovely-wiggle 2.5s ease-in-out infinite;
}

/* Floating wiggle keyframe animation */
@keyframes lovely-wiggle {
    0%, 100% {
        transform: translateY(0px) rotate(-3deg);
    }
    50% {
        transform: translateY(-5px) rotate(3deg);
    }
}


/* ==========================================================================
   5. GENERAL SECTION STYLING & DECORATIONS
   ========================================================================== */

section {
    position: relative;
    padding: 44px 0 56px;
    min-height: 620px;
    overflow: hidden;
}

/* Dashed divider line between sections */
section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--clay) 0 24px, transparent 24px 36px);
}

/* Common clock decorations */
.clock {
    position: absolute;
    width: 48px;
    bottom: 14px;
}

.clock.a {
    left: 10px;
}

.clock.b {
    right: 10px;
}

/* Helper class for absolute positioned graphics */
.abs {
    position: absolute;
    height: auto;
}


/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
    min-height: 660px;
}

/* Center paper note wrapper & letter image */
.hero .letter-wrap,
.hero .paper {
    left: 50%;
    transform: translateX(-50%);
    top: 110px;
    width: min(300px, 34%);
    z-index: 2;
}

.hero .letter-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .letter-wrap .paper {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
}

/* ==========================================================================
   6.1 SUNLIGHT RAYS & WARM HALO (Emanating from exact middle of the letter)
   ========================================================================== */

.sunburst-halo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(650px, 85vw);
    height: min(650px, 85vw);
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

/* Soft central golden glow bloom */
.sun-core-glow {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 60, 0.42) 0%, rgba(255, 180, 50, 0.2) 45%, transparent 72%);
    animation: sun-pulse 4.5s ease-in-out infinite alternate;
}

/* Primary radiating sunbeams */
.sun-rays {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(245, 166, 35, 0.25) 0deg 9deg,
        transparent 9deg 18deg,
        rgba(255, 198, 88, 0.32) 18deg 28deg,
        transparent 28deg 36deg
    );
    -webkit-mask-image: radial-gradient(circle at center, black 18%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0.3) 65%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 18%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0.3) 65%, transparent 80%);
    animation: sun-spin 60s linear infinite;
    will-change: transform;
}

/* Secondary fine shimmer rays spinning in reverse */
.sun-rays-secondary {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 15deg,
        rgba(255, 230, 140, 0.16) 0deg 5deg,
        transparent 5deg 15deg,
        rgba(240, 150, 40, 0.15) 15deg 22deg,
        transparent 22deg 30deg
    );
    -webkit-mask-image: radial-gradient(circle at center, black 25%, transparent 72%);
    mask-image: radial-gradient(circle at center, black 25%, transparent 72%);
    animation: sun-spin-reverse 45s linear infinite;
    will-change: transform;
}

@keyframes sun-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes sun-spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes sun-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Hero left photo cutout (Photo mine 1) */
.hero .m1 {
    left: 8%;
    top: 240px;
    width: min(190px, 22%);
}

/* Hero right photo cutout (Photo mine 2) */
.hero .m2 {
    right: 8%;
    top: 230px;
    width: min(180px, 21%);
}

/* Sparkle stars */
.hero .sp1 {
    left: 7%;
    top: 44px;
    width: 56px;
}

.hero .sp2 {
    right: 7%;
    top: 44px;
    width: 56px;
}

/* Hero bottom quote tagline */
.tag {
    position: absolute;
    bottom: 42px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'GoodFriend', Gaegu, cursive, sans-serif;
    font-size: 20px;
    text-decoration: underline;
}


/* ==========================================================================
   7. WHO AM I SECTION
   ========================================================================== */

.who {
    min-height: 660px;
}

/* Cursive handwriting style for Who am I title */
.who h2 {
    font-family: 'GoodFriend', Gaegu, 'Comic Sans MS', cursive, sans-serif;
}

/* Bio description container */
.who .txt {
    font-family: 'Special Elite', 'Courier Prime', monospace;
    font-weight: 500;
    text-transform: uppercase;
    max-width: 480px;
    margin: 46px 30px 0 300px;
    text-align: center;
    font-size: 15px;
    line-height: 1.85;
}

.who .txt p {
    margin: 0 0 22px;
}

/* Text highlight colors in bio */
.rose {
    color: var(--rose);
}

.clay {
    color: var(--clay);
}

/* Mirror selfie photo cutout (Photo mine 3) */
.who .mir {
    left: 8%;
    top: 150px;
    width: min(190px, 24%);
}

/* Sitting photo cutout (Photo mine 4) */
.who .sit {
    right: 0;
    bottom: 0;
    width: min(150px, 18%);
}


/* ==========================================================================
   8. WORKS SECTION
   ========================================================================== */

.works {
    min-height: 700px;
}

/* Two-column layout grid for project showcase */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 760px;
    margin: 52px auto 0;
    position: relative;
}

/* Decorative center spine image between project columns */
.grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -20px;
    bottom: -60px;
    width: 40px;
    margin-left: -20px;
    background: url('images/img4.webp') center / contain no-repeat;
}

/* Side container holding 2x2 app icons */
.side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    align-content: start;
}

/* Individual project app link */
.app {
    text-align: center;
    font-family: 'GoodFriend', Gaegu, cursive, sans-serif;
    font-size: 17px;
    line-height: 1.2;
    color: inherit;
    text-decoration: none;
}

/* Project icon thumbnail rounded tile */
.app .t {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 34%;
    overflow: hidden;
    margin: 0 auto 12px;
    background-color: #ffffff;
    transition: transform 0.2s;
}

/* Hover and focus zoom on project icon */
.app:hover .t,
.app:focus-visible .t {
    transform: scale(1.06);
}

.app:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 4px;
    border-radius: 12px;
}

.app img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Loading spinner placeholder */
.spin {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.spin i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 5px dotted #999999;
    animation: s 1.4s linear infinite;
}

@keyframes s {
    to {
        transform: rotate(360deg);
    }
}

/* Standing cutout in jacket and tie (Photo mine 5) */
.works .stand {
    right: 0;
    bottom: 0;
    width: min(125px, 15%);
}


/* ==========================================================================
   8.5 THINGS I LOVE / STUFF I LIKE SECTION (Collectible Book & Movie Cards)
   ========================================================================== */

.love {
    min-height: 520px;
    position: relative;
    padding: 44px 0 56px;
}

.love-sub {
    text-align: center;
    font-family: 'GoodFriend', Gaegu, cursive, sans-serif;
    color: var(--clay);
    font-size: 20px;
    margin: 14px 0 28px;
    letter-spacing: 0.02em;
}

/* Horizontal Showcase Carousel Wrapper with Navigation Arrows */
.love-showcase {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 46px;
}

/* Horizontal Scroll Track */
.love-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 10px 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.love-track::-webkit-scrollbar {
    display: none;
}

/* Book / Collectible Card */
.love-card {
    flex: 0 0 200px;
    width: 200px;
    height: 310px;
    scroll-snap-align: start;
    background: #fdfbf7;
    border: 2px solid rgba(26, 20, 16, 0.15);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(26, 20, 16, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    user-select: none;
}

/* Card Spine / Physical Book Edge Highlight */
.love-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 4;
}

/* Focus Hover Effect: smoothly elevates and glows */
.love-card:hover,
.love-card:focus-visible {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 30px rgba(26, 20, 16, 0.2), 0 0 16px rgba(235, 108, 44, 0.22);
    border-color: var(--orange);
    z-index: 5;
    outline: none;
}

/* Category Badge (Book / Movie / Object) */
.love-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(26, 20, 16, 0.75);
    backdrop-filter: blur(4px);
    color: #fff9f0;
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 3;
}

/* Card Cover Image Container */
.love-cover {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: #241d18;
}

.love-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.love-card:hover .love-cover img {
    transform: scale(1.05);
}

/* Card Bottom Info Bar */
.love-info {
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1.5px dashed rgba(26, 20, 16, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.love-title {
    font-family: 'GoodFriend', Gaegu, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.love-meta {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    color: var(--rose);
    margin-top: 2px;
    text-transform: uppercase;
}

/* Carousel Navigation Arrows */
.love-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--ink);
    box-shadow: 2px 3px 0 var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
    color: var(--ink);
}

.love-arrow:hover {
    background: #ffffff;
    transform: translateY(-52%) scale(1.08);
    box-shadow: 2px 4px 0 var(--ink);
}

.love-arrow:active {
    transform: translateY(-48%) scale(0.96);
    box-shadow: 1px 1px 0 var(--ink);
}

.love-arrow.prev {
    left: 4px;
}

.love-arrow.next {
    right: 4px;
}

.love-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--ink);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   9. CONNECT SECTION & ORBITING SOCIAL MEDIA PLATE
   ========================================================================== */

.connect {
    min-height: 760px;
}

/* Subtitle under connect heading */
.sub {
    text-align: center;
    font-family: 'GoodFriend', Gaegu, cursive, sans-serif;
    color: var(--sky);
    font-size: 19px;
    margin: 34px 0 0;
}

/* Serving plate container */
.plate {
    position: relative;
    width: min(480px, 70%);
    aspect-ratio: 1;
    margin: 26px auto 0;
}

.plate > img {
    width: 100%;
    display: block;
}

/* Centerpiece WhatsApp Icon in the middle of the plate */
.plate-center-wa {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    font-family: 'GoodFriend', Gaegu, cursive, sans-serif;
    font-size: 15px;
    font-weight: 700;
    z-index: 8;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}

.plate-center-wa img {
    width: 60px;
    height: 60px;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(26, 20, 16, 0.22));
    transition: transform 0.3s ease;
}

.plate-center-wa span {
    margin-top: 4px;
    background: rgba(255, 239, 214, 0.9);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(26, 20, 16, 0.15);
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: 0.03em;
}

.plate-center-wa:hover {
    transform: translate(-50%, -50%) scale(1.12);
    filter: drop-shadow(0 10px 18px rgba(37, 211, 102, 0.4));
}

.plate-center-wa:hover img {
    transform: scale(1.05);
}

/* 1. Rotates the invisible wheel clockwise around the plate */
.orbit-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin-orbit 30s linear infinite;
}

/* 2. Counter-spins the social icons so they stay right-side up */
.soc {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'GoodFriend', Gaegu, cursive, sans-serif;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    width: 70px;
    animation: anti-spin 30s linear infinite;
}

/* 3. Subtle floating bobbing on social icons */
.soc img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 2px;
    border-radius: 24%;
    transition: transform 0.2s;
    animation: float 3s ease-in-out infinite alternate;
}

/* Circular avatar style for Facebook and TikTok */
.soc.c img {
    border-radius: 50%;
}

.soc:hover img,
.soc:focus-visible img {
    transform: scale(1.12) !important;
}

.soc:focus-visible {
    outline: 3px solid var(--pink);
    border-radius: 10px;
}

/* Pause the orbit rotation when user hovers over the plate */
.orbit-track:hover,
.orbit-track:hover .soc,
.orbit-track:hover .soc img {
    animation-play-state: paused;
}

/* Orbit Animation Keyframes */
@keyframes spin-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes anti-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(4px);
    }
}

/* Tableware Jiggle Animations */
.connect .bot {
    left: 9%;
    top: 150px;
    width: min(100px, 13%);
    animation: jiggle 2s ease-in-out infinite;
}

.connect .fork {
    right: 9%;
    top: 150px;
    width: min(120px, 15%);
    animation: jiggle 2s ease-in-out infinite;
}

@keyframes jiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

.connect .chk {
    left: 8%;
    top: 430px;
    width: min(130px, 16%);
    animation: jiggle2 4s ease-in-out infinite;
}

.connect .can {
    right: 8%;
    top: 440px;
    width: min(140px, 17%);
    animation: jiggle2 3s ease-in-out infinite;
}

@keyframes jiggle2 {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(16deg);
    }
}

/* Footer "The end..." text */
.end {
    text-align: center;
    font-family: 'GoodFriend', Gaegu, cursive, sans-serif;
    font-size: 32px;
    margin: 26px 0 0;
}


/* ==========================================================================
   10. HERO PHOTO CUTOUTS 3D HOVER & BOUNCE EFFECTS
   ========================================================================== */

/* Smooth spring bounce transition and pointer cursor ONLY on the 2 Hero photos beside the center letter */
.hero .m1,
.hero .m2 {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    cursor: pointer;
}

/* Hover zoom and drop-shadow only for the 2 photos beside the middle letter (Photo mine 1 & Photo mine 2) */
.hero .m1:hover,
.hero .m2:hover {
    transform: translateY(-15px) scale(1.05);
    filter: drop-shadow(0px 20px 15px rgba(0, 0, 0, 0.25));
    z-index: 10;
}


/* ==========================================================================
   11. MOBILE RESPONSIVE LAYOUT (SCREEN WIDTH <= 640px)
   ========================================================================== */

@media (max-width: 640px) {
    .page {
        padding: 0 34px;
    }

    .matrix-rain-bg {
        left: 34px;
        right: 34px;
        opacity: 0.05;
    }

    .matrix-col {
        font-size: 11px;
    }

    .brick.brick-nav {
        padding: 6px 4px;
    }

    .brick-nav-links {
        gap: 6px;
    }

    .brick-link-btn {
        padding: 5px 8px;
        font-size: 11px;
        flex: 1 1 calc(33.333% - 6px);
        text-align: center;
    }

    .film {
        width: 34px;
    }

    h2 svg {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .grid::before {
        display: none;
    }

    .hero .m1,
    .hero .m2 {
        top: auto;
        bottom: 90px;
    }

    .hero .letter-wrap,
    .hero .paper {
        width: 56%;
    }

    .who .mir {
        position: static;
        display: block;
        margin: 20px auto 0;
        width: 140px;
    }

    .who .sit {
        width: 110px;
    }

    .connect .bot,
    .connect .fork,
    .connect .chk,
    .connect .can {
        display: none;
    }

    .soc {
        font-size: 12px;
        width: 56px;
    }

    .soc img {
        width: 36px;
        height: 36px;
    }

    .works .stand {
        width: 140px;
        right: -10px;
        bottom: -20px;
    }

    .love-showcase {
        padding: 0 32px;
    }

    .love-card {
        flex: 0 0 170px;
        width: 170px;
        height: 275px;
    }

    .love-cover {
        height: 190px;
    }

    .love-title {
        font-size: 16px;
    }

    .love-arrow {
        width: 32px;
        height: 32px;
    }

    .love-arrow.prev {
        left: 0;
    }

    .love-arrow.next {
        right: 0;
    }

    .plate-center-wa img {
        width: 44px;
        height: 44px;
    }

    .plate-center-wa {
        font-size: 12px;
    }
}


/* ==========================================================================
   12. ACCESSIBILITY: REDUCED MOTION PREFERENCE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .spin i,
    .orbit-track,
    .soc,
    .soc img,
    .connect .bot,
    .connect .fork,
    .connect .chk,
    .connect .can,
    .p,
    .water-svg-layer,
    .film-particles::before,
    .film-particles::after,
    .flow-down,
    .flow-up,
    .sun-rays,
    .sun-rays-secondary,
    .sun-core-glow {
        animation: none;
    }

    .m1, .m2,
    .plate-center-wa,
    .plate-center-wa img,
    .love-card,
    .love-arrow,
    .love-cover img {
        transition: none;
    }
}


/* ==========================================================================
   13. BLOG PAGE STYLES (Montserrat + Merriweather Editorial Design)
   ========================================================================== */

.blog-section {
    min-height: 800px;
    padding: 44px 0 70px;
    position: relative;
    z-index: 2;
    text-transform: none;
}

.blog-subtitle {
    text-align: center;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    font-style: italic;
    color: var(--clay);
    margin: 12px 0 36px;
    letter-spacing: 0.01em;
    text-transform: none;
}

/* Control Bar Card (Search, Sort, Filters) */
.blog-controls-card {
    background: #ffffff;
    border: 2px solid rgba(26, 20, 16, 0.14);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 0 auto 36px;
    max-width: 820px;
    box-shadow: 0 8px 24px rgba(26, 20, 16, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-controls-top {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-search-box {
    flex: 1 1 260px;
    position: relative;
}

.blog-search-box input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: #fffdfa;
    border: 1.5px solid rgba(26, 20, 16, 0.22);
    border-radius: 8px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    box-sizing: border-box;
    outline: none;
    text-transform: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(235, 108, 44, 0.15);
}

.blog-search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: rgba(26, 20, 16, 0.5);
    pointer-events: none;
}

.blog-controls-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.blog-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-select,
.blog-date-input {
    padding: 9px 12px;
    background: #fffdfa;
    border: 1.5px solid rgba(26, 20, 16, 0.22);
    border-radius: 8px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    outline: none;
    cursor: pointer;
    text-transform: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-select:focus,
.blog-date-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(235, 108, 44, 0.15);
}

.blog-reset-btn {
    padding: 9px 14px;
    background: transparent;
    border: 1.5px dashed rgba(26, 20, 16, 0.3);
    border-radius: 8px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--clay);
    cursor: pointer;
    text-transform: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-reset-btn:hover {
    background: rgba(235, 108, 44, 0.1);
    color: var(--orange);
    border-color: var(--orange);
}

.blog-count-badge {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--clay);
    background: rgba(255, 239, 214, 0.85);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(26, 20, 16, 0.12);
}

/* Blog Posts Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 26px;
    max-width: 820px;
    margin: 0 auto;
}

/* Clickable Post Card */
.blog-card {
    background: #ffffff;
    border: 2px solid rgba(26, 20, 16, 0.14);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(26, 20, 16, 0.07);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--pink) 50%, var(--sky) 100%);
    opacity: 0.85;
}

.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 30px rgba(26, 20, 16, 0.16), 0 0 16px rgba(235, 108, 44, 0.18);
    border-color: var(--orange);
    outline: none;
}

.blog-card-cover {
    width: calc(100% + 48px);
    margin: -24px -24px 16px -24px;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid rgba(26, 20, 16, 0.12);
    display: block;
}

.blog-card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.blog-date-badge {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 12px;
    color: var(--clay);
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-category-badge {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(26, 20, 16, 0.07);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.blog-card-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-transform: none;
}

.blog-card-excerpt {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(26, 20, 16, 0.85);
    margin: 0 0 18px;
    flex-grow: 1;
    text-transform: none;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px dashed rgba(26, 20, 16, 0.12);
    padding-top: 12px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--rose);
}

.blog-read-more-link {
    font-weight: 700;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-read-more-link {
    transform: translateX(4px);
}

/* Empty state message */
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 2px dashed rgba(26, 20, 16, 0.2);
    border-radius: 14px;
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--clay);
    font-size: 15px;
    font-weight: 600;
}

/* Reading Modal View */
.blog-modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 14, 12, 0.75);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-modal.open {
    opacity: 1;
    visibility: visible;
}

.blog-modal-content {
    background: #ffefd6;
    color: var(--ink);
    border: 3px solid var(--ink);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 8px 8px 0 var(--ink);
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 38px 34px;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: none;
}

.blog-modal.open .blog-modal-content {
    transform: scale(1);
}

.blog-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff9f0;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.blog-modal-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--orange);
}

.blog-modal-date {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--clay);
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-transform: none;
}

.blog-modal-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 18px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: none;
}

.blog-modal-body {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink);
    border-top: 1.5px dashed rgba(26, 20, 16, 0.2);
    padding-top: 20px;
    text-transform: none;
}

.blog-modal-cover {
    width: calc(100% + 68px);
    margin: -38px -34px 20px -34px;
    max-height: 300px;
    object-fit: cover;
    border-bottom: 2.5px solid var(--ink);
    display: none;
}

.blog-modal-body p {
    margin: 0 0 16px;
}

.blog-modal-body img,
.blog-inlined-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 6px 18px rgba(26, 20, 16, 0.1);
    border: 1.5px solid rgba(26, 20, 16, 0.18);
    display: block;
}

.blog-modal-body h2 {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 26px 0 12px;
    color: var(--ink);
}

.blog-modal-body h3 {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--ink);
}

.blog-modal-body blockquote {
    border-left: 4px solid var(--orange);
    background: rgba(235, 108, 44, 0.08);
    padding: 12px 18px;
    margin: 18px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.blog-modal-body ul,
.blog-modal-body ol {
    padding-left: 26px;
    margin-bottom: 16px;
}

/* Mobile adjustments for blog */
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-controls-card {
        padding: 16px;
    }
    .blog-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-filter-group {
        width: 100%;
    }
    .blog-select,
    .blog-date-input {
        flex: 1;
    }
    .blog-modal-content {
        padding: 24px 18px;
    }
    .blog-modal-title {
        font-size: 23px;
    }
}
