/* ===== NoonChaki Production - Cinematic Editorial Design ===== */
/* Bold, dramatic, film-industry inspired landing page */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --red: #E63B2E;
    --red-dark: #C4302A;
    --red-light: #F04438;
    --cream: #F5F0E8;
    --cream-dark: #E8E0D4;
    --dark: #0D0D0D;
    --dark-light: #1A1A1A;
    --white: #FFFFFF;

    /* Typography */
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Layout */
    --max-width: 1400px;
    --container-padding: clamp(1.5rem, 5vw, 4rem);

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--red);
    color: var(--cream);
}

/* ===== Grain Overlay ===== */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* ===== Diagonal Lines Accent ===== */
.diagonal-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    opacity: 0.03;
}

.diagonal-lines::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 40px,
            var(--dark) 40px,
            var(--dark) 41px);
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--red);
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: heroGradient 10s ease-in-out infinite alternate;
}

@keyframes heroGradient {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.2) rotate(2deg);
        opacity: 1;
    }
}

/* Cinematic frame corners */
.hero-frame {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(245, 240, 232, 0.2);
    z-index: 2;
}

.hero-frame--tl {
    top: var(--space-lg);
    left: var(--space-lg);
    border-right: none;
    border-bottom: none;
    animation: frameReveal 1s var(--ease-out) 0.5s backwards;
}

.hero-frame--br {
    bottom: var(--space-lg);
    right: var(--space-lg);
    border-left: none;
    border-top: none;
    animation: frameReveal 1s var(--ease-out) 0.7s backwards;
}

@keyframes frameReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Text-based Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensure horizontal centering */
    justify-content: center;
    gap: 0;
    line-height: 0.85;
    width: 100%;
}

.hero-logo {
    max-width: 800px;
    width: 90%;
    height: auto;
    opacity: 0;
    transform: translateY(60px);
    animation: logoReveal 1.2s var(--ease-out) forwards;
    margin: 20px auto;
    /* Center horizontally with auto margins */
    display: block;
}


.logo-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 18vw, 14rem);
    font-weight: 900;
    color: var(--cream);
    letter-spacing: -0.03em;
    display: block;
    opacity: 0;
    transform: translateY(60px);
    animation: logoReveal 1.2s var(--ease-out) forwards;
}

.logo-text:nth-child(1) {
    animation-delay: 0.2s;
}

.logo-text:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline */
.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out) 0.8s forwards;
}

.tagline-line {
    width: 60px;
    height: 1px;
    background: rgba(245, 240, 232, 0.4);
}

.tagline-text {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--cream);
    opacity: 0.8;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll CTA */
.scroll-cta {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--cream);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
    transition: transform 0.4s var(--ease-out);
    z-index: 2;
}

.scroll-cta:hover {
    transform: translateX(-50%) translateY(-8px);
}

.scroll-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(245, 240, 232, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
}

.scroll-icon svg {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

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

    50% {
        transform: translateY(3px);
    }
}

.scroll-cta:hover .scroll-icon {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--red);
}

.scroll-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    opacity: 0.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== SECTIONS BASE ===== */
.section {
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.section--cream {
    background: var(--cream);
    color: var(--dark);
}

.section--dark {
    background: var(--dark);
    color: var(--cream);
}

.section--red {
    background: var(--red);
    color: var(--cream);
}

/* Section Labels */
.section-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.section.visible .section-label {
    opacity: 1;
    transform: translateY(0);
}

.label-number {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.4;
    padding: 0.4em 0.8em;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.label-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-label--light .label-number,
.section-label--light .label-text {
    color: var(--cream);
}

/* ===== ABOUT SECTION ===== */
.section-grid--about {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.about-content {
    max-width: 900px;
}

.about-headline {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out) 0.1s;
}

.section.visible .about-headline {
    opacity: 1;
    transform: translateY(0);
}

.about-headline em {
    color: var(--red);
    font-style: normal;
    position: relative;
}

.about-headline em::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease-out) 0.6s;
}

.section.visible .about-headline em::after {
    transform: scaleX(1);
}

.about-body {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out) 0.2s;
}

.section.visible .about-body {
    opacity: 1;
    transform: translateY(0);
}

.about-body p {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    opacity: 0.75;
}

.about-body strong {
    color: var(--red);
    font-weight: 600;
}

/* ===== SERVICES SECTION ===== */
.section-header-row {
    margin-bottom: var(--space-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--dark-light);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--ease-out);
    cursor: default;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Card hover effect */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.06;
    line-height: 1;
    transition: all 0.5s var(--ease-out);
    z-index: 1;
}

.service-card:hover .service-card__number {
    opacity: 0.15;
    transform: scale(1.1);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
    color: var(--red);
    position: relative;
    z-index: 2;
    transition: all 0.5s var(--ease-out);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-card__icon {
    color: var(--cream);
    transform: scale(1.1) rotate(-5deg);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 2;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover .service-card__title {
    transform: translateX(8px);
}

.service-card__desc {
    font-size: 0.95rem;
    opacity: 0.6;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    transition: opacity 0.4s;
}

.service-card:hover .service-card__desc {
    opacity: 0.9;
}

/* ===== WHY SECTION ===== */
.stats-row {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out) 0.1s;
}

.section.visible .stats-row {
    opacity: 1;
    transform: translateY(0);
}

.stat-block {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--red);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.5;
    margin-top: var(--space-xs);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: rgba(13, 13, 13, 0.15);
}

/* Clients Marquee */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(13, 13, 13, 0.08);
    border-bottom: 1px solid rgba(13, 13, 13, 0.08);
    opacity: 0;
    transition: opacity 0.8s var(--ease-out) 0.2s;
}

.section.visible .clients-marquee {
    opacity: 1;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    animation: marquee 25s linear infinite;
    width: max-content;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

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

.client-logo {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 600;
    opacity: 0.35;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

.client-logo:hover {
    opacity: 0.7;
}

.client-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.5;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out) 0.3s;
}

.section.visible .advantages-grid {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card {
    background: var(--white);
    padding: var(--space-lg);
    border: 1px solid rgba(13, 13, 13, 0.06);
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 40px;
    height: 40px;
    color: var(--red);
    margin-bottom: var(--space-md);
    transition: transform 0.5s var(--ease-out);
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-card:hover .advantage-icon {
    transform: rotate(-10deg) scale(1.1);
}

.advantage-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.advantage-desc {
    font-size: 0.95rem;
    opacity: 0.65;
    line-height: 1.7;
}

/* ===== FOUNDERS SECTION ===== */
.section--founders {
    background: var(--red);
    color: var(--cream);
}

.founders-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out) 0.1s;
}

.section.visible .founders-grid {
    opacity: 1;
    transform: translateY(0);
}

.founder-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    background: rgba(0, 0, 0, 0.15);
    padding: var(--space-lg);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 900px) {
    .founder-card {
        grid-template-columns: 400px 1fr;
        align-items: start;
    }

    /* Alternate layout */
    .founder-card:nth-child(even) {
        grid-template-columns: 1fr 400px;
    }

    .founder-card:nth-child(even) .founder-image-wrap {
        order: 2;
    }
}

.founder-image-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
    filter: grayscale(10%) contrast(1.05);
}

.founder-card:hover .founder-image {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.founder-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.founder-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    letter-spacing: -0.02em;
}

.founder-role {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: var(--space-sm);
    margin-top: -0.5rem;
}

.founder-block h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--white);
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.founder-block p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    opacity: 0.85;
    line-height: 1.5;
}

.expertise-list li::before {
    content: '•';
    color: var(--white);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.expertise-list strong {
    color: var(--white);
    font-weight: 600;
}



/* ===== CONTACT SECTION ===== */
.contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out) 0.1s;
}

.section.visible .contact-content {
    opacity: 1;
    transform: translateY(0);
}

.contact-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--red);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cream);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
}

.contact-btn:hover::before {
    transform: translateX(0);
}

.contact-btn:hover {
    color: var(--dark);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(230, 59, 46, 0.4);
}

.contact-btn__text,
.contact-btn__icon {
    position: relative;
    z-index: 1;
}

.contact-btn__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s var(--ease-out);
}

.contact-btn__icon svg {
    width: 100%;
    height: 100%;
}

.contact-btn:hover .contact-btn__icon {
    transform: translateX(8px);
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-lg) 0;
    background: var(--dark);
    color: var(--cream);
    border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .team-row {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .hero-frame {
        width: 50px;
        height: 50px;
    }

    .hero-frame--tl {
        top: var(--space-md);
        left: var(--space-md);
    }

    .hero-frame--br {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .tagline {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .tagline-line {
        width: 40px;
    }

    .stats-row {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .member-photo-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        margin-bottom: var(--space-md);
    }

    .service-card {
        padding: var(--space-md);
    }

    .advantage-card {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Force visibility on mobile to ensure content appears even if JS observer is delayed/flaky */
@media (max-width: 768px) {

    .founders-grid,
    .services-grid,
    .advantages-grid,
    .section-label,
    .about-headline,
    .about-body,
    .stats-row,
    .clients-marquee,
    .service-card,
    .advantage-card {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .founders-grid {
        display: flex !important;
    }
}