/*
Theme Name: BCL Developer
Theme URI: https://blackcursivlabs.com
Author: Black Cursiv Labs
Author URI: https://blackcursivlabs.com
Description: Performance creative studio theme for Black Cursiv Labs.
Version: 1.0.0
License: Proprietary
Text Domain: bcl-developer
*/

/* ==========================================================================
   CORE DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Brand Colors - Dark Theme Base */
    --bg-primary: #0E1113;
    /* Near Black */
    --bg-surface: #181C1F;
    /* Deep Slate */

    --accent-primary: #C2A350;
    /* Gold */
    --accent-primary-hover: #AF743A;
    /* Deep Gold */
    --accent-secondary: #3FA38C;
    /* Teal */
    --accent-mint: #5BCD97;
    /* Mint Accent */

    --text-main: #E5E7EB;
    /* Off White */
    --text-muted: #9AA0A6;
    /* Cool Gray */
    --border-subtle: #23282C;
    /* Dark Graphite */

    /* Typography */
    --font-heading: 'Instrument Serif', serif;
    --font-ui: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radius & Spacing */
    --radius-sm: 16px;
    --radius-md: 20px;
    --radius-lg: 28px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.3s var(--ease-smooth);
    --transition-slow: 0.8s var(--ease-cinematic);
}

/* ==========================================================================
   RESEARCH & BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ==========================================================================
   TEXTURE & NOISE
   ========================================================================== */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    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");
}

/* ==========================================================================
   TYPOGRAPHY CLASSES
   ========================================================================== */

h1,
h2,
h3,
.heading {
    font-family: var(--font-heading);
    font-weight: 400;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

section {
    padding: 120px 0;
    position: relative;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--text-main);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast), background-color 0.2s;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width var(--transition-fast), height var(--transition-fast), border-color 0.3s;
}

/* Hover States for Cursor */
body.hover-interactive .cursor-dot {
    background: var(--accent-primary);
}

body.hover-interactive .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(63, 163, 140, 0.4);
    /* Teal glow */
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */

a {
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary-hover);
    transform: translateY(100%);
    transition: transform var(--transition-fast);
    z-index: 1;
}

.btn-primary:hover:after {
    transform: translateY(0);
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

/* Adjust button text color on hover */
.btn-primary:hover {
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(194, 163, 80, 0.4);
    /* Gold Glow */
}

.btn-text {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.btn-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.btn-text:hover {
    color: var(--accent-primary);
}

.btn-text:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 900px;
    transition: all var(--transition-slow);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border-radius: 100px;
    background: transparent;
    transition: all var(--transition-fast);
    position: relative;
    /* Anchor for absolute logo */
}

.navbar.scrolled .nav-container {
    background: rgba(26, 31, 34, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    color: var(--accent-primary);
    position: absolute;
    /* Rip out of flex flow */
    left: 32px;
    /* Pin to left edge with padding */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    /* Slightly wider gap for center-stage elegance */
}

.nav-links li a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: flex-end;
    /* Bottom alignment as requested */
    position: relative;
    overflow: hidden;
}

.hero-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: brightness(0.85);
    /* Slightly darken video to ensure text readability */
    transform: scale(1.05);
    /* Optional subtle scale for parallax or initial effect */
}

/* Maintain the gradient overlay over the photo/video */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(14, 17, 19, 0.2) 0%, rgba(14, 17, 19, 0.6) 70%, var(--bg-primary) 100%);
    pointer-events: none;
}

/* A deeper overlay for the bottom to ensure text readability */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(14, 17, 19, 0.8) 40%, transparent 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 5vw 15vh 15vw;
    /* Strong left offset pushes text toward center-left */
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
}

@media screen and (max-width: 1024px) {
    .hero-content {
        padding: 0 5vw 15vh 8vw;
        /* Less aggressive push on tablets */
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 0 5vw 15vh 6vw;
        /* Reset to near standard left padding for mobile */
    }
}

.hero-label {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: -10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-cinematic) forwards 0.2s;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-cinematic) forwards 0.4s;
}

.hero-subtext {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-cinematic) forwards 0.6s;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-cinematic) forwards 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FEATURE SECTION (Systems Not Services)
   ========================================================================== */

.features {
    padding: 160px 0;
}

.grid-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

.tall-image-block {
    width: 100%;
    height: 700px;
    background: var(--bg-surface) url('assets/feature_tall.jpg') no-repeat center center / cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.dark-system-block {
    padding: 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.dark-system-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.dark-system-block h2 {
    font-size: 2.5rem;
    margin: 16px 0 48px 0;
}

/* Interactive List */
.interactive-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
    position: relative;
}

.list-item:last-child {
    border-bottom: none;
}

.list-text {
    font-size: 1.125rem;
    font-weight: 500;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.list-icon {
    font-family: var(--font-mono);
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

/* Hover effects for list */
.list-item:hover {
    padding-left: 20px;
    padding-right: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.list-item:hover .list-text {
    color: var(--accent-primary);
    transform: translateX(10px);
}

.list-item:hover .list-icon {
    color: var(--accent-primary);
    transform: rotate(45deg);
}

/* ==========================================================================
   STATEMENT SECTION
   ========================================================================== */

.statement {
    padding: 200px 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-surface), var(--bg-primary));
    text-align: center;
    position: relative;
}

/* Subtle grid background */
.statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.statement-headline {
    position: relative;
    z-index: 1;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 64px;
}

.statement-headline em {
    font-style: italic;
    color: var(--accent-primary);
    /* Gold Accent */
    text-shadow: 0 0 30px rgba(194, 163, 80, 0.3);
}

.statement-subtext {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.statement-subtext span {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-muted);
    padding: 12px 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    background: rgba(14, 17, 19, 0.5);
    backdrop-filter: blur(4px);
}

/* ==========================================================================
   WORK / PORTFOLIO SECTION (Carousel)
   ========================================================================== */

.portfolio {
    padding: 120px 0;
    overflow: hidden;
    /* Prevent horizontal scrollbar on the body from the carousel overflowing if not contained */
}

.container-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.header-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.section-pill {
    background: rgba(255, 255, 255, 0.08);
    /* slightly stronger than default pill for header */
    border: none;
    margin-bottom: 0;
}

.section-heading-muted {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-white {
    color: var(--text-main);
}

/* Large Solid White Button for Section Headers */
.btn-solid-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 100px;
    /* Slight pill/rounded rectangle */
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    /* Push button down slightly so it visually aligns with bottom of text block */
    margin-bottom: 8px;
}

.btn-solid-white:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
}

/* Horizontal Scrolling Carousel */
.work-carousel {
    display: flex;
    gap: 24px;
    padding: 0;
    /* Removing side padding so 1 card perfectly aligns with container edges */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Crucial for JS arrow buttons to animate gracefully */
}

.work-carousel::-webkit-scrollbar {
    display: none;
}

/* Individual Card */
.work-card {
    flex: 0 0 100%;
    /* Exactly 1 card per view */
    max-width: none;
    /* Let container control max width */
    height: 600px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    display: flex;
    flex-direction: row;
    scroll-snap-align: center;
    overflow: hidden;
    position: relative;
    /* Optional slight scale down on hover for tactile feel */
    transition: transform var(--transition-slow);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.work-card:hover {
    transform: scale(0.99);
}

/* Left side: Media */
.work-card-media {
    flex: 65%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 1px solid var(--border-subtle);
}

.stat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 64px 48px 48px 48px;
    background: linear-gradient(to top, rgba(14, 17, 19, 0.95) 0%, rgba(14, 17, 19, 0.4) 60%, transparent 100%);
    pointer-events: none;
}

.stat-number {
    font-size: 4rem;
    font-family: var(--font-mono);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-main);
}

.stat-label {
    font-size: 1.125rem;
    font-family: var(--font-ui);
    color: var(--text-muted);
}

/* Right side: Information */
.work-card-info {
    flex: 35%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

.card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pill-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
}

.card-bottom {
    display: flex;
    flex-direction: column;
}

.card-tags {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-desc {
    font-family: var(--font-ui);
    /* Sans-serif body font per guideline */
    font-size: 1.25rem;
    color: var(--text-main);
}

@media screen and (max-width: 1024px) {
    .work-card {
        height: 500px;
    }

    .card-title {
        font-size: 2.25rem;
    }
}

@media screen and (max-width: 768px) {
    .container-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .work-card {
        flex-direction: column;
        height: auto;
        min-height: 600px;
    }

    .work-card-media {
        flex: none;
        height: 350px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .work-card-info {
        flex: 1;
        /* take remaining vertical space */
        padding: 32px;
    }

    .stat-overlay {
        padding: 48px 32px 32px 32px;
    }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: 200px 0;
    background: var(--bg-surface);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 48px;
    line-height: 1.1;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(194, 163, 80, 0.15);
    /* Subtle Gold Glow */
}

/* Very subtle teal glow behind CTA */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(63, 163, 140, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 900px) {
    .grid-asymmetric {
        grid-template-columns: 1fr;
    }

    .tall-image-block {
        height: 400px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid .portfolio-card:nth-child(even) {
        margin-top: 0;
    }

    .custom-cursor {
        display: none;
        /* Disable custom cursor on mobile */
    }

    body {
        cursor: auto;
    }
}

/* ==========================================================================
   ACCORDION HEADER SECTION
   ========================================================================== */

.accordion-header {
    background-color: var(--bg-primary);
    padding: 120px 0 48px 0;
}

/* ==========================================================================
   ACCORDION SECTION
   ========================================================================== */

.accordion-section {
    width: 100%;
    max-width: 100vw;
    height: 80vh;
    padding: 0;
    /* Override default section padding */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
}

.accordion {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: flex var(--transition-slow);
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
}

.panel:last-child {
    border-right: none;
}

.panel:hover {
    flex: 4;
}

.panel-bg {
    position: absolute;
    inset: 0;
    background-color: var(--bg-surface);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0.7);
    transform: scale(1.0);
    transition: filter var(--transition-slow), transform var(--transition-slow);
    z-index: 0;
    will-change: transform, filter;
}

/* Gradient overlay for text readability */
.panel-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(14, 17, 19, 0.95) 0%, transparent 100%);
    pointer-events: none;
}

.panel:hover .panel-bg {
    filter: grayscale(0%) brightness(1.0);
    transform: scale(1.05);
}

.panel-collapsed {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.panel:hover .panel-collapsed {
    opacity: 0;
    pointer-events: none;
}

.panel-num {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.panel-title-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition-fast);
    font-family: var(--font-ui);
}

.panel:hover .panel-title-vertical {
    color: var(--text-main);
}

.panel-expanded {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 4rem;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 0.1s;
    z-index: 2;
    pointer-events: none;
}

.expanded-content {
    min-width: 400px;
    max-width: 800px;
}

.panel:hover .panel-expanded {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.panel-title-large {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.panel-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-ui);
}

.panel-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 380px;
    margin-bottom: 2.5rem;
    font-family: var(--font-ui);
}

@media screen and (max-width: 1024px) {
    .panel-expanded {
        padding: 2rem;
    }

    .panel-title-large {
        font-size: 2.25rem;
    }

    .panel-desc {
        font-size: 0.95rem;
        max-width: 320px;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .accordion-section {
        height: auto;
        min-height: 100vh;
    }

    .accordion {
        flex-direction: column;
    }

    .panel {
        min-height: 200px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .panel:hover {
        flex: auto;
        min-height: 50vh;
    }

    .panel-collapsed {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
    }

    .panel-num {
        margin-right: 2rem;
        font-size: 1.25rem;
    }

    .panel-title-vertical {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        font-size: 1.25rem;
    }

    .expanded-content {
        min-width: 100%;
        max-width: 100%;
    }

    .panel-title-large {
        font-size: 2rem;
    }
}

/* ==========================================================================
   VALUE PROPOSITION SECTION
   ========================================================================== */

.value-prop {
    padding: 160px 0;
    background-color: var(--bg-primary);
    background-image: url('assets/Studio.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Heavy dark wash overlay for typography legibility */
.value-prop::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(14, 17, 19, 0.85);
    /* 85% opacity dark match for var(--bg-primary) */
    z-index: 0;
    pointer-events: none;
}

.value-prop-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Official Logo */
.value-prop-logo {
    display: block;
    max-width: 120px;
    height: auto;
    margin-bottom: 48px;
    opacity: 0.9;
}

.value-prop-headline {
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    margin-bottom: 64px;
    font-weight: 400;
}

.value-prop-body {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.4;
    color: var(--text-muted);
    font-family: var(--font-ui);
    margin-bottom: 64px;
    max-width: 850px;
}

.value-prop-body p {
    margin-bottom: 32px;
}

.value-prop-body p:last-child {
    margin-bottom: 0;
}

.value-prop-body .text-white {
    color: var(--text-main);
}

.value-prop-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-solid-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-solid-dark:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .value-prop {
        padding: 100px 0;
    }

    .value-prop-headline {
        margin-bottom: 48px;
    }

    .value-prop-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-solid-dark {
        margin-bottom: 0;
    }
}

/* --- Marquee / Crawl Section --- */
.marquee-section {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    z-index: 10;
    position: relative;
    /* Optional shadow to separate from hero */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.marquee-container {
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    animation: marquee-scroll 25s linear infinite;
    /* Extra padding to align perfectly with the next block's margin */
    padding-right: 2rem;
}

.marquee-section:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-right: 2rem;
    cursor: default;
    transition: color var(--transition-fast);
}

.marquee-content span:hover {
    color: var(--text-main);
}

.marquee-content span.dot {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
   TESTIMONIALS (Curated Perspectives Orbit)
   ========================================================================== */

.testimonials {
    padding: 160px 0;
    background-color: var(--bg-primary);
    background-image: url('assets/city.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(14, 17, 19, 0.85);
    /* 85% opacity dark match for var(--bg-primary) */
    z-index: 0;
    pointer-events: none;
}

.testimonials-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* --- Left Pane: Typography --- */
.testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote-wrapper {
    min-height: 280px;
    /* stabilize layout during crossfade */
    display: flex;
    align-items: center;
    margin-bottom: 48px;
}

.testimonial-quote {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.15;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 400;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonial-quote.is-fading {
    opacity: 0;
    transform: translateY(10px);
}

.testimonial-meta {
    margin-bottom: 48px;
}

.testimonial-name {
    font-size: 1.5rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.testimonial-role {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* --- Controls --- */
.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.t-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.t-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.t-progress-track {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.t-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--text-main);
    width: 20%;
    /* controlled by JS */
    transition: width var(--transition-slow);
}

.t-counter {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.t-counter span {
    color: var(--text-main);
}

/* --- Right Pane: Orbit System --- */
.testimonial-orbit-system {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating SVG text ring behind active */
.orbit-center-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slowSpin 25s linear infinite;
    z-index: 1;
}

.orbit-center-ring svg {
    overflow: visible;
}

.ring-text {
    font-family: var(--font-mono);
    font-size: 18px;
    fill: var(--accent-primary);
    letter-spacing: 4px;
}

@keyframes slowSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Base Avatar Node */
.t-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #1a1e22;
    /* generic placeholder bg */
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, filter 0.8s ease;
    will-change: transform, opacity;
}

/* --- Orbital Positions --- */

/* The active/center node */
.pos-center {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 1;
    z-index: 10;
    filter: grayscale(0%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Orbit Node 1: Top Right */
.pos-1 {
    transform: translate(calc(-50% + 180px), calc(-50% - 180px)) scale(0.65);
    opacity: 0.4;
    z-index: 5;
    filter: grayscale(80%);
}

/* Orbit Node 2: Bottom Right */
.pos-2 {
    transform: translate(calc(-50% + 180px), calc(-50% + 180px)) scale(0.45);
    opacity: 0.2;
    z-index: 4;
    filter: grayscale(100%);
}

/* Orbit Node 3: Bottom Left */
.pos-3 {
    transform: translate(calc(-50% - 180px), calc(-50% + 180px)) scale(0.45);
    opacity: 0.2;
    z-index: 4;
    filter: grayscale(100%);
}

/* Orbit Node 4: Top Left */
.pos-4 {
    transform: translate(calc(-50% - 180px), calc(-50% - 180px)) scale(0.65);
    opacity: 0.4;
    z-index: 5;
    filter: grayscale(80%);
}

/* Responsive fallback */
@media screen and (max-width: 1024px) {
    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .testimonial-orbit-system {
        height: 500px;
        aspect-ratio: auto;
    }

    .orbit-center-ring {
        width: 250px;
        height: 250px;
    }
}

/* ==========================================================================
   INTERIOR PAGES (Services)
   ========================================================================== */

/* Services Hero */
.services-hero {
    height: auto;
    min-height: 50vh;
    padding: 220px 0 100px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

/* Base structural glow acting as a spotlight from the top edge */
.services-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(194, 163, 80, 0.08) 0%, rgba(63, 163, 140, 0.05) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Deep Dive Foundation */
.service-detail-blocks {
    padding: 80px 0 160px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.service-block {
    display: flex;
    gap: 64px;
    margin-bottom: 120px;
    align-items: stretch;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-media {
    flex: 1;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    min-height: 500px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    filter: grayscale(80%) contrast(1.1);
    transition: filter var(--transition-slow);
}

.service-block:hover .service-media {
    filter: grayscale(0%) contrast(1.0);
}

.service-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(14, 17, 19, 0.5), transparent);
    pointer-events: none;
}

.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Re-Flows for interior details */
@media screen and (max-width: 1024px) {
    .service-block {
        gap: 32px;
        flex-direction: column !important;
    }

    .service-media {
        min-height: 400px;
    }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    padding: 120px 0;
    background-color: var(--bg-surface);
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 0;
    cursor: pointer;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.faq-question h3 {
    font-size: 1.5rem;
    font-family: var(--font-ui);
    font-weight: 400;
    color: var(--text-main);
    margin: 0;
    transition: color var(--transition-fast);
}

.faq-item:hover .faq-question h3,
.faq-item.active .faq-question h3 {
    color: var(--accent-primary);
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-answer {
    line-height: 1.6;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 1.125rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease-smooth), opacity 0.4s var(--ease-smooth), margin-top 0.4s var(--ease-smooth);
}

.faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
    margin-top: 24px;
}

/* ==========================================================================
   PORTFOLIO PAGE (Asymmetric Grid)
   ========================================================================== */

.portfolio-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.port-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.port-card {
    width: 100%;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-surface);
}

.port-media {
    width: 100%;
    /* Default to 4:5 aspect ratio */
    padding-top: 125%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: grayscale(40%) contrast(1.1);
}

/* Stagger sizes rhythmically within the columns */
.port-col.col-right .port-card:nth-child(even) .port-media {
    padding-top: 140%;
}

.port-col.col-left .port-card:nth-child(even) .port-media {
    padding-top: 100%;
    /* 1:1 aspect ratio */
}

/* Hover behaviors */
.port-card:hover .port-media {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.0);
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 17, 19, 0.95) 0%, rgba(14, 17, 19, 0.2) 60%, transparent 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.port-stat {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--text-main);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-cinematic);
}

.port-card:hover .port-stat {
    opacity: 1;
    transform: translateY(0);
}

.port-meta h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.port-meta p {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.port-card:hover .port-meta h3 {
    color: var(--accent-primary);
}

.port-card:hover .port-meta p {
    color: var(--text-main);
}

@media screen and (max-width: 900px) {
    .portfolio-page-grid {
        grid-template-columns: 1fr;
    }

    .port-col.col-right {
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   ABOUT PAGE (Manifesto Layout)
   ========================================================================== */

.about-hero {
    height: auto;
    min-height: 50vh;
    padding: 220px 0 100px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.doctrine-section {
    padding: 80px 0 160px 0;
    background-color: var(--bg-primary);
}

.doctrine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 120px;
}

.doctrine-text {
    padding-right: 40px;
}

.doctrine-media {
    width: 100%;
    min-height: 600px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-subtle);
    filter: grayscale(80%) contrast(1.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transition: filter var(--transition-slow);
}

.doctrine-media:hover {
    filter: grayscale(0%) contrast(1.0);
}

.doctrine-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    padding: 40px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
}

@media screen and (max-width: 1024px) {
    .doctrine-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctrine-media {
        min-height: 400px;
        order: -1;
        /* Push image to top on mobile */
    }

    .doctrine-text {
        padding-right: 0;
    }

    .doctrine-values-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONTACT PAGE (Form Layout)
   ========================================================================== */

.contact-hero {
    height: auto;
    min-height: 40vh;
    padding: 220px 0 60px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-section {
    padding: 60px 0 160px 0;
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 64px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-meta-group {
    margin-bottom: 32px;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
}

.contact-email:hover {
    color: var(--accent-primary);
}

.contact-form-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 56px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group .mono-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.custom-input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    color: var(--text-light);
    font-family: var(--font-ui);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.custom-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(194, 163, 80, 0.1);
}

/* Removes default styling from select dropdowns for a cleaner look */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C2A350' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
}

textarea.custom-input {
    resize: vertical;
    min-height: 120px;
}

@media screen and (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

/* --- Tablet: 768px --- */
@media screen and (max-width: 768px) {

    /* Navbar: compact centered links */
    .navbar {
        top: 16px;
        width: 95%;
    }

    .nav-container {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }

    .logo {
        position: static;
        text-align: center;
        font-size: 1.25rem !important;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 0.8rem;
    }

    /* Statement section */
    .statement {
        padding: 120px 0;
    }

    .statement-subtext span {
        font-size: 1rem;
        padding: 10px 20px;
    }

    /* CTA section */
    .cta-section {
        padding: 120px 0;
    }

    /* Service hero padding */
    .services-hero,
    .about-hero,
    .contact-hero {
        padding: 160px 0 80px 0;
    }

    /* Service media reduced min-height */
    .service-media {
        min-height: 300px;
    }

    /* FAQ question text */
    .faq-question h3 {
        font-size: 1.25rem;
    }

    /* Port card overlay padding */
    .port-overlay {
        padding: 24px;
    }

    .port-meta h3 {
        font-size: 1.75rem;
    }

    /* Testimonial quote wrapper */
    .testimonial-quote-wrapper {
        min-height: 200px;
    }

    /* Contact email */
    .contact-email {
        font-size: 1.125rem;
    }

    /* Orbit avatars smaller */
    .t-avatar {
        width: 100px;
        height: 100px;
    }

    .pos-1 {
        transform: translate(calc(-50% + 120px), calc(-50% - 120px)) scale(0.65);
    }

    .pos-2 {
        transform: translate(calc(-50% + 120px), calc(-50% + 120px)) scale(0.45);
    }

    .pos-3 {
        transform: translate(calc(-50% - 120px), calc(-50% + 120px)) scale(0.45);
    }

    .pos-4 {
        transform: translate(calc(-50% - 120px), calc(-50% - 120px)) scale(0.65);
    }
}

/* --- Mobile: 480px --- */
@media screen and (max-width: 480px) {

    /* Hide custom cursor on mobile */
    .custom-cursor {
        display: none;
    }

    body,
    body * {
        cursor: auto !important;
    }

    /* Reduce global section padding */
    section {
        padding: 80px 0;
    }

    /* Navbar: stacked */
    .navbar {
        top: 8px;
        width: 96%;
    }

    .nav-container {
        padding: 10px 12px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links li a {
        font-size: 0.75rem;
    }

    /* Hero */
    .hero-content {
        padding: 0 5vw 10vh 5vw;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .hero-subtext {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    /* Statement */
    .statement {
        padding: 80px 0;
    }

    .statement-headline {
        margin-bottom: 40px;
    }

    .statement-subtext {
        gap: 8px;
    }

    .statement-subtext span {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Value Prop */
    .value-prop {
        padding: 80px 0;
    }

    .value-prop-headline {
        margin-bottom: 32px !important;
    }

    .value-prop-body {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    /* Accordion header */
    .accordion-header {
        padding: 80px 0 32px 0;
    }

    /* Accordion panels - no min-height needed */
    .panel {
        min-height: 140px;
    }

    .panel-expanded {
        padding: 1.5rem;
    }

    .panel-title-large {
        font-size: 1.5rem;
    }

    .panel-desc {
        font-size: 0.875rem;
    }

    .expanded-content {
        min-width: 100%;
    }

    /* Work cards */
    .work-card-media {
        height: 250px;
    }

    .work-card-info {
        padding: 24px;
    }

    .card-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }

    /* CTA */
    .cta-section {
        padding: 80px 0;
    }

    .cta-section h2 {
        margin-bottom: 32px;
    }

    /* Testimonials */
    .testimonials {
        padding: 80px 0;
    }

    .testimonial-quote {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .testimonial-quote-wrapper {
        min-height: auto;
        margin-bottom: 32px;
    }

    .testimonial-orbit-system {
        height: 350px;
    }

    .orbit-center-ring {
        width: 200px;
        height: 200px;
    }

    .t-avatar {
        width: 80px;
        height: 80px;
    }

    .pos-center {
        transform: translate(-50%, -50%) scale(1.2);
    }

    .pos-1 {
        transform: translate(calc(-50% + 90px), calc(-50% - 90px)) scale(0.55);
    }

    .pos-2 {
        transform: translate(calc(-50% + 90px), calc(-50% + 90px)) scale(0.4);
    }

    .pos-3 {
        transform: translate(calc(-50% - 90px), calc(-50% + 90px)) scale(0.4);
    }

    .pos-4 {
        transform: translate(calc(-50% - 90px), calc(-50% - 90px)) scale(0.55);
    }

    /* Services page */
    .services-hero,
    .about-hero,
    .contact-hero {
        padding: 140px 0 60px 0;
        min-height: auto;
    }

    .service-block {
        margin-bottom: 60px;
        gap: 24px;
    }

    .service-media {
        min-height: 250px;
    }

    /* FAQ */
    .faq-section {
        padding: 60px 0;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    /* Portfolio page */
    .port-meta h3 {
        font-size: 1.5rem;
    }

    /* About page */
    .doctrine-section {
        padding: 40px 0 80px 0;
    }

    .doctrine-media {
        min-height: 280px;
    }

    .doctrine-grid {
        margin-bottom: 60px;
    }

    .value-card {
        padding: 24px;
    }

    /* Contact */
    .contact-section {
        padding: 40px 0 80px 0;
    }

    .contact-email {
        font-size: 1rem;
        word-break: break-all;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* ==========================================================================
   FOOTER (Full Grid)
   ========================================================================== */

.footer {
    padding: 80px 0 0 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--text-main);
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 48px 0 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-tagline {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }
}