/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-black: #000;
    --primary-white: #fff;
    --off-white: #f8f8f8;
    --accent-gray: #ccc;
    --marker-font: "Permanent Marker", cursive;
    --jersey-font: "Jersey 20", sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-text: 2px 2px 0px rgba(0,0,0,0.3);
    --shadow-text-light: 2px 2px 0px rgba(255,255,255,0.2);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--jersey-font);
    font-weight: 400;
    background-color: var(--off-white);
    color: var(--primary-black);
    line-height: 1.4;
    overflow-x: hidden;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes shake-hard {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    background-color: var(--primary-black);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transform: rotate(-0.5deg);
    margin-top: -5px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    transform: rotate(0.5deg);
}

.logo {
    color: var(--primary-white);
    font-family: var(--marker-font);
    font-size: 24px;
    text-decoration: none;
    transform: rotate(-1deg);
    text-shadow: var(--shadow-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    font-family: var(--marker-font);
    transform: rotate(var(--rotation, 0deg));
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-white);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links li:nth-child(1) a { --rotation: 1deg; }
.nav-links li:nth-child(2) a { --rotation: -0.5deg; }
.nav-links li:nth-child(3) a { --rotation: 1.5deg; }
.nav-links li:nth-child(4) a { --rotation: -1deg; }
.nav-links li:nth-child(5) a { --rotation: 0.8deg; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-white);
    cursor: pointer;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-white);
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ==========================================================================
   Section Titles (Shared)
   ========================================================================== */
h2.section-title,
.services-title,
.story-title,
.contact-title {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 30px;
    text-align: center;
    font-family: var(--marker-font);
    font-size: clamp(32px, 6vw, 44px);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 50px;
    transform: rotate(1deg);
    position: relative;
    text-shadow: var(--shadow-text-light);
}

h2.section-title::before,
h2.section-title::after,
.services-title::before,
.services-title::after,
.story-title::before,
.story-title::after,
.contact-title::before,
.contact-title::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid var(--primary-black);
    z-index: -1;
}

h2.section-title::before,
.services-title::before,
.story-title::before,
.contact-title::before {
    transform: rotate(-1.5deg);
    border-style: dotted;
}

h2.section-title::after,
.services-title::after,
.story-title::after,
.contact-title::after {
    transform: rotate(0.8deg);
    border-style: solid;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    font-family: var(--marker-font);
    display: inline-block;
    transform: rotate(-1deg);
    position: relative;
    text-shadow: var(--shadow-text-light);
}

.btn::before,
.btn::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-black);
    z-index: -1;
}

.btn::before {
    transform: rotate(-1deg);
    border-style: dashed;
}

.btn::after {
    transform: rotate(0.7deg);
    border-style: solid;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    margin-top: 80px;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-brand {
    text-align: center;
    margin-bottom: 50px;
}

.hero-brand h1 {
    font-family: var(--marker-font);
    font-size: clamp(40px, 8vw, 90px);
    margin-bottom: 20px;
    transform: rotate(1deg);
    letter-spacing: clamp(2px, 1vw, 6px);
    color: var(--primary-black);
    line-height: 0.85;
}

.hero-brand h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.tagline-boxes {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tagline-box {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 20px 40px;
    transform: rotate(var(--tagline-rotation, 0deg));
    position: relative;
    font-family: var(--marker-font);
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline-box::before,
.tagline-box::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid var(--primary-black);
    z-index: -1;
}

.tagline-box::before {
    transform: rotate(-1deg);
    border-style: dashed;
}

.tagline-box::after {
    transform: rotate(1.2deg);
    border-style: solid;
}

.tagline-box:nth-child(1) {
    --tagline-rotation: -1.5deg;
    background-color: var(--off-white);
    color: var(--primary-black);
}

.tagline-box:nth-child(2) {
    --tagline-rotation: 1deg;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-continuation {
    background-color: var(--off-white);
    position: relative;
}

/* Manifesto Box */
.manifesto-box {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 40px;
    transform: rotate(0.5deg);
    position: relative;
}

.manifesto-box::before,
.manifesto-box::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-black);
    z-index: -1;
}

.manifesto-box::before {
    transform: rotate(-0.7deg);
    border-style: dotted;
}

.manifesto-box::after {
    transform: rotate(1.1deg);
    border-style: solid;
}

.manifesto-box h2 {
    font-family: var(--marker-font);
    font-size: 28px;
    margin-bottom: 20px;
    text-transform: uppercase;
    transform: rotate(-1deg);
    letter-spacing: 3px;
    text-shadow: var(--shadow-text-light);
}

.manifesto-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: var(--jersey-font);
}

/* Vision Box */
.vision-box {
    background-color: var(--off-white);
    padding: 40px;
    transform: rotate(-0.5deg);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-box::before,
.vision-box::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid var(--primary-black);
    z-index: -1;
}

.vision-box::before {
    transform: rotate(-1deg);
    border-style: dashed;
}

.vision-box::after {
    transform: rotate(0.6deg);
    border-style: solid;
}

.vision-title {
    font-family: var(--marker-font);
    font-size: 28px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transform: rotate(1deg);
    text-shadow: var(--shadow-text);
}

.vision-text {
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--jersey-font);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 80px 0;
    transform: rotate(0.3deg);
    margin: 0;
    position: relative;
}

.services-title {
    background-color: var(--primary-white);
    color: var(--primary-black);
    transform: rotate(-1deg);
}

.services-title::before,
.services-title::after {
    border-color: var(--primary-white);
}

/* Process Section */
.process-section {
    margin: 60px 0;
}

h2.process-title {
    font-family: var(--marker-font);
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 2px;
    transform: rotate(0.5deg);
    color: var(--primary-white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--primary-white);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--marker-font);
    font-size: 24px;
    margin: 0 auto 20px;
    transform: rotate(var(--process-rotation, 0deg));
    border: 3px solid var(--primary-white);
}

.process-step:nth-child(1) .process-number { --process-rotation: -5deg; }
.process-step:nth-child(2) .process-number { --process-rotation: 8deg; }
.process-step:nth-child(3) .process-number { --process-rotation: -3deg; }
.process-step:nth-child(4) .process-number { --process-rotation: 6deg; }

.process-step h4 {
    font-family: var(--marker-font);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.process-step p {
    font-size: 14px;
    line-height: 1.4;
    font-family: var(--jersey-font);
}

/* Main Services */
.main-pack {
    font-family: var(--marker-font);
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
    transform: rotate(0.5deg);
}

.services-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 35px;
    border: 4px solid var(--primary-white);
    transform: rotate(var(--service-rotation, 0deg));
    position: relative;
}

.service-card:nth-child(1) { --service-rotation: -0.5deg; }
.service-card:nth-child(2) { --service-rotation: 0.8deg; }

.service-card h3 {
    font-family: var(--marker-font);
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    transform: rotate(1deg);
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: var(--jersey-font);
}

.service-list {
    list-style: none;
    font-family: var(--jersey-font);
}

.service-list li {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
    position: relative;
    font-family: var(--jersey-font);
}

.service-list li:before {
    content: "• ";
    font-weight: bold;
}

/* Side Hustle */
.side-hustle {
    margin-top: 50px;
}

.side-hustle h3 {
    font-family: var(--marker-font);
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
    transform: rotate(-0.5deg);
}

.hustle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.hustle-item {
    background-color: var(--off-white);
    color: var(--primary-black);
    padding: 25px;
    border: 3px solid var(--primary-white);
    transform: rotate(var(--hustle-rotation, 0deg));
}

.hustle-item:nth-child(1) { --hustle-rotation: 0.8deg; }
.hustle-item:nth-child(2) { --hustle-rotation: -0.6deg; }

.hustle-item h4 {
    font-family: var(--marker-font);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
    transform: rotate(-1deg);
}

.hustle-item p {
    font-size: 14px;
    line-height: 1.4;
    font-family: var(--jersey-font);
}

/* ==========================================================================
   Works Section
   ========================================================================== */
.works-section {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 60px 0;
    margin: 0;
    transform: none;
    position: relative;
}

.works-section .section-title {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.works-section .section-title::before,
.works-section .section-title::after {
    border-color: var(--primary-white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Work Items (Legacy) */
.work-item {
    background-color: var(--primary-black);
    color: var(--primary-white);
    overflow: hidden;
    transform: rotate(var(--work-rotation, 0deg));
    position: relative;
}

.work-item::before,
.work-item::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-black);
    z-index: -1;
}

.work-item::before {
    transform: rotate(-0.8deg);
    border-style: dashed;
}

.work-item::after {
    transform: rotate(1.2deg);
    border-style: solid;
}

.work-item:nth-child(1) { --work-rotation: -1deg; }
.work-item:nth-child(2) { --work-rotation: 0.5deg; }
.work-item:nth-child(3) { --work-rotation: -0.8deg; }

.work-video {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.work-video iframe {
    border: none;
    border-radius: 0;
}

.work-content {
    padding: 2px;
}

.work-content h3 {
    font-family: var(--marker-font);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
    transform: rotate(-0.5deg);
    text-shadow: var(--shadow-text-light);
}

.work-content p {
    font-size: 14px;
    line-height: 1.4;
    font-family: var(--jersey-font);
}

/* Unleashed Video (New Style) */
.unleashed-video {
    width: 100%;
    position: relative;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
    background-color: var(--primary-black);
    z-index: 1;
}

.unleashed-video:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 10;
}

.unleashed-video::before,
.unleashed-video::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 6px solid var(--primary-black);
    z-index: -1;
    pointer-events: none;
}

.unleashed-video::after {
    transform: rotate(1deg);
    border-style: solid;
}

/* Automated Rotations */
.works-grid > .unleashed-video:nth-child(3n+1) { --rotation: -1.5deg; }
.works-grid > .unleashed-video:nth-child(3n+2) { --rotation: 1.2deg; }
.works-grid > .unleashed-video:nth-child(3n+3) { --rotation: -0.5deg; }

/* Works Section - White borders on black */
.works-section .unleashed-video::before,
.works-section .unleashed-video::after,
.works-section .btn::before,
.works-section .btn::after {
    border-color: var(--primary-white);
}

.works-section .btn {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

/* Unleashed Video Modifiers */
.unleashed-video.big-dog {
    grid-column: span 3;
}

.unleashed-video.loud {
    z-index: 5;
}

.works-grid .unleashed-video.loud {
    transform: rotate(-2.5deg) scale(1.05);
}

.works-grid .unleashed-video.loud:hover {
    transform: rotate(0deg) scale(1.08);
}

.unleashed-video.loud::before,
.unleashed-video.loud::after {
    border-width: 6px;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.see-all {
    text-align: center;
}

/* ==========================================================================
   Featured Rows (vertical + stacked horizontal)
   ========================================================================== */

/* Vertical video: aspect-ratio drives height, no padding hack, no black bars */
.unleashed-video--vertical {
    aspect-ratio: 9 / 16;
    padding-top: 0;
    height: auto;
}

/* Horizontal videos inside featured rows: override inline padding, use aspect-ratio */
.works-featured-row .unleashed-video:not(.unleashed-video--vertical) {
    padding-top: 0 !important;
    aspect-ratio: 16 / 9;
}

/* Base featured row */
.works-featured-row {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

/* LEFT variant: 9:16 column left (2fr), two 16:9 stacked right (3fr) */
.works-featured-row:not(.works-featured-row--right) {
    grid-template-columns: 2fr 3fr;
    grid-template-areas:
        "vert h1"
        "vert h2";
}

.works-featured-row:not(.works-featured-row--right) .unleashed-video:nth-child(1) { grid-area: vert; }
.works-featured-row:not(.works-featured-row--right) .unleashed-video:nth-child(2) { grid-area: h1; }
.works-featured-row:not(.works-featured-row--right) .unleashed-video:nth-child(3) { grid-area: h2; }

/* RIGHT variant: two 16:9 stacked left (3fr), 9:16 column right (2fr) */
.works-featured-row--right {
    grid-template-columns: 3fr 2fr;
    grid-template-areas:
        "h1 vert"
        "h2 vert";
}

.works-featured-row--right .unleashed-video:nth-child(1) { grid-area: h1; }
.works-featured-row--right .unleashed-video:nth-child(2) { grid-area: h2; }
.works-featured-row--right .unleashed-video:nth-child(3) { grid-area: vert; }

/* Rotations */
.works-featured-row:not(.works-featured-row--right) .unleashed-video:nth-child(1) { --rotation: -1deg; }
.works-featured-row:not(.works-featured-row--right) .unleashed-video:nth-child(2) { --rotation: 1.2deg; }
.works-featured-row:not(.works-featured-row--right) .unleashed-video:nth-child(3) { --rotation: -0.7deg; }
.works-featured-row--right .unleashed-video:nth-child(1) { --rotation: 0.8deg; }
.works-featured-row--right .unleashed-video:nth-child(2) { --rotation: -1deg; }
.works-featured-row--right .unleashed-video:nth-child(3) { --rotation: 1.5deg; }

/* Bottom 2-col row */
.works-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.works-bottom-row .unleashed-video {
    padding-top: 0 !important;
    aspect-ratio: 16 / 9;
}

.works-bottom-row .unleashed-video:nth-child(1) { --rotation: -0.8deg; }
.works-bottom-row .unleashed-video:nth-child(2) { --rotation: 1deg; }

/* Full-width featured work (newest) */
.works-feature-single {
    margin-bottom: 50px;
}

.works-feature-single .unleashed-video {
    padding-top: 0 !important;
    aspect-ratio: 16 / 9;
    --rotation: -0.6deg;
}

/* Mobile: collapse to single column */
@media (max-width: 768px) {
    .works-featured-row,
    .works-featured-row--right {
        grid-template-columns: 1fr !important;
        grid-template-areas: unset !important;
    }

    .works-featured-row .unleashed-video,
    .works-featured-row--right .unleashed-video {
        grid-area: unset !important;
    }

    .works-bottom-row {
        grid-template-columns: 1fr;
    }
}

/* --- FIX "SEE ALL WORK" BUTTON HOVER --- */
.works-section .btn {
    /* Ensure the move is smooth like the other boxes */
    transition: var(--transition-smooth);
}

.works-section .btn:hover {
    /* 1. Color Swap (X-Ray Effect) */
    background-color: var(--primary-black);
    color: var(--primary-white);

    /* 2. Stop the Wiggle (So we can rotate it manually) */
    animation: none;

    /* 3. The "Box" Move: Tilt it slightly opposite (1.5deg) instead of scaling */
    /* The default is -1deg, so this makes it shift noticeably but naturally */
    transform: rotate(1.5deg); 
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-section {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 100px 0;
}

.team-section .section-title {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.team-section .section-title::before,
.team-section .section-title::after {
    border-color: var(--primary-white);
}

.misfits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.misfit-member {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: 3px solid var(--primary-white);
    padding: 40px 30px;
    text-align: center;
    transform: rotate(var(--misfit-rotation, 0deg));
    position: relative;
    transition: transform 0.3s ease;
}

.misfit-member:hover {
    transform: rotate(0deg);
}

.misfit-member::before,
.misfit-member::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-white);
    z-index: -1;
}

.misfit-member::before {
    transform: rotate(-0.8deg);
    border-style: dashed;
}

.misfit-member::after {
    transform: rotate(1.2deg);
    border-style: solid;
}

.misfit-member:nth-child(1) { --misfit-rotation: -1deg; }
.misfit-member:nth-child(2) { --misfit-rotation: 0.5deg; }
.misfit-member:nth-child(3) { --misfit-rotation: -0.8deg; }
.misfit-member:nth-child(4) { --misfit-rotation: 1.2deg; }
.misfit-member:nth-child(5) { --misfit-rotation: -0.6deg; }

.misfit-photo {
    width: 100%;
    margin-bottom: 20px;
}

.misfit-photo img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.misfit-content h4 {
    font-family: var(--jersey-font);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    transform: rotate(-0.5deg);
    text-shadow: 2px 2px 0px rgba(255,255,255,0.1);
}

.misfit-role {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-gray);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: var(--marker-font);
}

.misfit-content p {
    font-size: 13px;
    line-height: 1.4;
    font-family: var(--jersey-font);
}

.misfit-content a {
    color: var(--primary-white);
    text-decoration: none;
}

.misfit-contact a {
    display: block;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.misfit-contact a:hover {
    text-decoration: none;
}

.social-icon {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-white);
    transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
    transform: scale(1.15) rotate(5deg);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* ==========================================================================
   Story Section
   ========================================================================== */
.story-section {
    background-color: var(--off-white);
    padding: 100px 0;
    transform: rotate(0.1deg);
    position: relative;
}

.story-header {
    text-align: center;
    margin-bottom: 60px;
}

.story-subtitle {
    font-family: var(--marker-font);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(0.8deg);
    color: var(--primary-black);
    margin-bottom: 40px;
}

.story-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.story-content {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 50px;
    transform: rotate(-0.3deg);
    position: relative;
}

.story-content::before,
.story-content::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid var(--primary-black);
    z-index: -1;
}

.story-content::before {
    transform: rotate(-0.8deg);
    border-style: dashed;
}

.story-content::after {
    transform: rotate(1deg);
    border-style: solid;
}

.story-content p {
    font-family: var(--jersey-font);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.story-content p:last-child {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 18px;
}

.story-artwork {
    transform: rotate(0.5deg);
    position: relative;
}

.story-artwork::before,
.story-artwork::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 5px solid var(--primary-black);
    z-index: -1;
}

.story-artwork::before {
    transform: rotate(-1deg);
    border-style: dashed;
}

.story-artwork::after {
    transform: rotate(0.8deg);
    border-style: solid;
}

.story-artwork img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--off-white);
    padding: 80px 0;
    transform: rotate(-0.2deg);
}

.contact-title {
    text-align: left;
    transform: rotate(0.5deg);
    display: inline-block;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-left h3 {
    font-family: var(--marker-font);
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    transform: rotate(-0.5deg);
}

.contact-left p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    font-family: var(--jersey-font);
}

.contact-box {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 25px;
    margin-bottom: 20px;
    transform: rotate(var(--contact-rotation, 0deg));
    position: relative;
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: rotate(0deg);
}

.contact-box::before,
.contact-box::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-black);
    z-index: -1;
}

.contact-box::before {
    transform: rotate(-0.8deg);
    border-style: dotted;
}

.contact-box::after {
    transform: rotate(1deg);
    border-style: solid;
}

.contact-box:nth-child(3) { --contact-rotation: 0.8deg; }
.contact-box:nth-child(4) { --contact-rotation: -0.5deg; }
.contact-box:nth-child(5) { --contact-rotation: 1deg; }

.contact-box h4 {
    font-family: var(--marker-font);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: var(--shadow-text-light);
}

.contact-box p {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    font-family: var(--jersey-font);
}

.contact-box a {
    color: var(--primary-white);
    text-decoration: none;
}

/* Contact Form */
.contact-form label {
    font-family: var(--marker-font);
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 3px;
    transform: rotate(0.5deg);
    text-shadow: var(--shadow-text);
    display: block;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-wrapper::before,
.input-wrapper::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-black);
    z-index: -1;
    pointer-events: none;
}

.input-wrapper::before {
    transform: rotate(-0.5deg);
    border-style: dashed;
}

.input-wrapper::after {
    transform: rotate(0.8deg);
    border-style: solid;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-family: var(--jersey-font);
    background-color: var(--off-white);
    border: none;
    outline: none;
    transform: rotate(var(--input-rotation, 0deg));
}

.form-group:nth-of-type(1) input { --input-rotation: 0.3deg; }
.form-group:nth-of-type(2) input { --input-rotation: -0.5deg; }
.form-group:nth-of-type(3) textarea { --input-rotation: 0.2deg; }

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-style: italic;
    color: #888;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 15px 30px;
    border: none;
    font-family: var(--marker-font);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transform: rotate(-1deg);
    position: relative;
    text-shadow: var(--shadow-text-light);
}

.submit-btn:hover {
    animation: shake-hard 0.5s linear infinite;
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.submit-btn::before,
.submit-btn::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-black);
    z-index: -1;
}

.submit-btn::before {
    transform: rotate(-1.2deg);
    border-style: dashed;
}

.submit-btn::after {
    transform: rotate(0.8deg);
    border-style: solid;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 60px 0;
    text-align: center;
    transform: rotate(0.3deg);
    margin-top: 60px;
    position: relative;
}

.footer-brand {
    font-family: var(--marker-font);
    font-size: 28px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-white);
}

.footer-tagline {
    font-family: var(--marker-font);
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-white);
}

.footer-est {
    font-family: var(--jersey-font);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-gray);
    margin: 0;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 999;
    font-family: var(--marker-font);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-black);
        flex-direction: column;
        padding: 20px;
        transform: rotate(-0.5deg);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    .hero-content,
    .works-grid,
    .services-main,
    .contact-content,
    .story-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .misfits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    h2.section-title,
    .services-title,
    .story-title,
    .contact-title {
        font-size: 32px;
        padding: 20px;
    }

    .services-main,
    .hustle-grid {
        grid-template-columns: 1fr;
    }

    .tagline-boxes {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Reset "Big Dog" to normal size on mobile */
    .unleashed-video.big-dog {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .contact-content {
        gap: 40px;
    }

    .story-main {
        gap: 30px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-item {
        min-width: unset;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* nous works panel */
.nous-section {
    background-color: var(--primary-black);
    padding: 80px 20px;
    position: relative;
}

.nous-panel {
    background-color: var(--off-white);
    color: var(--primary-black);
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
    border: 4px solid var(--primary-black);
    box-shadow: 8px 8px 0 var(--primary-white), 8px 8px 0 4px var(--primary-black);
    position: relative;
}

.nous-label {
    font-family: var(--marker-font);
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    transform: rotate(-0.6deg);
    display: inline-block;
}

.nous-panel p {
    font-family: var(--jersey-font);
    font-size: 20px;
    line-height: 1.5;
    margin: 0 auto 25px;
    max-width: 560px;
}

.nous-panel p a {
    font-weight: bold;
    color: var(--primary-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nous-panel p a:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    text-decoration: none;
}

.nous-link {
    display: inline-block;
    font-family: var(--marker-font);
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--primary-white);
    background-color: var(--primary-black);
    padding: 12px 24px;
    text-decoration: none;
    border: 3px solid var(--primary-black);
    transform: rotate(0.5deg);
    transition: transform 0.2s ease;
}

.nous-link:hover {
    background-color: var(--off-white);
    color: var(--primary-black);
    transform: rotate(-0.5deg) scale(1.04);
}

.nous-logo {
    display: block;
    width: 240px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 24px;
}

@media (max-width: 480px) {
    .nous-section {
        padding: 60px 12px;
    }

    .nous-panel {
        padding: 40px 24px;
    }

    .nous-logo {
        width: 210px;
        max-width: 100%;
    }

    .nous-label {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .nous-panel p {
        font-size: 18px;
    }

    .nous-link {
        padding: 12px 16px;
        font-size: 14px;
        letter-spacing: 1px;
        white-space: nowrap;
    }
}
