:root {
    --bg-green-dark: #1e593d;
    --bg-green-light: #2b744d;
    --card-white: #f5f4f0;
    --text-primary: #1a1a1a;
    --border-color: #333;
    --accent-yellow: #e4b94f;
    --accent-teal: #aadecd;
    --accent-pink: #d8a2c2;
    --accent-blue: #a3c4f3;
    --accent-orange: #f0a271;
    --accent-black: #1a1a1a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-green-dark);
    /* Grid background mimicking cutting mat */
    background-image:
        linear-gradient(var(--bg-green-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-green-light) 1px, transparent 1px);
    background-size: 40px 40px;
    font-family: 'Space Mono', monospace;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 20px;
    overflow-x: hidden;
}

/* Pseudo element for the crosshairs on grid (optional) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

main.portfolio-board {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

/* Base Card Styling */
.board-card {
    background-color: var(--card-white);
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    /* Slight rounded edges of paper */
}

.padded-card {
    padding: 40px;
}

.no-pad {
    padding: 0;
}

.relative {
    position: relative;
}

/* Typography */
.mono-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mono-mini {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #666;
}

.display-name {
    font-family: 'Anton', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.display-name.small {
    font-size: 2.5rem;
    margin-bottom: 25px;
    /* Added spacing between header and grid instances */
}

.intro-text,
.contact-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
}

/* Corners (Top-Left, Bottom-Right, etc. like the ref images) */
.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-top: 2px solid var(--border-color);
    border-left: 2px solid var(--border-color);
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-top: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid var(--border-color);
    border-left: 2px solid var(--border-color);
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

/* Tape Effects */
.tape {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.tape.tl {
    top: -10px;
    left: -10px;
    width: 60px;
    height: 25px;
    transform: rotate(-15deg);
}

.tape.tr {
    top: -10px;
    right: 20px;
    width: 80px;
    height: 30px;
    transform: rotate(5deg);
    background: rgba(230, 225, 210, 0.7);
}

.tape.br {
    bottom: 20px;
    right: -20px;
    width: 70px;
    height: 25px;
    transform: rotate(-5deg);
    background: rgba(200, 210, 220, 0.6);
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.tagline-box {
    display: inline-block;
    border-bottom: 1px dotted var(--border-color);
    margin-bottom: 20px;
}

.right-align {
    text-align: right;
    display: block;
}

.photo-frame {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: #fff;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: rotate(0deg);
}

.profile-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    /* Grayscale to match brutalist prepress vibe */
}

/* Paperclips */
.paperclip {
    position: absolute;
    z-index: 20;
}

.paperclip.top-clip {
    top: -30px;
    right: 20px;
    transform: rotate(15deg);
}

.paperclip.side-clip {
    top: 20px;
    right: -10px;
    transform: rotate(-90deg);
}

/* Marquee / Brands */
.brands-marquee {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    position: relative;
}

.brands-marquee .mono-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.brands-list-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Soft blend edges for smooth entry/exit */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.brands-list {
    display: inline-block;
    padding-left: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
    animation: scrollBrands 20s linear infinite;
}

.brands-list:hover {
    animation-play-state: paused;
}

.brands-list span {
    display: inline-block;
    margin: 0 10px;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Social Bar */
.social-bar {
    display: flex;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-link {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-right: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.social-link:last-child {
    border-right: none;
}

.social-link:hover {
    background-color: var(--accent-yellow);
}

/* Header Navigation */
.main-header {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-links {
    display: flex;
}

.nav-link {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-link:last-child {
    border-right: none;
}

.nav-link:hover {
    background-color: var(--accent-yellow);
}

/* Services List (Colored Grid Rows) */
.services-list-container {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.service-color {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    font-size: 3rem;
}

.bg-blue {
    background-color: var(--accent-blue);
}

.bg-yellow {
    background-color: var(--accent-yellow);
}

.bg-teal {
    background-color: var(--accent-teal);
}

.bg-pink {
    background-color: var(--accent-pink);
}

.service-content {
    flex: 1;
    padding: 30px;
}

.service-title {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.service-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #444;
}

.service-arrow {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-color);
}

.circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--card-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: sans-serif;
}

/* Services Checklist */
.checklist-services {
    list-style: none;
}

.checklist-services li {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.checklist-services li:last-child {
    border-bottom: none;
}

.check {
    margin-right: 15px;
    font-weight: bold;
}

/* Visual Break / Collage */
.visual-break {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-yellow);
    /* Creates a gold/black tech effect when multiplied */
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.5) brightness(0.9);
    mix-blend-mode: multiply;
    background-color: var(--card-white);
}

.top-tape {
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 120px;
    height: 35px;
}

/* Workflow Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-step {
    display: flex;
    gap: 20px;
}

.step-num {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--bg-green-dark);
}

.step-info {
    flex: 1;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
}

.step-desc {
    font-family: 'Inter', sans-serif;
    color: #444;
}

/* Metrics Grid */
.grid-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: center;
}

.dark-card {
    background-color: var(--text-primary);
    color: var(--card-white);
    border: none;
}

.dark-card .mono-label {
    color: #999;
}

.dark-card .display-name {
    color: var(--card-white);
    margin-bottom: 10px;
}

/* Case Studies Grid */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.case-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.case-card:hover {
    background-color: #eee;
}

.case-brand {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.case-tag {
    color: #888;
    margin-bottom: 15px;
}

.case-results {
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex: 1;
}

.case-link {
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    text-align: right;
    display: block;
}

/* Testimonial Carousel */
.testimonial-carousel {
    display: flex;
    overflow-x: hidden;
    padding: 40px 20px;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1230px);
    }
}

.testimonial-card {
    min-width: 380px;
    max-width: 380px;
    flex: 0 0 auto;
    background-color: #f6f5f1;
    border-radius: 12px;
    border: none;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.test-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 25px;
    border-top: 1px dashed #bbb;
    border-bottom: 1px dashed #bbb;
    padding-top: 15px;
    padding-bottom: 15px;
}

.test-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    filter: none;
}

.test-img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.test-initials {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: normal;
    line-height: 1;
}

.test-name {
    font-family: 'Anton', sans-serif;
    font-weight: normal;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.test-header .mono-label {
    font-size: 0.8rem;
    color: #444;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.test-quote {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    padding-top: 10px;
    color: #1a1a1a;
    z-index: 1;
}

.test-quote::before {
    content: '“';
    font-family: 'Anton', sans-serif;
    font-size: 10rem;
    color: #e6e6e2;
    position: absolute;
    top: -45px;
    left: -15px;
    line-height: 1;
    z-index: -1;
    opacity: 0.8;
}

.test-quote span {
    position: relative;
    z-index: 2;
}

.test-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #bbb;
    border-bottom: 1px dashed #bbb;
    padding-top: 12px;
    padding-bottom: 12px;
}

.test-footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #444;
}

.small-tape {
    width: 50px;
    height: 15px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--border-color);
}

.submit-btn {
    background-color: var(--text-primary);
    color: var(--card-white);
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid var(--text-primary);
    padding: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.submit-btn.outline-btn {
    background-color: transparent;
    color: var(--text-primary);
}

.submit-btn:hover {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
    border-color: var(--accent-yellow);
}

.submit-btn.outline-btn:hover {
    background-color: var(--text-primary);
    color: var(--card-white);
    border-color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.mb-16 {
    margin-bottom: 16px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-top: 1px dotted var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .padded-card {
        padding: 25px 20px;
    }

    .display-name {
        font-size: 2.8rem;
    }

    .display-name.small {
        font-size: 2rem;
    }

    .intro-text,
    .contact-desc {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-link {
        flex: 1 1 50%;
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 5px;
        font-size: 0.85rem;
    }

    .nav-link:nth-child(2n) {
        border-right: none;
    }

    /* Remove bottom border for the last two items since we have 6 items */
    .nav-link:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    .social-link {
        font-size: 0.9rem;
        padding: 12px 5px;
    }

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

    .service-row {
        flex-direction: row;
    }

    .service-color {
        width: 70px;
        height: auto;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        font-size: 2rem;
    }

    .service-content {
        padding: 15px;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-arrow {
        width: 50px;
        border-left: 1px solid var(--border-color);
        border-top: none;
        padding: 0;
    }

    .circle-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .visual-break {
        height: 200px;
        /* Compress the video block visually on mobile */
    }

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

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

    .testimonial-card {
        min-width: 260px;
        padding: 20px;
    }

    .test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brands-list {
        font-size: 0.8rem;
    }
}