:root {
    --bg-color: #030303;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --accent: #FFFFFF;
    --accent-hover: #E0E0E0;
    --border-color: rgba(255, 255, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.05);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 90px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-color);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    /* mix-blend-mode removed — causes compositor jank on Safari */
    transition: width 0.2s, height 0.2s;
}

#cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, background 0.2s;
}

body.hovering #cursor {
    width: 0;
    height: 0;
}

body.hovering #cursor-follower {
    width: 60px;
    height: 60px;
    background: transparent;
    border-color: var(--accent);
}

@media (max-width: 1024px) {
    #cursor, #cursor-follower { display: none !important; }
    * { cursor: auto !important; }
}

/* Typography */
h1, h2, h3, h4, h5, h6, .nav-links {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
}

.section-padding {
    padding: 3rem 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(3, 3, 3, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

/* Scroll-to-top button — hidden until user passes the hero section */
.scroll-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s,
                background 0.2s;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

nav ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:not(.btn):hover::after {
    width: 100%;
}

.btn, .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: transparent;
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.btn::before, .cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover::before, .cta-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover, .cta-btn:hover {
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.arrow {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-btn:hover .arrow {
    transform: translateY(2px);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 20px;
    z-index: 100;
}

.menu-toggle .bar {
    width: 100%; height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 5%;
}

.canvas-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.hero-logo {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
    pointer-events: none;
}

/* Hero subtitle hidden on all browsers — the image carries it on Safari/mobile,
   and the canvas hero stands alone on Chrome/Firefox desktop. */
.hero-subtitle {
    display: none;
}

/* Mobile logo image — hidden on desktop by default.
   JS forces it visible on all Safari (iPhone, iPad, macOS Safari). */
.hero-logo-mobile {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    height: auto;
}

/* Mobile / iPad sizing */
@media (max-width: 1024px) {
    .hero-logo-mobile {
        top: 12vh;
        width: 88vw;
        max-width: 480px;
    }
}

/* Desktop Safari sizing — JS sets display:block, CSS controls proportions */
@media (min-width: 1025px) {
    .hero-logo-mobile {
        top: 50%;
        transform: translate(-50%, -62%);
        width: 52vw;
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .hero { min-height: 500px; padding: 0 1.5rem; }
    .hero-content { margin-top: 0; }

    /* Canvas hidden on mobile — replaced by static image */
    .hero-logo {
        display: none;
    }

    /* Static brand image: centred, no JS, exact typeface */
    .hero-logo-mobile {
        display: block;
        position: absolute;
        top: 12vh;
        left: 50%;
        transform: translateX(-50%);
        width: 88vw;
        max-width: 480px;
        height: auto;
        pointer-events: none;
        z-index: 0;
    }



    /* Remove spacer influence on mobile — use padding on hero-content instead */
    .hero-content > div[style] {
        height: 0 !important;
    }

    /* Push desc paragraph below the image with explicit top padding */
    .hero-content {
        padding-top: 72vw;
    }

    .hero-desc {
        margin-top: 1.5rem;
    }
}

.intro-headline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.main-title {
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tag-line {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--text-primary) 0%, transparent 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: #080808;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    font-family: var(--font-heading);
    font-size: 4vw;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    align-items: center;
}

.marquee-content span {
    padding: 0 2rem;
}

.marquee-content span.dot {
    font-size: 1vw;
    color: var(--accent);
    -webkit-text-stroke: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Common */
.section-header {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-label {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 500;
}

.large-text {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 500;
    margin-top: 1rem;
}

.dual-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.col-right p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Expertise / Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

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

@media (max-width: 1024px) {
    .services-grid, .services-grid.three-col { grid-template-columns: 1fr; gap: 1.5rem; }
    .dual-col { grid-template-columns: 1fr; gap: 3rem; }
    .large-text { font-size: 2.25rem; }
    .section-title { font-size: 2.25rem; }
    .main-title { font-size: 3rem; }
}

.service-card {
    background: transparent;
    border: 1px solid var(--border-light);
    position: relative;
    transition: var(--transition);
    padding: 0;
}

.service-content {
    background: rgba(10, 10, 10, 0.5);
    padding: 3rem;
    height: 100%;
    z-index: 1;
    position: relative;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .service-content { padding: 2rem; }
}

.service-card:hover .service-content {
    background: rgba(20, 20, 20, 0.8);
}

.service-icon {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4rem;
    color: var(--text-secondary);
}

.service-card h4 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Inline Link */
.inline-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}
.inline-link .arrow { transition: transform 0.3s ease; }
.inline-link:hover .arrow { transform: translateX(5px); }

/* Work Section */
.work-grid {
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.work-item {
    padding: 3rem 1rem;
    border-bottom: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    transition: background 0.3s;
}

.work-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.work-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.work-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.work-item .outcome {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-align: right;
    color: var(--text-primary);
}

.work-item .outcome span {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

@media (max-width: 1000px) {
    .work-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .work-item .outcome {
        text-align: left;
        margin-top: 1rem;
    }
}

.email-link {
    display: inline-block;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

/* Contact Form */
.dark-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: var(--transition);
    resize: none;
    cursor: none;
}

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

.form-group input::placeholder, .form-group textarea::placeholder {
    color: transparent;
}

.form-group label {
    position: absolute;
    top: 1rem; left: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn {
    width: fit-content;
    padding: 1rem 3rem;
    font-size: 1rem;
    margin-top: 1rem;
    background: var(--text-primary);
    color: var(--bg-color);
}
.submit-btn::before {
    background: #CCCCCC;
}
.submit-btn:hover {
    color: var(--bg-color);
}

/* Footer */
footer {
    background: #000;
    padding: 6rem 0 2rem 0;
    border-top: 1px solid var(--border-light);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 0rem;
}

.custom-footer-layout {
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

.brand-col .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.custom-footer-layout .brand-col p {
    margin-top: 0.5rem;
}

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

.inline-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.footer-tag {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.brand-col p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: var(--text-primary);
    font-size: 1rem;
}

.footer-col a:hover {
    color: var(--text-secondary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
    .main-title { font-size: 2.5rem; }
    .large-text { font-size: 2rem; }
    .section-title { font-size: 2.5rem; }
}

/* Animations Triggered by JS */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible .fade-up {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Abstract Image Banner */
.image-banner {
    width: 100%;
    height: 400px;
    margin-top: 5rem;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}
.abstract-bg {
    width: 100%; height: 150%;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    position: absolute;
    top: -25%; left: 0;
    transition: transform 0.1s linear;
}

/* Mobile Menu Interaction */
@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100vw; height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 90;
    }
    nav.active { right: 0; }
    nav ul {
        flex-direction: column;
        font-size: 2rem;
        text-align: center;
    }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

@media (max-width: 600px) {
    .custom-footer-layout { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
    .inline-links { align-items: flex-start; text-align: left; }
    .custom-footer-layout .text-right { text-align: left; }
}
