@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-LIGHT.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham Book Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-MEDIUM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-BOLD.TTF') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-BOLD.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Brand Colors (from nara.md) - Updated for Dark/Gradient Theme */
    --c-primary: #FFFFFF;
    --c-secondary: rgba(255, 255, 255, 0.8);
    --c-cta: #FFFFFF;
    --c-accent: #A8C5D6;
    /* Soft blue accent */

    /* Gradient Identity - Global Background */
    --g-brand: linear-gradient(135deg, #516973 0%, #6C828C 50%, #8898A0 100%);
    --g-card: rgba(255, 255, 255, 0.1);
    --g-card-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-main: 'Gotham', sans-serif;
    --f-serif: 'Gotham', sans-serif;
    /* Mapped to sans for consistency or change to serif if V1 used different font */

    /* Spacing */
    --sp-section: clamp(4rem, 8vw, 8rem);
    --container-width: 1200px;
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background: var(--g-brand);
    background-attachment: fixed;
    /* Parallax-like fixed bg */
    color: var(--c-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
.brand {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--c-primary);
}

p {
    color: var(--c-secondary);
    font-weight: 300;
}

.overline {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--c-accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.accent-text {
    color: var(--c-accent);
}

.body-lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--c-secondary);
    max-width: 700px;
    line-height: 1.6;
}

.body-text {
    font-size: 1rem;
    color: var(--c-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.center-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ======================= NAVIGATION (Refined) ======================= */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.fixed-nav.scrolled {
    padding: 1rem 0;
    top: 1rem;
}

/* The actual "Pill" container */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

/* When scrolled, wrap content in a glass pill */
.fixed-nav.scrolled .nav-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 2rem;
    /* Initial padding */
    border-radius: 50px;
    max-width: 900px;
    /* Constrain width */
    margin: 0 auto;
    /* Center it */
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1010;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-item {
    color: var(--c-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    /* Hit area */
}

.nav-item:hover {
    color: #fff;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin-bottom: 6px;
    transition: all 0.3s;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 18, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 2.5rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--f-serif);
    /* Serif for elegance */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
}

.mobile-nav-overlay.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .fixed-nav.scrolled .nav-wrapper {
        width: 90%;
        /* Fullish width on mobile */
        padding: 0.8rem 1.5rem;
    }
}

/* ======================= HERO SECTION (FROM V1) ======================= */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax */
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-title i {
    font-family: var(--f-serif);
    font-weight: 700;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.9;
    max-width: 690px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    opacity: 0.7;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Text Animations for Hero V1 */
.line-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ======================= CINEMATIC INTRO SECTION ======================= */
.cinematic-intro {
    padding: 15vh 0;
    /* Significant vertical space */
    background: transparent;
    /* Allows gradient to show through */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    /* Takes up most of the viewport */
}

.cine-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--f-serif);
    color: #fff;
    line-height: 1.2;
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
}

.cine-line {
    display: block;
    opacity: 0.1;
    /* Start faint */
    transform: translateY(20px);
    filter: blur(8px);
    /* Start blurred */
    /* Transition left for CSS-only fallback, but GSAP will override */
    transition: all 0.5s ease;
}

/* ======================= ABOUT SECTION ======================= */
section {
    padding: var(--sp-section) 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

/* ======================= SERVICES SECTION ======================= */
/* ======================= SERVICES ACCORDION ======================= */
.services-accordion {
    display: flex;
    width: 100%;
    height: 500px;
    /* Fixed height for consistency */
    gap: 1rem;
    margin-top: 4rem;
}

.service-panel {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--g-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover/Active State: Expand */
.service-panel:hover,
.service-panel.active {
    flex: 3;
    background: var(--g-card-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.panel-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Bottom align by default */
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.panel-icon {
    margin-bottom: auto;
    /* Push icon to top */
    color: var(--c-accent);
    opacity: 0.8;
    transition: transform 0.4s ease;
}

.service-panel:hover .panel-icon {
    transform: scale(1.1);
    color: #fff;
    opacity: 1;
}

.panel-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    transform-origin: left bottom;
    transition: all 0.4s ease;
    white-space: nowrap;
    /* Prevent wrap nicely during transition */
}

/* Inactive State: Rotate Title Vertically (-90deg) */
.service-panel:not(:hover):not(.active) .panel-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    /* Flip it so it reads bottom-to-top */
    margin-bottom: 0;
    margin-left: 0;
    white-space: nowrap;
}

/* Fallback/Alternative Approach if writing-mode behaves oddly with flex:
   Use transform only. 
*/
.service-panel:not(:hover):not(.active) .panel-title {
    writing-mode: horizontal-tb;
    /* Reset */
    transform: rotate(-90deg) translateX(100%);
    /* Rotate and shift */
    transform-origin: bottom left;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    margin: 0;
    width: max-content;
}

/* Wait, let's keep it simple and clean. 
   The best way for a "spine" label in a flex container:
*/
.service-panel:not(:hover):not(.active) .panel-content {
    align-items: flex-start;
    justify-content: flex-end;
}

.service-panel:not(:hover):not(.active) .panel-title {
    position: absolute;
    bottom: 2rem;
    left: 4.5rem;
    /* Increased from 2rem to prevent clipping of first line */
    transform-origin: bottom left;
    transform: rotate(-90deg);
    margin: 0;
    white-space: nowrap;
    /* Ensure it sits above other content */
    z-index: 10;
}

/* Sub-points: Hidden by default, reveal on expand */
.panel-details {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    /* Delay slightly */
}

.panel-details li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.panel-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--c-accent);
}

/* Reveal details on hover/active */
.service-panel:hover .panel-details,
.service-panel.active .panel-details {
    opacity: 1;
    max-height: 200px;
    /* Enough to show content */
    transform: translateY(0);
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 768px) {
    .services-accordion {
        flex-direction: column;
        height: auto;
    }

    .service-panel {
        height: 100px;
        flex: none;
        /* Disable flex growth on column */
    }

    .service-panel:hover,
    .service-panel.active {
        height: auto;
        /* Expand height instead */
        flex: none;
    }

    .panel-content {
        justify-content: center;
    }

    .panel-icon {
        margin-bottom: 1rem;
    }

    /* Mobile: Reset rotation for closed cards */
    .service-panel:not(:hover):not(.active) .panel-title {
        writing-mode: horizontal-tb;
        transform: none;
        position: static;
        white-space: normal;
        font-size: 1.2rem;
    }

    /* Mobile: Closed card layout - icon next to title, centered vertically, aligned left */
    .service-panel:not(:hover):not(.active) .panel-content {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 1.5rem 2rem;
        gap: 1rem;
    }

    .service-panel:not(:hover):not(.active) .panel-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    /* Mobile: Open card keeps default layout */
    .service-panel:hover .panel-content,
    .service-panel.active .panel-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .service-panel:hover .panel-icon,
    .service-panel.active .panel-icon {
        margin-bottom: auto;
    }

    /* Mobile: Last service panel - title on 2 lines only when closed */
    .service-panel-last:not(:hover):not(.active) .panel-title br {
        display: none;
    }
}

/* ======================= APPROACH SECTION (BRAND COLORS) ======================= */
.section-approach {
    background: #E9F0F5;
    color: #34405a;
}

.section-approach .overline,
.section-approach .section-title,
.section-approach .body-lead,
.section-approach .node-title {
    color: #34405a;
}

.section-approach .process-line {
    background: rgba(52, 64, 90, 0.25);
}

.section-approach .node-num {
    color: rgba(52, 64, 90, 0.15);
}

.section-approach .process-node:hover .node-num {
    color: rgba(52, 64, 90, 0.35);
}

.section-approach .node-circle {
    background: #fff;
    border-color: rgba(52, 64, 90, 0.25);
    box-shadow: 0 0 0 0 rgba(52, 64, 90, 0);
}

.section-approach .node-inner {
    background: #34405a;
    opacity: 0.5;
}

.section-approach .process-node:hover .node-circle {
    border-color: #34405a;
    box-shadow: 0 0 20px rgba(52, 64, 90, 0.2);
    background: #fff;
}

.section-approach .process-node:hover .node-inner {
    background: #34405a;
    opacity: 1;
}

/* ======================= APPROACH INFO-GRAPHIC ======================= */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 6rem;
    padding: 0 2rem;
}

/* Connecting Line */
.process-line {
    position: absolute;
    top: 66px;
    /* Aligns with center of circle */
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.process-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.node-num {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    /* Subtle giant number */
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--f-serif);
    transition: all 0.5s ease;
}

.process-node:hover .node-num {
    color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.node-circle {
    width: 20px;
    height: 20px;
    background: var(--g-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 0 0 rgba(168, 197, 214, 0);
    /* Pulse setup */
}

.node-inner {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s;
}

/* Hover Effects */
.process-node:hover .node-circle {
    border-color: var(--c-accent);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(168, 197, 214, 0.4);
    background: var(--c-accent);
}

.process-node:hover .node-inner {
    background: #fff;
    opacity: 1;
}

.node-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .process-line {
        width: 1px;
        height: 100%;
        left: 50%;
        top: 0;
    }

    .process-node {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 2rem;
        padding-left: 20%;
        /* Offset to align somewhat with center line */
    }

    .node-num {
        font-size: 2rem;
        width: 40px;
        order: 1;
    }

    .node-circle {
        margin: 0;
        order: 2;
        /* Center element */
    }

    .node-title {
        margin: 0;
        order: 3;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .process-flow {
        --approach-line-left: 18%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .process-line {
        left: calc(1.2rem + var(--approach-line-left) + 9px);
    }

    /* Approach: shift numbers left on mobile only */
    .process-node {
        position: relative;
        align-items: center;
        padding-left: var(--approach-line-left);
    }

    .node-num {
        position: absolute;
        left: 0;
        margin-left: 0;
        text-align: left;
        width: auto;
    }

    /* Approach: keep titles on one line on mobile only */
    .node-title {
        white-space: nowrap;
        min-width: 60vw;
        order: 2;
    }

    .node-title br {
        display: none;
    }

    /* Approach: circles in the old number position */
    .node-circle {
        order: 1;
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        flex: 0 0 18px;
    }
}

/* ======================= PROJECTS SECTION ======================= */
/* ======================= PROJECTS SECTION ======================= */
.projects-header {
    margin-bottom: 3rem;
    text-align: center;
}

.project-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cat-item {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    cursor: default;
}

.cat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.cat-sep {
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    margin: 0 0.5rem;
    display: none;
}

.project-statement {
    text-align: center;
    margin-bottom: 5rem;
    font-family: var(--f-serif);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.card-inner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    pointer-events: none;
}

/* Hover Effect: Zoom Image */
.project-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.6;
    transition: opacity 0.5s;
    display: none;
}

.project-card:hover .card-overlay {
    opacity: 0.4;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.card-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.card-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    transform: rotate(0deg);
}

/* Interactive Hover State */
.project-card:hover .card-arrow {
    background: #fff;
    color: #000;
    transform: rotate(45deg);
    /* Arrow points up-right */
}

.project-card:hover .card-title {
    transform: translateX(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-list {
        grid-template-columns: 1fr;
    }

    .card-inner {
        height: 400px;
    }

    .projects-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .projects-header .overline {
        text-align: center;
        width: 100%;
    }

    .project-categories {
        width: 100%;
        flex-direction: column;
    }

    .cat-item {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .cat-sep {
        display: none;
    }
}

/* ======================= WHY NARA SECTION ======================= */
/* ======================= WHY NARA SECTION ======================= */
.section-why {
    position: relative;
    padding: var(--sp-section) 0;
    background: #34405a;
    color: #fff;
}

.section-why .overline,
.section-why .section-title,
.section-why .body-text,
.section-why .pillar-title,
.section-why .pillar-desc,
.section-why .m-val,
.section-why .m-lbl {
    color: #fff;
}

.section-why .metrics-bar,
.section-why .pillar-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.section-why .metric-sep {
    background: rgba(255, 255, 255, 0.3);
}

.why-header {
    margin-bottom: 5rem;
}

.why-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.pillar-card {
    background: var(--g-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.pillar-card:hover {
    background: var(--g-card-hover);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.pillar-icon {
    margin-bottom: 1.5rem;
    color: var(--c-accent);
    opacity: 0.8;
    transition: transform 0.4s;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.pillar-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--c-secondary);
    line-height: 1.6;
}

/* Metrics Bar */
.metrics-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    /* Pill shape */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.metric-item {
    text-align: center;
}

.m-val {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: var(--f-serif);
    /* Serif for elegance */
}

.m-lbl {
    font-size: 0.85rem;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    display: block;
    font-weight: 600;
}

.metric-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .why-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .metrics-bar {
        flex-direction: column;
        border-radius: 20px;
        gap: 2rem;
    }

    .metric-sep {
        width: 40px;
        height: 1px;
    }
}

.metrics-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-content: center;
}

.metric {
    border-left: 3px solid var(--c-accent);
    padding-left: 1.5rem;
    opacity: 0;
}

.m-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.m-lbl {
    font-size: 0.85rem;
    color: var(--c-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    display: block;
}

/* ======================= CLIENTS WRAPPER ======================= */
.section-clients {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
    /* Ensure it covers footer initially */
    background: #E9F0F5;
    /* Light brand background (same as Approach) */
}

.section-clients .overline,
.section-clients .section-subtitle {
    color: #34405a;
}

/* Marquee Styles */
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 3rem 0;
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    /* Allow width to be as wide as content */
    gap: 4rem;
    animation: scrollLoop 30s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.client-item {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--f-serif);
    color: rgba(52, 64, 90, 0.35);
    white-space: nowrap;
    transition: color 0.3s;
}

.client-item:hover {
    color: #34405a;
}

.client-dot {
    width: 8px;
    height: 8px;
    background: #34405a;
    border-radius: 50%;
}

@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half width (one group) */
}

/* Gradient Mask for fading edges */
.marquee-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #E9F0F5 0%, transparent 20%, transparent 80%, #E9F0F5 100%);
    pointer-events: none;
}

/* ======================= FOOTER REVEAL ======================= */
/* 
   Logic: Footer is fixed at bottom with z-index -1.
   Main content has margin-bottom equal to footer height (approx).
   Background of Main must be solid to cover footer until end.
*/

.smooth-wrapper {
    position: relative;
    z-index: 1;
    background: var(--g-brand);
}

.reveal-footer {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #34405a;
    padding: 2rem 0;
    box-sizing: border-box;
    min-height: auto;
}

/* Ensure inner container takes full height to distribute content */
.footer-main .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Responsive adjustment for footer height */
@media (max-width: 768px) {
    .reveal-footer {
        padding: 3rem 0;
    }

    .client-item {
        gap: 2rem;
    }

    .marquee-track {
        gap: 2rem;
    }
}

/* Clean up old metrics block if present */
.metrics-block,
.metric {
    display: none;
}

/* ======================= FOOTER CONTENT ======================= */
.footer-main {
    /* Styles are handled by reveal-footer mostly */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    margin-top: 1.5rem;
    /* Reduced space from text */
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.footer-meta {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--c-secondary);
}

@media (min-width: 769px) {
    .footer-meta {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
}

.socials a {
    color: #fff;
    margin-left: 1.5rem;
    text-decoration: none;
    opacity: 0.7;
}

.socials a:hover {
    opacity: 1;
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 900px) {

    .grid-layout,
    .why-layout,
    .project-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .approach-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ======================= CUSTOM CURSOR ======================= */
.cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out;
    transform: translate(-50%, -50%);
}

.cursor-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

@media (hover: none) {

    .cursor-outer,
    .cursor-inner {
        display: none;
    }
}

/* ======================= MOBILE OPTIMIZATIONS (Phase 3) ======================= */
@media (max-width: 768px) {

    /* --- Typography & Spacing --- */
    :root {
        --sp-section: 4rem;
        /* Halve section spacing */
        --font-main: 'Gotham', sans-serif;
    }

    .hero-title {
        font-size: 3rem !important;
        /* Prevent overflow */
        line-height: 1.1;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .overline {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    /* --- Layout Stacking --- */

    /* Services: Vertical Accordion */
    .section-services .accordion-container {
        flex-direction: column;
        height: auto;
        /* Allow natural height */
    }

    .service-item {
        width: 100% !important;
        /* Full width */
        height: 80px;
        /* Reduced height per item when closed */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 2rem;
    }

    .service-item.active {
        width: 100% !important;
        flex-grow: 1;
        /* Expand vertically */
        height: auto;
        min-height: 350px;
    }

    .s-title {
        writing-mode: horizontal-tb;
        transform: rotate(0);
        white-space: normal;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

    .s-content {
        position: relative;
        opacity: 1;
        transform: translateY(0);
        padding-top: 1rem;
    }

    .s-icon {
        position: static;
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
        transform: translate(0, 0);
        opacity: 1;
    }

    /* Approach: Vertical Timeline */
    .approach-container {
        flex-direction: column;
        gap: 0;
        padding-left: 2rem;
        /* Space for connecting line */
        border-left: 2px solid var(--c-accent);
        /* Main timeline guide */
    }

    .approach-step {
        width: 100%;
        text-align: left;
        padding: 2rem 0 2rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
    }

    .step-number {
        position: absolute;
        left: -3rem;
        /* Align with border */
        top: 2rem;
        background: #000;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid var(--c-accent);
        border-radius: 50%;
        font-size: 1rem;
        z-index: 2;
    }

    /* Why Nara: Stack Grid */
    .why-pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .metrics-bar {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        border-radius: 20px;
        /* Less pill-like on mobile */
    }

    .metric-sep {
        width: 100%;
        height: 1px;
    }

    /* Projects: Single Column */
    .projects-list {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .card-inner {
        height: 300px;
        /* Smaller cards */
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    /* Marquee & Footer adjustments */
    .section-clients {
        padding: 4rem 0;
    }

    .client-item {
        font-size: 2rem;
    }

    /* Improved Touch Targets */
    .btn-primary,
    .nav-btn,
    .nav-link {
        min-height: 44px;
        /* A11y Standard */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Footer: Show all elements clearly */
    .reveal-footer {
        padding: 0;
        min-height: 100vh;
        height: 100vh;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .footer-main .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
        height: 100%;
    }

    .footer-main .overline {
        margin-bottom: 1rem;
    }

    .footer-main .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin: 1rem 0;
    }

    .footer-main .body-lead {
        font-size: 1rem;
        margin: 1rem auto !important;
    }

    .footer-main .btn-primary {
        margin-top: 1.5rem;
    }

    .footer-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
        margin-top: 2rem;
    }

    .socials {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .socials a {
        margin: 0;
    }
}