/* Global Variables */
:root {
    --color-bg: #FDFBF7; /* Warm, creamy off-white */
    --color-text: #111111; /* Soft black */
    
    /* Extracted Brand Accent Colors */
    --accent-lime: #C9E621;
    --accent-orange: #FF7B1E;
    --accent-blue: #4A9CFF;
    --accent-cyan: #3DD5FF;
    --accent-pink: #F9B6D8;
    
    /* Consistent Pastel Sticky Note Colors */
    --pastel-yellow: #FFF6C3;
    --fold-yellow: #E6DCAC;
    
    --pastel-peach: #FFE5D9;
    --fold-peach: #E5CDBC;
    
    --pastel-mint: #D8F8E1;
    --fold-mint: #BFDFC6;
    
    /* Sticky notes — match hero reference (yellow / lavender / mint) */
    --sticky-lime: #FFD56B;
    --sticky-rose: #D196FF;
    --sticky-aqua: #86E3A1;
    /* Darker mint for large type / metrics on cream (higher contrast than --sticky-aqua) */
    --sticky-aqua-contrast: #2a6b47;

    /* Layered elevation (no 1px “ring”; reads as depth not border) */
    --sticky-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 1px 2px rgba(15, 18, 28, 0.05),
        0 3px 6px -2px rgba(15, 18, 28, 0.06),
        0 10px 22px -6px rgba(15, 18, 28, 0.08),
        0 22px 48px -14px rgba(15, 18, 28, 0.07);
    --sticky-shadow-drag:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(15, 18, 28, 0.06),
        0 8px 18px -4px rgba(15, 18, 28, 0.1),
        0 20px 44px -10px rgba(15, 18, 28, 0.1),
        0 36px 72px -18px rgba(15, 18, 28, 0.08);
    
    --color-border: rgba(0, 0, 0, 0.08);
    
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Inter', sans-serif;
    /* Libre Baskerville at 40px */
    --heading-40-tracking: -0.6px;

    /* ~20px of testimonial cards visible at bottom of first screen (scroll hint) */
    --hero-below-fold-peek: 20px;
    /* Work cards + testimonial cards (shared neutral surface) */
    --work-surface: #f2efe9;
    --work-surface-hover: color-mix(in srgb, var(--work-surface) 88%, var(--color-text) 12%);

    /* Card surfaces — shared radius, padding, and in-card type */
    --card-radius: 24px;
    --card-padding: 3rem;
    --card-title-size: 24px;
    --card-title-line-height: 1.35;
    --card-title-tracking: -0.02em;
    --card-body-size: 18px;
    --card-body-line-height: 1.5;
    /* Hero stickies: same type scale, slightly tighter padding for fixed 250×250 tiles */
    --card-padding-compact: 2rem;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image: radial-gradient(rgba(0,0,0,0.05) 2px, transparent 2px);
    background-size: 30px 30px;
}

/* Playful text selection color */
::selection {
    background-color: var(--sticky-aqua);
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
}

/* Inter: use medium (500) for emphasis; avoid synthetic bold on body type */
strong,
b {
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(253,251,247,0.85);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: inherit;
}

a.logo {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.75rem;
        column-gap: 1.25rem;
    }
}

/* Fixed nav: keep in-page hash targets visible below the bar */
#hero,
#work,
#portfolio-gallery,
#about,
#cv {
    scroll-margin-top: 6rem;
}

.nav-btn {
    background-color: transparent;
    color: var(--color-text) !important;
    border: 1px solid var(--color-text);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
    border: 2px solid var(--color-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--color-border);
    color: var(--color-text);
    border: 2px solid transparent;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Badges */
.pill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 2rem;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.pill-yellow { 
    background-color: var(--accent-lime); 
    box-shadow: 2px 2px 0px var(--color-text); 
    border: none; 
}


/* =========================================
   Final Hero Layout
   ========================================= */
.hero-final {
    /* Slightly less than 100svh so “What the teams say” + card strip show below the fold */
    min-height: calc(100svh - var(--hero-below-fold-peek));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
    padding: 6rem 0 3rem;
    text-align: center;
    overflow: visible;
}

.hero-intro {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 auto 1.25rem;
    max-width: 650px;
}

.hero-title {
    font-size: 60px;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
}

.scribble {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-text);
    line-height: 1.7;
}

/* =========================================
   Sticky Notes Container
   ========================================= */
.stickers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* lets clicks pass through to text */
    overflow: visible;
}

/* Base Sticky Note */
.sticky-note {
    position: absolute;
    width: 250px;
    height: 250px;
    padding: var(--card-padding-compact);
    background-color: var(--note-bg);
    box-shadow: var(--sticky-shadow);
    pointer-events: auto; /* re-enable interaction */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.sticky-note:not(.is-dragging) {
    transition: transform 0.25s ease-out;
}

.sticky-note.is-dragging {
    cursor: grabbing;
    transition: none;
    will-change: left, top;
    box-shadow: var(--sticky-shadow-drag);
}

/* Color Modifiers (Using vibrant extracted colors with slight transparency for text legibility, or full solid) */
.bg-yellow { --note-bg: var(--sticky-lime); }
.bg-peach  { --note-bg: var(--sticky-rose); }
.bg-mint   { --note-bg: var(--sticky-aqua); }

/* Sticky Note Typography */
.sticky-content h3 {
    font-family: var(--font-body);
    font-size: var(--card-title-size);
    font-weight: 500;
    line-height: var(--card-title-line-height);
    letter-spacing: var(--card-title-tracking);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.sticky-content p {
    font-size: var(--card-body-size);
    line-height: var(--card-body-line-height);
    color: var(--color-text);
}

/* Positioning & Rotations */
.sticky-1 {
    top: 15%;
    left: 6%;
    transform: rotate(-5deg);
}

.sticky-2 {
    bottom: 12%;
    left: 14%;
    transform: rotate(4deg);
}

.sticky-3 {
    top: 30%;
    right: 5%;
    transform: rotate(7deg);
}


/* Tape & Pin Elements */
.tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 25px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 2;
}

.tape-angled { transform: translateX(-50%) rotate(-4deg); }
.tape-straight { transform: translateX(-50%) rotate(2deg); }

.pin {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-pink);
    border-radius: 50%;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.2), inset -2px -2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 1024px) {
    .sticky-1 { top: 10%; left: 0%; }
    .sticky-2 { bottom: 10%; left: 5%; }
    .sticky-3 { top: 30%; right: -5%; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }

    .sticky-1 { top: 8%; left: 2%; }
    .sticky-2 { bottom: 8%; left: 6%; }
    .sticky-3 { top: 22%; right: 2%; }

    .button-group { flex-direction: column; }
}

/* Very small phones: draggable hero notes crowd the headline */
@media (max-width: 480px) {
    .hero-final .stickers-container {
        display: none;
    }
}

/* =========================================
   General Section Styles
   ========================================= */
.section-padding {
    padding: 8rem 0;
    position: relative;
}

/* Main content above any hero overflow (sticky notes use high z-index inside the hero) */
#testimonials,
#work,
#about,
.portfolio-strip-section {
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    letter-spacing: var(--heading-40-tracking);
    margin-bottom: 16px;
    color: var(--color-text);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.45;
    color: var(--color-text);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Testimonials: no top padding (hero “peek” shows carousel); wide containers */
#testimonials {
    padding-top: 0;
}
#testimonials .container,
#work .container {
    max-width: 1256px;
}

.testimonials-tagline-wrap {
    text-align: center;
    margin: 0 auto;
    padding-top: 0.5rem;
    /* Mask the page dot-grid behind the narrow tagline */
    background-color: var(--color-bg);
}

.testimonials-tagline {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
    color: var(--color-text);
    max-width: 42rem;
    margin: 0 auto;
}

/* =========================================
   Portfolio gallery strip (overlapping tilted tiles)
   ========================================= */
.portfolio-strip-section {
    position: relative;
    padding: 2rem 0 5.5rem;
}

.portfolio-strip-container {
    max-width: 1256px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portfolio-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 1rem 0;
}

.portfolio-strip-card {
    --strip-size: clamp(76px, 8.5vw, 128px);
    position: relative;
    flex: 0 0 var(--strip-size);
    width: var(--strip-size);
    height: var(--strip-size);
    box-sizing: border-box;
    padding: 5px;
    background: #fff;
    border-radius: calc(var(--card-radius) / 2);
    box-shadow:
        2px 10px 24px rgba(15, 18, 28, 0.14),
        0 0 0 1px rgba(15, 18, 28, 0.05);
}

.portfolio-strip-card:nth-child(n + 2) {
    margin-left: calc(var(--strip-size) * -0.14);
}

.portfolio-strip-card:nth-child(odd) {
    transform: rotate(-4.5deg);
}

.portfolio-strip-card:nth-child(even) {
    transform: rotate(4.5deg);
}

.portfolio-strip-card:nth-child(1) { z-index: 1; }
.portfolio-strip-card:nth-child(2) { z-index: 2; }
.portfolio-strip-card:nth-child(3) { z-index: 3; }
.portfolio-strip-card:nth-child(4) { z-index: 4; }
.portfolio-strip-card:nth-child(5) { z-index: 5; }
.portfolio-strip-card:nth-child(6) { z-index: 6; }

.portfolio-strip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--card-radius) / 3);
    display: block;
}

@media (max-width: 900px) {
    .portfolio-strip-inner {
        justify-content: flex-start;
        overflow-x: auto;
        padding-left: 0.5rem;
        padding-right: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .portfolio-strip-container {
        padding-right: 0;
    }
}

/* =========================================
   Testimonials (Carousel)
   ========================================= */
#testimonials .carousel-container {
    padding: 0 0 1.5rem;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Align the first card with the 1256px container */
    padding: 0 max(2rem, calc(50vw - 628px));
}

@media (min-width: 1700px) {
    /* Once the screen is wider than the 4 cards (1616px + padding), perfectly center the whole group */
    .carousel-container {
        display: flex;
        justify-content: center;
    }
    .carousel-track {
        padding: 0;
    }
}

.testimonial-card {
    scroll-snap-align: start;
    width: 380px;
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    white-space: normal;
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--color-text);
    background-color: var(--work-surface);
    box-shadow: none;
}

/* Background color utilities (e.g. metric pills) */
.bg-lime { background-color: var(--accent-lime); --note-bg: var(--accent-lime); }
.bg-orange { background-color: var(--accent-orange); --note-bg: var(--accent-orange); }
.bg-blue { background-color: var(--accent-blue); --note-bg: var(--accent-blue); }
.bg-cyan { background-color: var(--accent-cyan); --note-bg: var(--accent-cyan); }
.bg-pink { background-color: var(--accent-pink); --note-bg: var(--accent-pink); }

.quote {
    font-family: var(--font-body);
    font-size: var(--card-body-size);
    font-style: normal; /* Removed italic */
    line-height: var(--card-body-line-height);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    color: var(--color-text);
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    font-family: var(--font-body);
    min-width: 0;
}

.author-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

/* Same type size as role; regular weight to differentiate from the title */
.author-org {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

/* =========================================
   Work Section (Large Cards)
   ========================================= */
.work-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px gap */
}

.work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--card-radius);
}

.work-card-link:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

.work-card {
    background-color: var(--work-surface);
    border: none;
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: none;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.work-card-link:hover .work-card {
    background-color: var(--work-surface-hover);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .work-card {
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }

    .work-visual-composition {
        transition: none;
    }

    .work-card-link:hover .work-card,
    .work-card-link:hover .work-visual-composition {
        transform: none;
    }
}

.work-card.featured {
    position: relative;
    overflow: visible; /* changed from hidden so floating elements can stick out */
    isolation: isolate;
}

/* FigJam-style (Variation 6) without multiplayer cursors, comments, or dot grid */
.work-card.featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
    pointer-events: none;
    z-index: 0;
    border-radius: var(--card-radius);
}

.work-card.featured .work-body.featured-body {
    position: relative;
    z-index: 1;
}

/* Selection frame around copy: neutral chrome, unconstrained bounding box */
.work-body.featured-body .v6-selected-text.featured-canvas-text {
    width: 100%;
    max-width: none;
    background: transparent; /* Remove squished white box */
    padding: 2rem 0; /* Add top/bottom padding to give the bounding box breathing room without constraining sides too much */
    box-shadow: none; /* remove box shadow so it looks like raw canvas text */
    transform: rotate(0deg); /* remove rotation from text block itself, keep it straight */
    align-self: end; /* Align to the bottom of the card */
}

/* Draw a faint dashed bounding box (Miro/Figjam style selection) */
.work-card.featured .v6-selection-bounds {
    border: 2px dashed rgba(17, 17, 17, 0.15);
    inset: -1.5rem -2rem; /* expand the bounding box out slightly past the text */
}

.work-card.featured .v6-handle {
    border: 2px solid rgba(17, 17, 17, 0.3);
    background: #fff;
}
/* Re-position handles since the inset changed */
.work-card.featured .v6-handle.nw { top: calc(-1.5rem - 6px); left: calc(-2rem - 6px); }
.work-card.featured .v6-handle.ne { top: calc(-1.5rem - 6px); right: calc(-2rem - 6px); }
.work-card.featured .v6-handle.sw { bottom: calc(-1.5rem - 6px); left: calc(-2rem - 6px); }
.work-card.featured .v6-handle.se { bottom: calc(-1.5rem - 6px); right: calc(-2rem - 6px); }

/* Floating Metric Pills */
.floating-pill {
    position: absolute;
    z-index: 10;
    font-size: 0.85rem; /* slightly smaller text */
    padding: 0.6rem 1.25rem;
    box-shadow: 2px 8px 24px rgba(0, 0, 0, 0.12);
}

.floating-pill.pill-1 {
    top: -20px;
    left: 20%;
    transform: rotate(-8deg);
}

.floating-pill.pill-2 {
    bottom: 20%;
    right: -30px;
    transform: rotate(6deg);
}

.floating-pill.pill-3 {
    bottom: -15px;
    left: 10%;
    transform: rotate(-4deg);
}

/* On hover, floating pills pop out more */
.floating-pill:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 100;
}

.work-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Arrow linking text to visual */
.v6-arrow {
    position: absolute;
    bottom: -2rem;
    right: -4rem;
    z-index: 10;
}

/* Featured work: layered composition (overlapping tilted cards, no outer panel) */
.work-visual-composition {
    width: 100%;
    transition: transform 0.35s ease;
}

.work-card-link:hover .work-visual-composition {
    transform: translate(3px, -2px);
}

.work-visual-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 100%;
}

.work-visual-secondary {
    position: absolute;
    width: 44%;
    aspect-ratio: 1;
    right: 5%;
    bottom: 10%;
    z-index: 3;
    transform: rotate(8deg);
    border: 6px solid #fff;
    border-radius: var(--card-radius);
    box-shadow: 2px 10px 24px rgba(15, 18, 28, 0.14);
    overflow: hidden;
    background: #fff;
}

.work-visual-secondary picture {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.work-visual-secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 38%;
    display: block;
}

.work-visual-primary {
    position: absolute;
    width: 76%;
    left: 6%;
    top: 6%;
    z-index: 1;
    transform: rotate(-7deg);
    transform-origin: center center;
}

.work-visual-primary picture {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    line-height: 0;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow:
        4px 14px 32px rgba(15, 18, 28, 0.16),
        0 0 0 1px rgba(15, 18, 28, 0.06);
}

.work-visual-primary .work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
    border: 6px solid #fff;
    border-radius: var(--card-radius);
    box-sizing: border-box;
    display: block;
    box-shadow: none;
}

/* --- Layout Variations for Work Cards --- */

/* Layout Two: Secondary top-left, Primary bottom-right */
.work-visual-stack--layout-two .work-visual-primary {
    top: auto;
    bottom: 5%;
    left: auto;
    right: 0%;
    transform: rotate(4deg);
}

.work-visual-stack--layout-two .work-visual-secondary {
    width: 50%;
    right: auto;
    left: 0%;
    bottom: auto;
    top: 5%;
    transform: rotate(-6deg);
    z-index: 3;
}

.work-visual-stack--layout-two .pill-1 { top: -10px; left: auto; right: 10%; transform: rotate(5deg); }
.work-visual-stack--layout-two .pill-2 { bottom: 30%; right: auto; left: -20px; transform: rotate(-5deg); }
.work-visual-stack--layout-two .pill-3 { bottom: -20px; left: 40%; transform: rotate(2deg); }

/* Layout Three: Primary centered/up, Secondary bottom-right overlap */
.work-visual-stack--layout-three .work-visual-primary {
    width: 80%;
    left: 10%;
    top: 5%;
    transform: rotate(2deg);
}

.work-visual-stack--layout-three .work-visual-secondary {
    width: 48%;
    right: 5%;
    bottom: 5%;
    transform: rotate(-5deg);
    z-index: 3;
}

.work-visual-stack--layout-three .pill-1 { top: 30%; left: -20px; transform: rotate(-6deg); }
.work-visual-stack--layout-three .pill-2 { bottom: -10px; right: 20%; left: auto; transform: rotate(4deg); }

.work-image {
    width: 100%;
    height: auto;
    display: block;
    border: 8px solid white;
    border-radius: var(--card-radius);
    box-shadow: 4px 12px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

.work-header {
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.work-meta {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.work-title {
    font-family: var(--font-body);
    font-size: var(--card-title-size);
    font-weight: 500;
    line-height: var(--card-title-line-height);
    letter-spacing: var(--card-title-tracking);
    color: var(--color-text);
}

.work-card.featured .work-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    letter-spacing: var(--heading-40-tracking);
    line-height: 1.1;
    text-wrap: balance;
}

.work-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Must follow .work-body so grid wins over flex (featured = text column | composition) */
.work-body.featured-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.work-body.featured-body .work-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.work-body.featured-body .work-header {
    margin-bottom: 0;
}

.work-desc {
    font-size: var(--card-body-size);
    line-height: var(--card-body-line-height);
    font-weight: 500;
    color: var(--color-text);
}

.work-details p {
    margin-bottom: 1rem;
}

.work-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.metric-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--note-bg); /* Use the note color variable defined by bg-* classes */
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.metric-pill:nth-child(1) { transform: rotate(-2deg); }
.metric-pill:nth-child(2) { transform: rotate(1deg); }
.metric-pill:nth-child(3) { transform: rotate(-1deg); }
.metric-pill:nth-child(4) { transform: rotate(2deg); }

.metric-pill:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

/* =========================================
   About Section
   ========================================= */
#about.section-padding {
    padding-top: 0;
    /* Extra space below the CTAs; keeps rhythm with the gallery gap above */
    padding-bottom: 9rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

.about-bio {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.about-bio p {
    margin: 0 0 1.5rem;
    color: var(--color-text);
    line-height: 1.7;
}

.about-bio p:last-of-type {
    margin-bottom: 0;
}

.about-bio .about-button-group {
    justify-content: center;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}

/* Responsive for bottom sections */
@media (max-width: 768px) {
    .work-card { padding: calc(var(--card-padding) * 0.67); }
    .work-body.featured-body { grid-template-columns: 1fr; }
}

/* ==========================================================================
   V6: The Multiplayer Canvas
   ========================================================================== */
.v6-canvas {
    background-color: var(--color-bg);
    background-image: radial-gradient(rgba(0,0,0,0.06) 2px, transparent 2px);
    background-size: 30px 30px;
    border-radius: 40px;
    padding: 6rem 4rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.v6-selected-text {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: rotate(-1deg);
}

.v6-selection-bounds {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid #0DA2E7;
    pointer-events: none;
}

.v6-handle {
    position: absolute;
    width: 10px; height: 10px;
    background: #fff;
    border: 2px solid #0DA2E7;
    box-sizing: border-box;
}

.v6-handle.nw { top: -5px; left: -5px; }
.v6-handle.ne { top: -5px; right: -5px; }
.v6-handle.sw { bottom: -5px; left: -5px; }
.v6-handle.se { bottom: -5px; right: -5px; }

.v6-arrow {
    flex-shrink: 0;
    margin-top: -4rem;
}

.v6-images {
    width: 45%;
    position: relative;
}

.v6-primary-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: rotate(2deg);
}

.v6-secondary-img {
    position: absolute;
    width: 180px;
    right: -2rem;
    bottom: -2rem;
    border-radius: 8px;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: rotate(-5deg);
}

.v6-cursor {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.v6-cursor-label {
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 0 12px 12px 12px;
    margin-left: 14px;
    margin-top: -4px;
}

.v6-cursor-1 { top: 25%; left: 35%; transform: rotate(-10deg); }
.v6-cursor-2 { bottom: 30%; right: 40%; }

.v6-stamp {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: rotate(-15deg);
    z-index: 10;
}

/* ==========================================================================
   V7: The Floating Nodes
   ========================================================================== */
.v7-board {
    background-color: #F6F5F3;
    border-radius: 40px;
    padding: 6rem 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v7-toolbar {
    position: absolute;
    top: 2rem;
    background: #fff;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.v7-tool {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    color: #555;
    cursor: pointer;
}

.v7-tool.active { background: #E5F4FF; color: #0DA2E7; }

.v7-nodes-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
}

.v7-node {
    position: relative;
}

.v7-node-text {
    width: 40%;
}

.v7-sticky-note {
    padding: var(--card-padding-compact);
    border-radius: var(--card-radius);
    box-shadow: 2px 6px 16px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    font-family: var(--font-body);
    font-size: var(--card-body-size);
    line-height: var(--card-body-line-height);
    color: #333;
}

.v7-node-image {
    width: 55%;
    background: #fff;
    padding: 1rem;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transform: rotate(1deg);
}

.v7-node-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.v7-metric-node {
    position: absolute;
    top: -15px; left: -20px;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: rotate(-5deg);
}

/* ==========================================================================
   V8: The Selected Asset (Blueprint)
   ========================================================================== */
.v8-blueprint {
    background-color: var(--color-bg);
    background-image: radial-gradient(rgba(0,0,0,0.06) 2px, transparent 2px);
    background-size: 30px 30px;
    padding: 6rem 4rem;
    border-radius: 40px;
}

.v8-raw-text {
    font-family: var(--font-body);
    font-size: 32px;
    color: #333;
    max-width: 700px;
    margin-bottom: 4rem;
}

.v8-composition {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.v8-asset-selected {
    position: relative;
    width: 65%;
    padding: 1rem;
    background: #fff;
}

.v8-blueprint-bounds {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid #9747FF;
    pointer-events: none;
}

.v8-handle {
    position: absolute;
    width: 10px; height: 10px;
    background: #fff;
    border: 2px solid #9747FF;
    box-sizing: border-box;
}

.v8-handle.nw { top: -5px; left: -5px; }
.v8-handle.ne { top: -5px; right: -5px; }
.v8-handle.sw { bottom: -5px; left: -5px; }
.v8-handle.se { bottom: -5px; right: -5px; }

.v8-asset-selected img {
    width: 100%;
    display: block;
}

.v8-comment {
    position: absolute;
    top: 30%;
    left: -3rem;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.v8-comment-pin {
    width: 32px; height: 32px;
    background: #FF7262;
    border-radius: 50% 50% 50% 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.v8-comment-bubble {
    background: #fff;
    padding: 1rem;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 250px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.v8-washi-image {
    position: relative;
    width: 30%;
    transform: rotate(4deg);
    background: #fff;
    padding: 0.5rem;
    box-shadow: 2px 12px 24px rgba(0,0,0,0.08);
}

.v8-washi-image img {
    width: 100%;
    display: block;
}

.v8-washi-tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    width: 80px;
    height: 25px;
    background: rgba(220,235,160,0.8); /* Semi-transparent lime tape */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 5;
}
/* Quick responsive fixes for new approaches */
@media (max-width: 768px) {
    .v6-canvas {
        flex-direction: column;
        padding: 2rem 1.5rem !important;
    }
    .v6-selected-text, .v6-images {
        width: 100%;
    }
    .v6-arrow {
        display: none;
    }
    .v7-floating-nodes {
        padding: 2rem 1.5rem !important;
    }
    .v7-board {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .v7-node {
        position: relative !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-bottom: 2rem;
    }
    .v7-connector {
        display: none;
    }
    .v8-blueprint {
        padding: 2rem 1.5rem !important;
    }
    .v8-composition {
        flex-direction: column;
        align-items: center;
    }
    .v8-asset-selected {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    .v8-washi-image {
        position: relative !important;
        right: auto !important;
        width: 100% !important;
    }
}
