:root {
    /* Color Palette */
    --color-bg: #F2F2F2;
    --color-ink: #1A1A1A;
    --color-accent-1: #FF4F00; /* Safety Orange - Updated per requirements */
    --color-accent-2: #002FA7; /* International Klein Blue */
    --color-white: #FFFFFF;
    --color-grid: #1A1A1A;

    /* Fonts */
    --font-header: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders */
    --border-width: 1px;
    --border-style: solid;
    --border-color: var(--color-ink);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* Hide default cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-header);
    line-height: 1.6; /* Increased line-height for readability */
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
    cursor: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 0.9;
    position: relative;
    z-index: 2;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
    font-size: 2rem; /* Larger for readability */
    margin-bottom: var(--spacing-sm);
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 1rem; /* Increased size */
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    background-color: var(--color-ink);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    filter: invert(1);
}

.cursor.hovered {
    width: 60px;
    height: 60px;
}

/* Background Noise */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--color-bg);
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-beta-img {
    height: 1.5em;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-ink);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    position: relative;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-lg);
        transition: right 0.3s ease;
        z-index: 99; /* Below toggle button */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    /* Adjusted height logic */
    min-height: calc(90vh - 80px);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Adjusted ratio for text dominance */
    height: 100%;
    min-height: inherit;
}

.hero-main-text {
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: var(--border-width) var(--border-style) var(--border-color);
    position: relative;
}

.hero-visual-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-1) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
    /* Dither effect simulation via noise overlay already present on body,
       but we can enhance it if needed. The instruction says "Keep the dithered orange circle".
       The blur + global noise creates a dithered look. */
}

.hero-meta {
    margin-top: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 1.1rem; /* Larger sub-headline */
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-cta-container {
    display: flex;
    background-color: var(--color-ink); /* Fallback */
    position: relative;
    overflow: hidden;
}

.cta-button {
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-1);
    color: var(--color-ink); /* Black text */
    font-family: var(--font-header);
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    padding: var(--spacing-md);
    flex: 1; /* Ensure it grows */
}

.cta-button:hover {
    background-color: #ff6a2b; /* Lighter orange on hover */
}

/* Horizontal Marquee Banner */
.marquee-banner {
    background-color: var(--color-ink); /* Black background for contrast against orange CTA */
    color: var(--color-white);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
    padding: var(--spacing-sm) 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track-horizontal {
    display: inline-block;
    animation: marquee-horizontal 30s linear infinite; /* Slower */
}

.marquee-track-horizontal span {
    font-family: var(--font-mono); /* Monospace per requirement "No technical skills" feel? Or maintain brand? Stick to brand. */
    font-weight: 700;
    font-size: 1rem;
    margin-right: var(--spacing-xl);
}

/* Common Section Styles */
.section {
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.section-header {
    padding: var(--spacing-md);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-id {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

.bento-grid {
    display: grid;
}

.bento-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.bento-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

/* Pricing Grid specific layout */
.pricing-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* For 2-card layout (Kickstarter + Standard) */
.pricing-grid .bento-card {
    min-height: 500px; /* Taller to fit features */
}

/* Ensure equal sizing and borders in 3-card layout (2 top, 1 bottom full width) */
.pricing-grid .bento-card:nth-child(1) {
    border-right: var(--border-width) var(--border-style) var(--border-color);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.pricing-grid .bento-card:nth-child(2) {
    border-right: none;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.pricing-grid .bento-card:nth-child(3) {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
    min-height: auto; /* Allow auto height for the custom card if less content */
}

.tier-custom {
    background-color: var(--color-bg);
}

.bento-card {
    border-right: var(--border-width) var(--border-style) var(--border-color);
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 350px;
    background-color: var(--color-bg);
}

.bento-card:last-child {
    border-right: none;
}

/* Process Steps */
.process-step .step-number {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-accent-1);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

/* Selected Work Section */
.work-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--color-ink); /* Thick 1px black border per requirements */
    transition: border-color 0.3s ease-in-out;
}

.work-item:hover {
    border-color: var(--color-accent-1);
}

.work-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: all 0.3s ease-in-out;
}

.work-item:hover .work-image {
    filter: grayscale(0%) contrast(100%);
    transform: none; /* Removed scale as not requested, keeping it simple as per "instantly snaps (or smoothly fades)" */
}

.work-info {
    padding: var(--spacing-md);
}

.work-info h3 {
    margin-bottom: 0;
}

.work-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.action-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid var(--color-ink);
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.view-live {
    background-color: transparent;
    color: var(--color-ink);
}

.build-this {
    background-color: var(--color-ink);
    color: var(--color-white);
}

/* Hover Effect: Buttons */
.work-item:hover .build-this {
    background-color: var(--color-accent-1);
    border-color: var(--color-accent-1);
    color: var(--color-ink); /* Black text on orange background */
}

/* Pricing Cards */
.pricing-card {
    transition: color 0.3s ease;
    cursor: pointer; /* Indicate clickability */
    display: flex;
    flex-direction: column;
}

.tier-standard {
    background-color: var(--color-white);
    box-shadow: 0 0 30px rgba(0,0,0,0.05); /* Subtle white background shadow for premium feel */
    position: relative;
    z-index: 10; /* Bring forward */
}

.tier-kickstarter {
    background-color: var(--color-bg);
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 8px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    border-radius: 4px;
    width: fit-content;
}

.badge-yellow {
    background-color: #FFD700;
    color: var(--color-ink);
}

.badge-orange {
    background-color: var(--color-accent-1);
    color: var(--color-ink);
}

.price-container {
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.huge-price {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    display: block;
}

.recurring-price {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-top: var(--spacing-xs);
}

.features-list {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.features-list li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: '→';
    margin-right: var(--spacing-xs);
    color: var(--color-accent-1);
    font-weight: bold;
}

.pricing-card h3 {
    position: relative;
    z-index: 2;
}

.pricing-card .description {
    position: relative;
    z-index: 2;
    margin-bottom: var(--spacing-lg);
}

.pricing-card .card-action {
    position: relative;
    z-index: 2;
    margin-top: auto;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

/* Black Button for Standard Tier */
.cta-button-black {
    background-color: var(--color-ink);
    color: var(--color-white);
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.25rem;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    text-transform: uppercase;
    display: block;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.cta-button-black:hover {
    background-color: #333;
}

/* Compare Us Section */
.compare-us-container {
    padding: var(--spacing-md);
    text-align: center;
    background-color: var(--color-white);
    border-top: var(--border-width) var(--border-style) var(--border-color); /* Separator if inside grid container, but it's separate */
    /* If outside grid, no border needed top if grid has bottom border. Grid has bottom border? No. Section has bottom border. */
}

.compare-text {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.strike {
    text-decoration: line-through;
    opacity: 0.6;
}


.curtain-fill {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-1);
    transition: top 0.4s ease-in-out;
    z-index: 1;
}

/* Only apply curtain fill hover on cards that have it (Standard) */
.tier-standard:hover .curtain-fill {
    top: 0;
}

/* Kickstarter Hover: Simple text color change or subtle bg? */
.tier-kickstarter:hover {
    background-color: #f9f9f9;
}

/* Standard Hover Text Color Change */
.tier-standard:hover h3,
.tier-standard:hover .description,
.tier-standard:hover .card-action,
.tier-standard:hover .features-list,
.tier-standard:hover .features-list li::before,
.tier-standard:hover .huge-price,
.tier-standard:hover .recurring-price {
    color: var(--color-ink);
}

/* Keep button visible on hover */
.tier-standard:hover .cta-button-black {
    background-color: var(--color-ink);
    color: var(--color-white);
}

/* Team Section */
.team-member {
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.team-photo-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Square aspect ratio */
    height: auto; /* Allow height to adjust based on width */
    overflow: hidden;
    position: relative;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: all 0.3s ease-in-out;
}

/* Hover Effect: Team */
.card-team:hover {
    box-shadow: none;
    border-left: 8px solid var(--color-accent-1);
    border-bottom: 8px solid var(--color-accent-1);
    /* Reset other borders to avoid double thickness visual if using shadow */
    border-top: 1px solid #E5E5E5;
    border-right: 1px solid #E5E5E5;
}

.card-team:hover .team-photo {
    filter: grayscale(0%) contrast(100%);
}

.team-info {
    padding: var(--spacing-md);
    background-color: var(--color-white);
}

.team-info h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.team-info .mono-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Contact Form */
.contact-section {
    background-color: var(--color-white);
}

.contact-form-container {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.project-inquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid var(--color-ink);
    border-radius: 0; /* Square edges */
    padding: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 1rem;
    background-color: var(--color-bg);
    outline: none;
    transition: background-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background-color: #fff;
    border-color: var(--color-accent-1);
}

.submit-btn {
    background-color: var(--color-accent-1);
    color: var(--color-ink);
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.5rem;
    padding: var(--spacing-md);
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    border: 1px solid var(--color-ink);
    transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #ff6a2b;
}

.submit-btn:active {
    transform: translateY(2px);
}


/* Footer */
#footer {
    padding: var(--spacing-lg) 0 0 0;
    border-top: var(--border-width) var(--border-style) var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: var(--border-width) var(--border-style) var(--border-color);
}

.footer-col {
    padding: var(--spacing-md);
    border-right: var(--border-width) var(--border-style) var(--border-color);
}

.footer-col:last-child {
    border-right: none;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.6;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--color-accent-1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #008000;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
}

.copyright {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    gap: var(--spacing-sm);
}

.footer-logo-img-small {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Animations Keyframes */
@keyframes marquee-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* New Card Styles */
:root {
    --border-radius-card: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Type 1: Team Member Card */
.card-team {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    background-color: var(--color-ink); /* Fallback */
    border: 1px solid transparent; /* Prepare for border change */
    transition: all 0.3s ease;
}

.card-team .team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.card-team .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
}

.card-team .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    z-index: 2;
    color: white;
    font-family: var(--font-header);
}

.card-team .name {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.card-team .role {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: var(--spacing-xs);
    display: block;
}

.card-team .social-icons {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #FFD700; /* Vibrant Yellow */
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.card-team .arrow-btn {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.2s;
}

.card-team .arrow-btn svg {
    width: 20px;
    height: 20px;
    fill: black;
}

.card-team:hover .arrow-btn {
    transform: rotate(-45deg);
}


/* Type 2: Portfolio Company Card */
.card-portfolio {
    background-color: white;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Prepare for border change */
}

/* Top Section */
.card-portfolio .top-section {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-portfolio .tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.pill-tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.pill-tag.yellow {
    background-color: #FFD700;
    color: black;
}

.pill-tag.grey {
    background-color: #F0F0F0;
    color: black;
}

.card-portfolio .company-logo {
    width: 40px;
    height: 40px;
    background-color: black;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    /* Placeholder for logo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-family: var(--font-header);
}

.card-portfolio .company-name {
    font-size: 2rem;
    font-weight: 800;
    color: black;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.card-portfolio .company-meta {
    font-size: 0.875rem;
    color: #666;
    font-family: var(--font-mono);
}

/* Footer Section */
.card-portfolio .card-footer {
    background-color: #F9F9F9;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #EEE;
}

.card-portfolio .category {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
}

.card-portfolio .footer-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-portfolio .footer-btn svg {
    width: 16px;
    height: 16px;
    fill: black;
    transition: fill 0.3s ease;
}

/* Active/Hover State Variation */
.card-portfolio.active,
.card-portfolio:hover {
    box-shadow: -8px 8px 0 var(--color-accent-1); /* Illustrated "thick border" via shadow to avoid layout shifts or box-sizing issues, or use border */
    border-left: 8px solid var(--color-accent-1);
    border-bottom: 8px solid var(--color-accent-1);
    /* Reset other borders to avoid double thickness visual if using shadow */
    border-top: 1px solid #E5E5E5;
    border-right: 1px solid #E5E5E5;
}

/* Since border width changes layout, let's use box-shadow inset or calc width/height.
   The prompt asks for "thick ... border along its entire left and bottom edges".
   Border property changes layout.
   Let's use box-shadow to simulate the border "outside" or "inside".
   "box-shadow: inset 8px -8px 0 var(--color-accent-1)" puts it inside.
   "box-shadow: -8px 8px 0 var(--color-accent-1)" puts it outside (like a brutalist shadow).
   The prompt says "thick, vibrant orange border". Border usually means inside the box model or increasing size.
   Given the "Neo-Brutalist" style in memory (Team/Projects have ... border or shadow accents), box-shadow is common.
   However, "Active/Hover State ... must have a thick ... border".
   I will use actual border and handle the layout shift or use a container.
   Actually, `box-sizing: border-box` is on. Increasing border width reduces content area. That is fine.
*/
.card-portfolio.active,
.card-portfolio:hover {
    border-left: 8px solid var(--color-accent-1);
    border-bottom: 8px solid var(--color-accent-1);
    border-top: 1px solid #E5E5E5; /* Keep original top/right */
    border-right: 1px solid #E5E5E5;
    box-shadow: none; /* Override default if any */
}

.card-portfolio.active .footer-btn,
.card-portfolio:hover .footer-btn {
    background-color: var(--color-accent-1);
    border-color: var(--color-accent-1);
}

.card-portfolio.active .footer-btn svg,
.card-portfolio:hover .footer-btn svg {
    fill: white;
}


/* View All Card */
.card-view-all {
    background-color: #F0F0F0; /* Light grey */
    border-radius: var(--border-radius-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    text-align: center;
    height: 400px; /* Match portfolio height */
    transition: background-color 0.3s ease;
}

.card-view-all:hover {
    background-color: #E5E5E5;
}

.card-view-all h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: black;
}

.card-view-all .btn-rect {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: black;
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: transform 0.2s;
}

.card-view-all .btn-rect:hover {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Media Queries */
@media (max-width: 900px) {
    .bento-grid.three-col {
        grid-template-columns: 1fr;
    }

    .bento-card {
        border-right: none;
        border-bottom: var(--border-width) var(--border-style) var(--border-color);
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto; /* Auto height for text, auto for CTA */
    }

    .hero-main-text {
        border-right: none;
        border-bottom: var(--border-width) var(--border-style) var(--border-color);
        padding-bottom: var(--spacing-xl); /* Space for visual */
    }

    .hero-cta-container {
        /* Sticky CTA on mobile */
        position: sticky;
        bottom: 0;
        z-index: 50;
        height: 80px;
    }

    .bento-grid.two-col {
        grid-template-columns: 1fr;
    }

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

    .pricing-grid .bento-card:nth-child(1) {
        grid-column: auto;
        border-right: none;
        border-bottom: var(--border-width) var(--border-style) var(--border-color);
    }

    .pricing-grid .bento-card:nth-child(2) {
        border-right: none;
        border-bottom: var(--border-width) var(--border-style) var(--border-color);
    }

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

    .footer-col {
        border-right: none;
        border-bottom: var(--border-width) var(--border-style) var(--border-color);
    }

    .project-inquiry-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Team Single View */
.card-grid.team-single {
    display: flex;
    justify-content: center;
    grid-template-columns: none; /* Reset grid override if needed */
    margin-top: var(--spacing-lg);
}

.card-grid.team-single .card-team {
    max-width: 400px;
    /* Aspect ratio is naturally handled by max-width and fixed height of 500px,
       but we can reinforce portrait nature if max-width < 500px.
       400x500 is 0.8 aspect ratio (Portrait). */
}

/* Projects Grid Styles */
.project-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
}

.project-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.card-project {
    position: relative;
    border: 1px solid var(--color-ink);
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 300px; /* Fixed height for consistency */
    transition: border-color 0.3s ease;
}

.card-project:hover {
    border-color: var(--color-accent-1);
}

.project-image-container {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--color-ink);
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.card-project:hover .project-image-container img {
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 79, 0, 0.9); /* Safety Orange with opacity */
    color: var(--color-ink);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    text-align: center;
}

.card-project:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
}

.overlay-content h4 {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-mono);
}

.overlay-content ul {
    font-size: 0.75rem;
    list-style: none;
    margin-bottom: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    font-family: var(--font-mono);
}

.overlay-content li {
    margin-bottom: 2px;
}

.visit-btn {
    display: inline-block;
    background-color: var(--color-ink);
    color: var(--color-white);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0;
    border: 1px solid var(--color-ink);
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.visit-btn:hover {
    background-color: var(--color-white);
    color: var(--color-ink);
}

.project-meta {
    padding: var(--spacing-sm);
    background-color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
}

.project-title {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.view-all-container {
    display: flex;
    justify-content: center;
    padding: var(--spacing-md);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.view-all-container .cta-button {
    width: auto;
    flex: 0 1 auto;
    min-width: 200px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .project-grid-full, .project-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .project-grid-full, .project-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Show only 4 projects on mobile in home grid */
    .project-grid-home .card-project:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .project-grid-full, .project-grid-home {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-container {
    padding: 0;
}

.faq-item {
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--color-bg);
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.5rem; /* Readable size */
    font-weight: 800;
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon .line {
    position: absolute;
    background-color: var(--color-ink);
    transition: transform 0.3s ease;
}

.faq-icon .horizontal {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-icon .vertical {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Hover State */
.faq-question:hover {
    background-color: var(--color-white);
    color: var(--color-accent-1);
}

.faq-question:hover .faq-icon .line {
    background-color: var(--color-accent-1);
}

/* Active State (Open) */
.faq-item.active .faq-question {
    background-color: var(--color-white);
}

.faq-item.active .faq-icon .vertical {
    transform: translateX(-50%) rotate(90deg); /* Turn vertical to horizontal to make a minus */
}

.faq-item.active .faq-icon .horizontal {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    background-color: var(--color-white);
}

.answer-content {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.answer-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
}
