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

:root {
    /* Core Brand Colors */
    --color-red: #CD0000;
    --color-orange: #FF9800;
    --color-yellow: #DCCD00;
    --color-green: #0EDA65;
    --color-teal: #00CB9E;
    --color-cyan: #00B5DD;
    --color-blue: #405DFF;
    --color-violet: #9200FF;
    --color-magenta: #D300C2;
    --color-pink: #D40069;

    /* RGB Values (for rgba usage with opacity) */
    --rgb-red: 205, 0, 0;
    --rgb-orange: 255, 152, 0;
    --rgb-green: 14, 218, 101;
    --rgb-teal: 0, 203, 158;
    --rgb-cyan: 0, 181, 221;
    --rgb-blue: 64, 93, 255;
    --rgb-violet: 146, 0, 255;
    --rgb-magenta: 211, 0, 194;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-lighter-grey: #AAAAAA;
    --color-light-grey: #808080;
    --color-grey: #505050;
    --color-dark-grey: #303030;
    --color-darker-grey: #0A0A0A;
    --color-black: #000000;

    /* RGB Neutral Colors */
    --rgb-grey: 80, 80, 80;
    --rgb-bg-dark: 10, 10, 10;
    --rgb-black: 0, 0, 0;

    /* Backgrounds */
    --color-bg-dark: #0A0A0A;
    --color-bg-darker: #101010;

    /* Gradient Settings */
    --gradient-angle: 135deg;

    /* Static Gradients (for performance-critical elements) */
    --gradient-hero: linear-gradient(135deg, var(--color-orange) 0%, #FFD54F 100%);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --spacing-2xl: 80px;

    /* Corner System */
    --corner-size: 8px;
    /* With box-sizing: border-box, this is the total visual size */
    --corner-border-width: 2px;
    --corner-offset: -2px;
    /* Same as border width */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 1440px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    user-select: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

.nav-item-wrapper {
    position: relative;
    align-self: stretch;
}

.nav-item {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.3s;
    text-decoration: none;
}



.nav-item-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 0 8px;
}

.nav-item-dropdown.active {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-chevron {
    width: 8px;
    height: 8px;
    transition: transform 0.3s;
}

.nav-item-dropdown.active .nav-chevron {
    transform: rotate(90deg);
}

/* Capabilities Dropdown */
.capabilities-dropdown {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    height: 250px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.capabilities-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    display: flex;
    height: 100%;
}

/* Left Navigation Panel */
.dropdown-nav {
    width: 250px;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    padding: 17px 0;
    overflow: visible;
}

.dropdown-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 25px;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    color: var(--color-white);
    transition: all 0.2s;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    overflow: visible;
}

.dropdown-nav-item:hover,
.dropdown-nav-item.active {
    border: 2px solid;
}

/* Strategy colors */
.dropdown-nav-item[data-capability="strategy"]:hover,
.dropdown-nav-item[data-capability="strategy"].active {
    background: rgba(var(--rgb-red), 0.1);
    border-color: rgba(var(--rgb-red), 0.2);
}

/* Design colors */
.dropdown-nav-item[data-capability="design"]:hover,
.dropdown-nav-item[data-capability="design"].active {
    background: rgba(var(--rgb-green), 0.1);
    border-color: rgba(var(--rgb-green), 0.2);
}

/* Development colors */
.dropdown-nav-item[data-capability="development"]:hover,
.dropdown-nav-item[data-capability="development"].active {
    background: rgba(var(--rgb-cyan), 0.1);
    border-color: rgba(var(--rgb-cyan), 0.2);
}

/* Data Science colors */
.dropdown-nav-item[data-capability="data-science"]:hover,
.dropdown-nav-item[data-capability="data-science"].active {
    background: rgba(var(--rgb-violet), 0.1);
    border-color: rgba(var(--rgb-violet), 0.2);
}

/* Top Corners - Pseudo-elements (uses unified corner system) */
.nav-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* All corners use unified .nav-corner system defined below */

/* Show all corners on hover/active */
.dropdown-nav-item:hover .nav-corner,
.dropdown-nav-item.active .nav-corner {
    border-color: currentColor;
}

/* Strategy - all corners */
.dropdown-nav-item[data-capability="strategy"]:hover .nav-corner,
.dropdown-nav-item[data-capability="strategy"].active .nav-corner {
    border-color: var(--color-red);
}

/* Design - all corners */
.dropdown-nav-item[data-capability="design"]:hover .nav-corner,
.dropdown-nav-item[data-capability="design"].active .nav-corner {
    border-color: var(--color-green);
}

/* Development - all corners */
.dropdown-nav-item[data-capability="development"]:hover .nav-corner,
.dropdown-nav-item[data-capability="development"].active .nav-corner {
    border-color: var(--color-cyan);
}

/* Data Science - all corners */
.dropdown-nav-item[data-capability="data-science"]:hover .nav-corner,
.dropdown-nav-item[data-capability="data-science"].active .nav-corner {
    border-color: var(--color-violet);
}

.nav-item-icon {
    width: 16px;
    height: 16px;
}

.nav-item-arrow {
    width: 8px;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-arrow img {
    width: 8px;
    height: 8px;
    transform: rotate(0deg);
}

/* Right Content Panel */
.dropdown-details {
    flex: 1;
    padding: 32px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 250px;
}

.capability-details {
    display: none;
}

.capability-details.active {
    display: block;
    height: 186px;
}

.dropdown-services-grid {
    column-width: 250px;
    column-gap: 32px;
    column-fill: auto;
    height: 100%;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    height: 100%;
}

.dropdown-service-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-service-title {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-white);
}

.dropdown-service-divider {
    width: 100%;
    height: 2px;
    background: var(--color-dark-grey);
}

.dropdown-service-divider.gradient-strategy {
    background: linear-gradient(var(--gradient-angle), var(--color-red) 0%, var(--color-orange) 100%);
}

.dropdown-service-divider.gradient-design {
    background: linear-gradient(var(--gradient-angle), var(--color-green) 0%, var(--color-teal) 100%);
}

.dropdown-service-divider.gradient-development {
    background: linear-gradient(var(--gradient-angle), var(--color-cyan) 0%, var(--color-blue) 100%);
}

.dropdown-service-divider.gradient-data-science {
    background: linear-gradient(var(--gradient-angle), var(--color-violet) 0%, var(--color-magenta) 100%);
}

.dropdown-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-service-list li {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-grey);
}

.dropdown-service-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    break-inside: avoid;
    margin-bottom: 24px;
}

.dropdown-service-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1;
}

.dropdown-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.dropdown-service-list li {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-grey);
    line-height: 1.4;
}

/* Automatically create 2 columns for lists with more than 6 items */
.dropdown-service-list li:nth-child(7) {
    display: block;
}

.dropdown-service-list:has(li:nth-child(7)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 8px;
}

/* Verticals Dropdown */
.verticals-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(2px);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    min-width: 150px;
}

.verticals-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.verticals-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vertical-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.vertical-item:hover {
    opacity: 0.7;
}

a.vertical-item {
    color: var(--color-white);
}

.vertical-item span {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.vertical-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.btn-contact {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    background: rgba(80, 80, 80, 0.1);
    border: 2px solid rgba(80, 80, 80, 0.2);
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

/* Top Corners - Pseudo-elements (uses unified corner system) */
.btn-contact:hover {
    background: rgba(80, 80, 80, 0.2);
    border-color: rgba(80, 80, 80, 0.2);
}

.btn-contact:hover .btn-corner {
    width: 16px;
    /* With box-sizing: border-box, this is the total visual size */
    height: 16px;
}

/* Universal Corner System - Base Styles */
.btn-corner,
.nav-corner {
    position: absolute;
    width: var(--corner-size);
    height: var(--corner-size);
    border: none;
    transition: all 0.3s;
}

/* Top Left Corner */
.btn-corner-tl,
.nav-corner-tl {
    top: var(--corner-offset);
    left: var(--corner-offset);
    border-top: var(--corner-border-width) solid transparent;
    border-left: var(--corner-border-width) solid transparent;
}

/* Top Right Corner */
.btn-corner-tr,
.nav-corner-tr {
    top: var(--corner-offset);
    right: var(--corner-offset);
    border-top: var(--corner-border-width) solid transparent;
    border-right: var(--corner-border-width) solid transparent;
}

/* Bottom Left Corner */
.btn-corner-bl,
.nav-corner-bl {
    bottom: var(--corner-offset);
    left: var(--corner-offset);
    border-bottom: var(--corner-border-width) solid transparent;
    border-left: var(--corner-border-width) solid transparent;
}

/* Bottom Right Corner */
.btn-corner-br,
.nav-corner-br {
    bottom: var(--corner-offset);
    right: var(--corner-offset);
    border-bottom: var(--corner-border-width) solid transparent;
    border-right: var(--corner-border-width) solid transparent;
}

/* Contact Button Corners */
.btn-contact .btn-corner {
    border-color: var(--color-grey);
}

.btn-contact:hover .btn-corner {
    width: 16px;
    /* With box-sizing: border-box, this is the total visual size */
    height: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--color-black);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 158px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1440px;
    padding: 0 80px;
    margin-top: 80px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-content>* {
    max-width: 583px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1;
    color: var(--color-grey);
    text-transform: lowercase;
}

.hero-title {
    font-family: var(--font-hero);
    font-size: 56px;
    line-height: 1;
    font-weight: 400;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 800px;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 1;
    color: var(--color-white);
}

.btn-primary {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid rgba(255, 152, 0, 0.2);
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    position: relative;
}

/* Top Corners - Pseudo-elements (uses unified corner system) */
.btn-primary:hover {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.2);
}

.btn-primary .btn-corner {
    border-color: var(--color-orange);
}

.btn-primary:hover .btn-corner {
    width: 16px;
    /* With box-sizing: border-box, this is the total visual size */
    height: 16px;
}

/* About Section */
.about {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 500px;
    background: var(--color-black);
    overflow: hidden;
    padding: 96px 80px 120px;
}

.about-content {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-family: var(--font-hero);
    font-size: 44px;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1;
}

.section-description {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-light-grey);
    max-width: 800px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 32px;
}

.about-hero-title {
    font-family: var(--font-hero);
    font-size: 44px;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 32px;
}

#typewriter-text {
    display: inline-block;
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 4px;
    animation: blink 1s infinite;
    color: var(--color-grey);
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.about-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-light-grey);
    max-width: 716px;
    margin-bottom: 60px;
    line-height: 1.6;
}

.stats-grid {
    display: flex;
    gap: 56px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 207px;
}

.stat-number {
    font-family: var(--font-numbers);
    font-size: 36px;
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1;
}

.stat-description {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-grey);
    line-height: 1.4;
}

.about-image {
    position: absolute;
    right: 60px;
    top: 135px;
    width: 510px;
    height: 255px;
    z-index: 1;
}

.about-image img,
.about-image video {
    width: 110%;
    height: 110%;
    object-fit: cover;
}

.about-fade {
    position: absolute;
    left: 893px;
    top: 288px;
    width: 497px;
    height: 158px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    transform: rotate(90deg);
    transform-origin: left top;
}

/* Logos Section */
.logos {
    position: relative;
    width: 100%;
    height: 150px;
    background: var(--color-bg-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.logos-container {
    position: relative;
    height: 90px;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 80px;
    height: 100%;
    animation: scroll-logos 30s linear infinite;
}

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

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

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-height: 24px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(31%);
    opacity: 1;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: none;
    opacity: 1;
}

.logo-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}

.logo-fade-left {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg-dark) 0%, transparent 100%);
}

.logo-fade-right {
    right: 0;
    background: linear-gradient(270deg, var(--color-bg-dark) 0%, transparent 100%);
}

/* Capabilities Section */
.capabilities {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 581px;
    background: var(--color-black);
    padding: 82px 67px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-top: 68px;
}

.capability-column {
    display: flex;
    flex-direction: column;
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.capability-icon {
    width: 16px;
    height: 16px;
    color: var(--color-white);
}

.capability-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-white);
}

.capability-divider {
    width: 100%;
    height: 2px;
    background: var(--color-lighter-grey);
    margin-bottom: 24px;
}

/* Capability Divider Gradients */
.capability-column.strategy .capability-divider {
    background: linear-gradient(var(--gradient-angle), var(--color-red) 0%, var(--color-orange) 100%);
}

.capability-column.design .capability-divider {
    background: linear-gradient(var(--gradient-angle), var(--color-green) 0%, var(--color-teal) 100%);
}

.capability-column.development .capability-divider {
    background: linear-gradient(var(--gradient-angle), var(--color-cyan) 0%, var(--color-blue) 100%);
}

.capability-column.data-science .capability-divider {
    background: linear-gradient(var(--gradient-angle), var(--color-violet) 0%, var(--color-magenta) 100%);
}

.capability-content {
    column-count: 2;
    column-gap: 24px;
}

.capability-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    break-inside: avoid;
    margin-bottom: 32px;
}

.capability-subtitle {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-white);
}

.capability-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.capability-list li {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-grey);
}

/* Our Work Section */
.our-work {
    position: relative;
    width: 100%;
    background: var(--color-black);
    padding: 96px 0 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animated Grid Background */
.our-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(80, 80, 80, 0.2) 25%, rgba(80, 80, 80, 0.2) 26%, transparent 27%, transparent 74%, rgba(80, 80, 80, 0.2) 75%, rgba(80, 80, 80, 0.2) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(80, 80, 80, 0.2) 25%, rgba(80, 80, 80, 0.2) 26%, transparent 27%, transparent 74%, rgba(80, 80, 80, 0.2) 75%, rgba(80, 80, 80, 0.2) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    background-position: 0 0;
    opacity: 1;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Animated Grid Scan Effect */
.our-work::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(64, 93, 255, 0.08) 50%,
            transparent 100%);
    animation: gridScan 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

@keyframes gridScan {

    0%,
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }

    50% {
        transform: translateY(100%);
        opacity: 1;
    }
}

/* Glowing animated orbs */
.work-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.work-glow-1 {
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
    animation: glowMove1 25s ease-in-out infinite;
}

.work-glow-2 {
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    animation: glowMove2 30s ease-in-out infinite;
}

.work-glow-3 {
    background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
    animation: glowMove3 35s ease-in-out infinite;
}

.work-glow-4 {
    background: radial-gradient(circle, var(--color-green) 0%, transparent 70%);
    animation: glowMove4 28s ease-in-out infinite;
}

.work-glow-5 {
    background: radial-gradient(circle, var(--color-magenta) 0%, transparent 70%);
    animation: glowMove5 32s ease-in-out infinite;
}

@keyframes glowMove1 {

    0%,
    100% {
        transform: translate(-10%, 20%);
    }

    50% {
        transform: translate(80%, 60%);
    }
}

@keyframes glowMove2 {

    0%,
    100% {
        transform: translate(90%, 80%);
    }

    50% {
        transform: translate(10%, 10%);
    }
}

@keyframes glowMove3 {

    0%,
    100% {
        transform: translate(50%, -10%);
    }

    50% {
        transform: translate(30%, 90%);
    }
}

@keyframes glowMove4 {

    0%,
    100% {
        transform: translate(70%, 50%);
    }

    50% {
        transform: translate(-10%, 30%);
    }
}

@keyframes glowMove5 {

    0%,
    100% {
        transform: translate(20%, 70%);
    }

    50% {
        transform: translate(60%, 5%);
    }
}

/* Grid Line Glows */
.grid-line-glow {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

/* Horizontal Line Glows */
.grid-line-glow-h1,
.grid-line-glow-h2,
.grid-line-glow-h3 {
    height: 2px;
    width: 100%;
    left: 0;
}

.grid-line-glow-h1 {
    top: 25%;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            var(--color-orange) 50%,
            transparent 60%,
            transparent 100%);
    animation: lineGlowHorizontalLR 8s linear infinite;
}

.grid-line-glow-h2 {
    top: 50%;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            var(--color-cyan) 50%,
            transparent 60%,
            transparent 100%);
    animation: lineGlowHorizontalRL 10s linear infinite;
}

.grid-line-glow-h3 {
    top: 75%;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            var(--color-magenta) 50%,
            transparent 60%,
            transparent 100%);
    animation: lineGlowHorizontalLR 12s linear infinite;
    animation-delay: -4s;
}

/* Vertical Line Glows */
.grid-line-glow-v1,
.grid-line-glow-v2,
.grid-line-glow-v3 {
    width: 2px;
    height: 100%;
    top: 0;
}

.grid-line-glow-v1 {
    left: 20%;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 40%,
            var(--color-green) 50%,
            transparent 60%,
            transparent 100%);
    animation: lineGlowVerticalTB 9s linear infinite;
}

.grid-line-glow-v2 {
    left: 50%;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 40%,
            var(--color-violet) 50%,
            transparent 60%,
            transparent 100%);
    animation: lineGlowVerticalBT 11s linear infinite;
}

.grid-line-glow-v3 {
    left: 80%;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 40%,
            var(--color-yellow) 50%,
            transparent 60%,
            transparent 100%);
    animation: lineGlowVerticalTB 13s linear infinite;
    animation-delay: -6s;
}

/* Horizontal Line Animations */
@keyframes lineGlowHorizontalLR {
    0% {
        transform: translateX(-100%);
    }

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

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

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

/* Vertical Line Animations */
@keyframes lineGlowVerticalTB {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes lineGlowVerticalBT {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

.work-header {
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
    width: 100%;
    max-width: 1440px;
    padding: 0 80px;
}

.work-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 200px);
    gap: 16px;
    justify-content: start;
    z-index: 10;
    width: 100%;
    max-width: 1440px;
    padding: 0 80px;
}

.work-square {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(80, 80, 80, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.work-square:hover {
    background: #000000;
    backdrop-filter: blur(8px);
    border-color: rgba(80, 80, 80, 0.2);
}

/* Work Square Corners - Uses unified corner system */
.work-corner {
    position: absolute;
    width: var(--corner-size);
    /* 8px by default */
    height: var(--corner-size);
    border: none;
    transition: all 0.3s;
}

.work-corner-tl {
    top: var(--corner-offset);
    left: var(--corner-offset);
    border-top: var(--corner-border-width) solid var(--color-grey);
    border-left: var(--corner-border-width) solid var(--color-grey);
}

.work-corner-tr {
    top: var(--corner-offset);
    right: var(--corner-offset);
    border-top: var(--corner-border-width) solid var(--color-grey);
    border-right: var(--corner-border-width) solid var(--color-grey);
}

.work-corner-bl {
    bottom: var(--corner-offset);
    left: var(--corner-offset);
    border-bottom: var(--corner-border-width) solid var(--color-grey);
    border-left: var(--corner-border-width) solid var(--color-grey);
}

.work-corner-br {
    bottom: var(--corner-offset);
    right: var(--corner-offset);
    border-bottom: var(--corner-border-width) solid var(--color-grey);
    border-right: var(--corner-border-width) solid var(--color-grey);
}

.work-square:hover .work-corner {
    width: 16px;
    /* 16px on hover, matching button system */
    height: 16px;
}

/* Pixelated Transition Effect */
.pixel-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-square:hover .pixel-grid {
    opacity: 1;
}

.pixel {
    background-color: rgba(255, 255, 255, 0.05);
    width: 100%;
    height: 100%;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.work-square:hover .pixel {
    transform: scale(1);
    transition-delay: var(--delay);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Work Square Content */
.work-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-grey);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.work-square:hover .work-tag {
    opacity: 0;
}

.work-name {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-grey);
    opacity: 1;
    transition: opacity 0.3s ease;
    text-align: right;
    z-index: 2;
}

.work-square:hover .work-name {
    opacity: 0;
}

.work-description {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateY(10px);
}

.work-square:hover .work-description {
    opacity: 1;
    transform: translateY(0);
}

/* Work Logo Styles */
.work-logo {
    position: absolute;
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(31%);
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.work-square:hover .work-logo {
    filter: none;
    top: 14px;
    left: 14px;
    transform: translate(0, 0);
    max-width: 100px;
    max-height: 32px;
}

/* Default state - logo centered */
.work-square .work-logo {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Work Arrow Styles */
.work-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
    filter: brightness(0) saturate(100%) invert(72%) sepia(0%) saturate(0%) hue-rotate(201deg) brightness(95%) contrast(91%);
}

.work-square:hover .work-arrow {
    opacity: 1;
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: var(--color-bg-dark);
    padding: 74px 66px 40px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-text {
    font-family: var(--font-logo);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-email {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-white);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-grey);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.footer-tagline:hover {
    color: var(--color-white);
}

.footer-icon-heart {
    width: 14px;
    height: 14px;
    margin: 0 2px;
    background-color: var(--color-grey);
    -webkit-mask-image: url(../icons/heart.svg);
    mask-image: url(../icons/heart.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.3s ease;
}

.footer-tagline:hover .footer-icon-heart {
    background-color: var(--color-red);
}

.footer-icon-flag {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    filter: brightness(0) saturate(100%) invert(31%);
    transition: all 0.3s ease;
}

.footer-tagline:hover .footer-icon-flag {
    filter: none;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-grey);
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-icon {
    width: 16px;
    height: 16px;
}

.footer-column:nth-child(2) .footer-icon {
    color: var(--color-light-grey);
    fill: currentColor;
    filter: brightness(0.5) sepia(0) saturate(0);
    opacity: 0.8;
}

.footer-column a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--color-orange);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 40px;
    }

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

    .about-image {
        display: none;
    }

    .about-fade {
        display: none;
    }

    .work-grid {
        grid-template-columns: repeat(4, 200px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 40px;
    }

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

    .capability-content {
        column-count: 1;
    }

    .stats-grid {
        flex-direction: column;
        gap: 32px;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .our-work {
        padding: 60px 0 80px;
    }

    .work-header,
    .work-grid {
        padding: 0 40px;
    }

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

    .work-square {
        width: 100%;
        aspect-ratio: 1;
        height: auto;
    }

    .work-square .work-logo {
        max-width: 80px;
        max-height: 16px;
    }
}