:root {
    --bg-color: #F5F5F7;
    --text-primary: #151922;
    --text-unselected: #B7BDC7;
    --text-fixed: #848A95;
    --text-micro: #7D8595;
    --font-main: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.dark-mode,
body.dark-mode {
    --bg-color: #111111;
    --text-primary: #FAFAFC;
    --text-fixed: #A1A1A6;
    --text-unselected: #5A5A5E;
    font-weight: 300;
}

body.dark-mode p,
body.dark-mode .fixed-body {
    font-weight: 300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: calc(-0.015em + 1px);
}

p {
    font-weight: 400;
    letter-spacing: calc(-0.01em + 1px);
}

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

ul {
    list-style: none;
}

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

.block {
    display: block;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.micro-text {
    color: var(--text-micro);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.fixed-body {
    color: var(--text-fixed);
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: calc(-0.01em + 1px);
}

.showcase-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.off-black {
    color: var(--text-primary);
}

.grey-text {
    color: #848A95;
}

.section-padding {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Top Navigation --- */
.top-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: var(--text-primary);
}

.top-nav a,
.top-nav button {
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.top-nav .logo {
    font-weight: 400;
    letter-spacing: 0.1em;
}

.center-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    gap: 0.5rem;
}

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

.center-nav .nav-item {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: capitalize;
    color: var(--text-primary);
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    cursor: pointer;
}

.center-nav .nav-item:hover {
    color: var(--text-primary);
}

.nav-preview-genie {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) scale(0.2) translateY(-20px);
    opacity: 0;
    pointer-events: none;
    width: 180px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.center-nav .nav-item:hover .nav-preview-genie {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
}

.nav-preview-iframe {
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: top left;
    border: none;
    pointer-events: none;
    user-select: none;
    background: var(--bg-color);
}

.nav-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.absolute-actions {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    pointer-events: none;
}

.absolute-actions>* {
    pointer-events: auto;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    outline: none;
    color: white;
    /* Default for hero */
    cursor: pointer;
    margin-top: 8px;
    /* align vertically with 40px island */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    mix-blend-mode: difference;
    z-index: 100;
}

.absolute-actions:has(.dynamic-island.expanded) .theme-toggle {
    transform: translateX(-240px);
}

.theme-toggle svg {
    transition: transform 0.5s ease;
}

.theme-toggle:hover svg {
    transform: rotate(45deg);
}

/* --- Theme Transition Animation --- */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
}

.island-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.dynamic-island {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border-radius: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: none;
    mix-blend-mode: difference;
    z-index: 100;
}

.dynamic-island.expanded {
    width: 240px;
    height: 350px;
    background: #ffffff;
    border-radius: 24px;
    cursor: default;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    mix-blend-mode: normal;
}

body.dark-mode .dynamic-island.expanded {
    background: #1c1c1e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dot-matrix {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.dynamic-island.expanded .dot-matrix {
    top: 24px;
    right: 24px;
    opacity: 1;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: white;
    /* initial for hero */
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.dynamic-island.expanded .dot {
    background-color: var(--text-primary);
}

.island-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    padding: 2.25rem 2rem 1.5rem;
    width: 100%;
    text-align: left;
    transition: opacity 0.3s ease;
}

.dynamic-island.expanded .island-menu {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.2s;
}

.island-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
    text-transform: none;
    display: inline-block;
}

.island-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.island-divider {
    width: 100%;
    height: 1px;
    background: var(--text-unselected);
    opacity: 0.2;
    margin: 1.5rem 0;
}

.island-sub-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-fixed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.island-sub-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
    text-transform: none;
    display: inline-block;
}

.island-sub-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transform: scale(1.05);
    animation: zoomOut 20s ease-out forwards;
}

@keyframes zoomOut {
    to {
        transform: scale(1);
    }
}

.hero-content {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    color: var(--text-primary);
    filter: grayscale(100%) contrast(1000%);
}

.social-handle {
    font-size: 0.85rem;
    letter-spacing: 0;
}

/* --- Interactive Showcase Section --- */
.interactive-showcase {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.showcase-left {
    flex: 1;
}

.showcase-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 500px;
}

.showcase-cards {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.showcase-card {
    position: absolute;
    width: 100%;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    /* delayed stoppage */
    will-change: transform, opacity, filter, z-index, box-shadow;
    transform-origin: center center;
}

body.dark-mode .showcase-card {
    /* JS will handle dynamic shadow */
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.large-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: max-content;
}

.nav-item {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-unselected);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    border-radius: 0;
    transform-origin: left center;
    position: relative;
    z-index: 1;
    width: 100%;
    white-space: nowrap;
}

.large-nav-list .nav-item:hover {
    color: var(--text-primary);
    transform: scale(1.02) translateX(10px);
}



/* --- Stats Section --- */
.stats {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-unselected);
    font-weight: 500;
}

/* --- Projects Section --- */
.projects-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    row-gap: 4rem;
}

.project-card {
    position: relative;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:nth-child(odd) {
    transform: translateX(-50px);
}

.project-card:nth-child(even) {
    transform: translateX(50px);
}

.project-card.in-view {
    opacity: 1;
    transform: translateX(0);
}

@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

@keyframes border-spin {
    from {
        --border-angle: 0turn;
    }

    to {
        --border-angle: 1turn;
    }
}

/* Siri Controlled Neon Glow Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    aspect-ratio: 4 / 3;
    /* Matches the image wrapper, ignores the text below */
    z-index: 0;
    border-radius: 12px;
    /* Matches the image exact border radius */
    background: conic-gradient(from var(--border-angle),
            transparent 0%,
            #6b85ff 4%,
            #ff66b2 10%,
            #4dd2ff 16%,
            transparent 20%,
            transparent 50%,
            #6b85ff 54%,
            #ff66b2 60%,
            #4dd2ff 66%,
            transparent 70%,
            transparent 100%);
    filter: blur(16px);
    /* Strong follow-up glow */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Only runs on hover to eliminate idle GPU load */
    pointer-events: none;
}

.project-card:hover .card-glow {
    animation: border-spin 8s linear infinite;
    opacity: 0.85;
    transform: scale(0.98);
}

body.dark-mode .project-card:hover .card-glow {
    opacity: 0.75;
    filter: blur(24px) saturate(1.2);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e5e5;
    z-index: 1;
    transition: var(--transition-smooth);
}

/* Sharp Neon Outline overlay */
.card-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: conic-gradient(from var(--border-angle),
            transparent 0%,
            #6b85ff 4%,
            #ff66b2 10%,
            #4dd2ff 16%,
            transparent 20%,
            transparent 50%,
            #6b85ff 54%,
            #ff66b2 60%,
            #4dd2ff 66%,
            transparent 70%,
            transparent 100%);
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.project-card:hover .card-image-wrapper::after {
    opacity: 1;
    animation: border-spin 8s linear infinite;
}

.project-card:hover .card-image-wrapper {
    transform: scale(0.98);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .card-image {
    transform: scale(1.05);
}

.card-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Philosophy Section --- */
.philosophy {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quote-container {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text-fixed);
    max-width: 1000px;
    height: 350px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    perspective: 1000px;
}

.quote-word {
    display: inline-block;
}

.quote-char {
    display: inline-block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    transform: rotateX(90deg);
    opacity: 0;
    transform-origin: center center;
}

.quote-char.visible {
    transform: rotateX(0deg);
    opacity: 1;
}

.quote-char.exit {
    transform: rotateX(-90deg);
    opacity: 0;
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-cta {
    display: flex;
    justify-content: center;
}

.pill-btn {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.pill-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(21, 25, 34, 0.2);
}

/* --- Interactive Contact Button --- */
.contact-btn {
    width: 240px;
    height: 60px;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-btn:hover {
    width: 360px;
    /* Wider to fit harshdeep.design@gmail.com */
}

.contact-btn.copied {
    width: 300px;
    background-color: #34c759;
    /* Apple Green */
    transform: scale(1.05);
}

.contact-btn .btn-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn-text-default {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btn-text-hover,
.btn-text-copied {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.contact-btn:hover:not(.copied) .btn-text-default {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
}

.contact-btn:hover:not(.copied) .btn-text-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.contact-btn.copied .btn-text-default,
.contact-btn.copied .btn-text-hover {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
}

.contact-btn.copied .btn-text-copied {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-container {
        flex-direction: column;
        gap: 2rem;
    }

    .showcase-left {
        width: 100%;
        text-align: center;
    }

    .showcase-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .showcase-nav .nav-item {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .showcase-right {
        width: 100%;
        height: 350px;
        justify-content: center;
    }

    .showcase-card {
        height: 300px;
    }

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

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

    .section-padding {
        padding: 6rem 1.5rem;
    }

    .quote-container {
        min-height: 350px;
    }

    .footer-strip {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.section-divider {
    border: none;
    border-top: 1px solid var(--text-unselected);
    opacity: 0.2;
    margin: 4rem auto;
    width: 90%;
    max-width: 1400px;
}

.see-more-container {
    width: 100%;
}

.see-more-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.see-more-btn:hover {
    opacity: 0.7;
}

.see-more-btn svg {
    transition: transform 0.3s ease;
}

.see-more-btn:hover svg {
    transform: translateY(3px);
}

.project-card.hidden {
    display: none !important;
}

/* --- Client ShowCase --- */
.client-showcase {
    overflow: hidden;
}

.client-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.client-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.client-track {
    display: flex;
    gap: 0.5rem;
    /* Reduced gap */
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.client-tile {
    width: 250px;
    /* Increased size */
    height: 140px;
    /* Increased size */
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.client-tile img {
    max-width: 50%;
    max-height: 50%;
    opacity: 1;
}

body.dark-mode .client-tile {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

    /* -50% of content and half of a gap to loop perfectly */
}

/* --- Footer --- */
.site-footer {
    padding: 4rem 5% 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--text-unselected);
    opacity: 0.2;
    margin: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-icons {
    flex-direction: row;
    gap: 1.5rem;
}

.footer-contact-list a,
.footer-nav-list a,
.footer-icons a {
    color: var(--text-unselected);
    transition: var(--transition-smooth);
}

.footer-contact-list a:hover,
.footer-nav-list a:hover,
.footer-icons a:hover {
    color: var(--text-primary);
}

/* --- New Hero Overhaul --- */
.new-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    background-color: transparent;
}

.hero-left-text,
.hero-right-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.6s ease;
}

.hero-left-text {
    left: 5%;
}

.hero-right-text {
    right: 5%;
}

.hero-center-media {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
    transition: opacity 0.6s ease;
}

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

.hero-micro-img.active {
    opacity: 1;
}

.hero-bottom-text {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    max-width: 400px;
    z-index: 10;
}

/* --- Scroll Reveal Animations --- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s ease;
    filter: blur(8px);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Snappy Letter by Letter Animation */
.letter-animate .char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(var(--char-index) * 0.025s);
}

.letter-animate.visible .char-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    /* Reduce vertical padding by ~15% for less scroll time */
    .section-padding {
        padding: 6.8rem 5%;
    }

    .client-showcase.section-padding {
        padding-top: 3.4rem !important;
        padding-bottom: 6.8rem !important;
    }

    /* Fix layout overlap and orb going offscreen */
    .site-navigation {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        text-align: left;
        position: relative;
        overflow: hidden;
        /* Hide offscreen orb */
    }

    .nav-content {
        width: 60%;
        /* Allow menu space */
        display: flex;
        justify-content: flex-start;
        position: relative;
        /* Fix z-index stacking */
        z-index: 10;
        pointer-events: auto;
    }

    .large-nav-list {
        align-items: flex-start;
    }

    /* Top Nav alignment for mobile */
    .top-nav {
        padding: 1.5rem 5%;
    }

    .hero-elements {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 5%;
    }

    .hero-left-text,
    .hero-right-text {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        font-size: 0.65rem;
    }

    .hero-center-media {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 45px;
        height: 45px;
    }
}

/* --- Journal Section --- */
.discover-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

body.dark-mode .discover-pill {
    background-color: rgba(255, 255, 255, 0.1);
}

.discover-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.journal-header-left {
    flex: 1;
}

.journal-subtitle {
    font-size: 1.125rem;
    color: var(--text-fixed);
    margin-top: 0.5rem;
    max-width: 400px;
    line-height: 1.5;
}

.journal-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.subscribe-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--text-unselected);
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.875rem;
    width: 250px;
    outline: none;
    transition: var(--transition-smooth);
}

.subscribe-input:focus {
    border-color: var(--text-primary);
}

.subscribe-btn {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.subscribe-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.journal-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.journal-card:hover .journal-image {
    transform: scale(1.03);
}

.journal-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e5e5;
}

.journal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.journal-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.journal-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.25;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.journal-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    opacity: 0.3;
    margin-top: 0.5rem;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.journal-card:hover .journal-line {
    width: 100%;
    opacity: 1;
}

/* Mobile responsive for Journal */
@media (max-width: 768px) {
    .journal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .journal-header-right {
        justify-content: flex-start;
        width: 100%;
    }

    .subscribe-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .subscribe-input {
        width: 100%;
    }

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

/* --- Article Page --- */
.article-page {
    padding-top: 15vh;
    min-height: 100vh;
}

.article-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.article-hero-left {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.article-meta-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-fixed);
    text-wrap: balance;
}

.article-date {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-fixed);
}

.article-date .label {
    opacity: 0.8;
}

.article-hero-right {
    flex: 0 1 auto;
    margin-left: auto;
    max-width: 45%;
}

.article-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: calc(-0.02em + 1px);
    color: var(--text-primary);
    margin-top: -0.2em;
    text-align: left;
}

.article-bento {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #e5e5e5;
}

.bento-wide {
    aspect-ratio: 16 / 10;
}

.bento-square {
    aspect-ratio: 4 / 5;
}

.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.bento-tag {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.article-content {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.article-text-block {
    max-width: 720px;
    width: 100%;
}

.article-text-block h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.article-text-block p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-fixed);
    margin-bottom: 1.5rem;
}

.article-banner {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.banner-card {
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #e5e5e5;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-hero {
        flex-direction: column;
        gap: 3rem;
        padding-top: 2rem;
    }

    .article-hero-left {
        flex: none;
        order: 2;
        width: 100%;
    }

    .article-hero-right {
        order: 1;
        flex: none;
        width: 100%;
        margin-left: 0;
    }

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

    .bento-wide {
        aspect-ratio: 4 / 3;
    }

    .banner-card {
        aspect-ratio: 16 / 9;
    }

    .article-headline {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

/* --- Notes Page (Feed Layout) --- */
.notes-page {
    padding-top: 15vh;
    min-height: 100vh;
}

.notes-header {
    border-bottom: 1px dashed var(--text-unselected);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.notes-page-title {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.notes-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.notes-sidebar {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background-color: rgba(0, 0, 0, 0.03);
    /* Subtle light gray */
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

body.dark-mode .sidebar-card {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.topics-card .sidebar-title {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

body.dark-mode .topics-card .sidebar-title {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-subtitle {
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topics-list a {
    font-size: 1.1rem;
    color: var(--text-fixed);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.topics-list a::before {
    content: "•";
    display: inline-block;
    width: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.topics-list li.active a::before {
    width: 12px;
    opacity: 1;
    transform: translateX(0);
}

.topics-list li.active a {
    color: var(--text-primary);
    font-weight: 500;
}

/* Desktop-only hover previews */
@media (min-width: 769px) and (hover: hover) {
    /* When hovering the list, remove active state from the current active item */
    .topics-list:hover li.active a::before {
        width: 0;
        opacity: 0;
        transform: translateX(-10px);
    }

    .topics-list:hover li.active a {
        color: var(--text-fixed);
        font-weight: 400;
    }

    /* Add active state to the explicitly hovered item */
    .topics-list li a:hover {
        color: var(--text-primary) !important;
        font-weight: 500 !important;
    }

    .topics-list li a:hover::before {
        width: 12px !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}

.cta-card .sidebar-text {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.cta-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.cta-link svg {
    border: 1px solid var(--text-unselected);
    border-radius: 50%;
    padding: 4px;
}

/* Morphing Pill Button */
.reach-out-pill {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border-radius: 100px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-decoration: none;
    height: 32px;
}

.reach-out-default {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.reach-out-default svg {
    border: 1px solid var(--text-unselected);
    border-radius: 50%;
    padding: 4px;
}

.reach-out-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bg-color);
    /* inverted color */
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.reach-out-pill:hover {
    background: var(--text-primary);
    padding: 0 1rem;
}

.reach-out-pill:hover .reach-out-default {
    transform: translateY(-150%);
    opacity: 0;
}

.reach-out-pill:hover .reach-out-hover {
    transform: translate(-50%, -50%);
}

.date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.date-row.location-row {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 2rem;
}

.date-row .sidebar-title {
    margin-bottom: 0;
}

.date-value {
    font-size: 0.875rem;
    font-weight: 500;
}

.notes-feed {
    flex: 1;
    display: flex;
    gap: 1.5rem;
}

.feed-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feed-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-card.is-dimmed {
    opacity: 0.18;
    pointer-events: none;
    transform: scale(0.985);
}

.feed-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e5e5;
}

.feed-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.feed-card:hover .feed-image {
    transform: scale(1.03);
}

.feed-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feed-meta .micro-text {
    opacity: 0.7;
}

.feed-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: calc(-0.02em + 1px);
}

@media (max-width: 900px) {
    .notes-layout {
        flex-direction: column;
    }

    .notes-sidebar {
        width: 100%;
        flex: none;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .notes-layout {
        gap: 1.25rem;
    }

    .notes-sidebar {
        width: 100%;
        flex: none;
        position: static;
        flex-direction: row;
        margin-bottom: 0.5rem;
        gap: 0;
    }

    .sidebar-card.topics-card {
        padding: 0;
        background: transparent !important;
        border-radius: 0;
        width: 100%;
        min-width: 0;
    }

    .topics-card .sidebar-title,
    .topics-card .sidebar-subtitle {
        display: none !important;
    }

    .topics-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: clamp(1.2rem, 3.5vw, 2.2rem);
        padding: 0.25rem 0 0.5rem;
        width: 100%;
        align-items: center;
    }

    .topics-list::-webkit-scrollbar {
        display: none;
    }

    .topics-list li {
        flex-shrink: 0;
        list-style: none;
    }

    .topics-list a {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-fixed);
        padding: 0.4rem 0.1rem 0.6rem;
        white-space: nowrap;
        position: relative;
        display: inline-block;
        transition: color 0.3s ease;
    }

    .topics-list a::before {
        display: none !important;
    }

    .topics-list a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .topics-list li.active a {
        color: var(--text-primary);
        font-weight: 600;
    }

    .topics-list li.active a::after {
        transform: scaleX(1);
    }

    .cta-card,
    .date-card {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .notes-feed {
        flex-direction: column;
    }
}

/* --- Logo Design Page --- */
.logo-design-page {
    width: 100%;
}

.logo-banner {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    background-color: #2e6040;
    /* brandaid green */
    background-image: url('assets/logo%20design/banner/1.png');
    /* fallback image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.banner-content {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: white;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
}

.logo-intro {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.intro-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-icon {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.intro-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.intro-right {
    flex: 1;
}

.intro-body {
    max-width: 600px;
}

@media (max-width: 768px) {
    .logo-intro {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Sea of Colorful Square Tiles */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.flip-card {
    background-color: transparent;
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 0;
    overflow: hidden;
}

.flip-card-front {
    background-color: var(--card-color);
}

.flip-card-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.flip-card-back {
    background-color: #1a1a1c;
    /* offblack */
    color: var(--card-color);
    transform: rotateY(180deg);
}

.back-desc {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.flip-card-back .year {
    font-size: 0.9rem;
    opacity: 0.8;
}

body.dark-mode .flip-card-back {
    background-color: #111111;
}

/* Landscape Stacked Cards */
.landscape-stack {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.stack-card {
    position: sticky;
    width: 100%;
    aspect-ratio: 16/9;
    background: #e5e5e5;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.08);
    /* shadow to separate stacked cards */
}

.stack-card:nth-child(1) {
    top: 100px;
    z-index: 10;
}

.stack-card:nth-child(2) {
    top: 120px;
    z-index: 11;
}

.stack-card:nth-child(3) {
    top: 140px;
    z-index: 12;
}

.stack-card:nth-child(4) {
    top: 160px;
    z-index: 13;
}

.stack-card:nth-child(5) {
    top: 180px;
    z-index: 14;
}

body.dark-mode .stack-card {
    background: #2a2a2c;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
}

.stack-card::before,
.stack-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stack-card::before {
    z-index: -1;
    filter: brightness(0.9);
}

.stack-card::after {
    z-index: -2;
    filter: brightness(0.8);
}

.stack-card:hover {
    transform: translateY(-12px);
}

.stack-card:hover::before {
    transform: translateY(12px) scale(0.96);
}

.stack-card:hover::after {
    transform: translateY(24px) scale(0.92);
}

.stack-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.logo-page-actions {
    position: relative;
    width: 100%;
    padding: 2rem 5% 0 0;
    display: flex;
    justify-content: flex-end;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 100;
}

/* --- Fan Hero Section --- */
.fan-hero {
    min-height: 100vh;
    padding-top: clamp(9.5rem, 18vh, 13.5rem);
    padding-bottom: 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    background: var(--bg-color);
}

/* --- Hero Headline Clean Crisp Typography & Slow Premium Reveal --- */
.fan-hero-title,
.fan-hero-title .hero-line,
.fan-hero-title .hero-word:not(.hero-word-bigger),
.fan-hero-title .hero-word:not(.hero-word-bigger) .hero-char {
    color: #FFFFFF !important;
}

html:not(.dark-mode) body:not(.dark-mode) .fan-hero-title,
html:not(.dark-mode) body:not(.dark-mode) .fan-hero-title .hero-line,
html:not(.dark-mode) body:not(.dark-mode) .fan-hero-title .hero-word:not(.hero-word-bigger),
html:not(.dark-mode) body:not(.dark-mode) .fan-hero-title .hero-word:not(.hero-word-bigger) .hero-char {
    color: #111827 !important;
}

body.dark-mode .fan-hero-title,
body.dark-mode .fan-hero-title .hero-line,
body.dark-mode .fan-hero-title .hero-word:not(.hero-word-bigger),
body.dark-mode .fan-hero-title .hero-word:not(.hero-word-bigger) .hero-char,
html.dark-mode .fan-hero-title,
html.dark-mode .fan-hero-title .hero-line,
html.dark-mode .fan-hero-title .hero-word:not(.hero-word-bigger),
html.dark-mode .fan-hero-title .hero-word:not(.hero-word-bigger) .hero-char {
    color: #FFFFFF !important;
}

.fan-hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-line {
    display: block;
    line-height: 1.08;
    white-space: nowrap;
}

.hero-word {
    display: inline-block;
    white-space: nowrap;
}

/* Default interactive & dynamic color for 'Bigger.' in headline */
.hero-word-bigger,
.hero-word-bigger .hero-char {
    display: inline-block;
    color: #FF453A;
    will-change: color;
}

html:not(.dark-mode) body:not(.dark-mode) .hero-word-bigger,
html:not(.dark-mode) body:not(.dark-mode) .hero-word-bigger .hero-char {
    color: #EA3325;
}

body.dark-mode .hero-word-bigger,
body.dark-mode .hero-word-bigger .hero-char,
html.dark-mode .hero-word-bigger,
html.dark-mode .hero-word-bigger .hero-char {
    color: #FF453A;
}

.hero-space {
    display: inline;
}

.hero-char {
    display: inline-block;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

.mobile-sub-break {
    display: none;
}

.fan-cards-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    /* Reduced from 400px */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: -7rem 0 2rem 0;
    /* Reduced gap to headline and subtitle */
    perspective: 1000px;
}

.fan-card {
    position: absolute;
    width: 180px;
    /* Scaled down from 220px */
    height: 180px;
    /* Make it a rounded square */
    border-radius: 20px;
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r));
    z-index: var(--z, 1);
    /* Keeps exact z-index without coming to front on hover */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fan-card-inner {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
}

.fan-card:hover {
    /* Slight pop-up while maintaining rotation and z-index */
    transform: translateX(var(--x)) translateY(calc(var(--y) - 20px)) rotate(var(--r));
}

.fan-card:hover .fan-card-inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Pill Popup */
.pill-popup {
    position: absolute;
    top: -100px;
    left: 50%;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
    transform-origin: bottom center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, opacity;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    z-index: 100;
}

.fan-card:hover .pill-popup {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.pill-blue {
    background: var(--c1);
    color: var(--t1);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    letter-spacing: 0.05em;
}

.pill-red {
    background: var(--c2);
    color: var(--t2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.pill-red::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--c2);
}

.pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c3);
}

.greyscale-logo {
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}

.greyscale-logo:hover {
    filter: grayscale(0%) opacity(1);
}

body.dark-mode .greyscale-logo {
    filter: grayscale(100%) invert(1) opacity(0.3);
}

body.dark-mode .greyscale-logo:hover {
    filter: grayscale(0%) invert(0) opacity(1);
}

.fan-hero-subtitle {
    font-size: 1rem;
    color: var(--text-fixed);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.fan-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.75rem;
    transform: translateY(-6px);
}

.scroll-down-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-unselected);
    font-size: 0.9rem;
    font-weight: 500;
    animation: premiumFloat 3s ease-in-out infinite;
}

.scroll-arrow {
    stroke: var(--text-unselected);
}

/* Hidden by default to preserve hero layout */
.hero-view-work-btn {
    display: none !important;
}

/* --- Mobile Hero Section Layout Optimization --- */
@media (max-width: 768px) {
    .fan-hero {
        min-height: 100vh;
        min-height: 100svh;
        padding-top: clamp(4.2rem, 8svh, 5.5rem);
        padding-bottom: clamp(1.8rem, 4svh, 2.4rem);
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        box-sizing: border-box;
    }

    /* 1. Mobile Hierarchy: Headline -> Subtitle -> Cards -> Actions */
    .mobile-sub-break {
        display: block !important;
    }

    .fan-hero-title {
        order: 1;
        font-size: clamp(2.1rem, 8.5vw, 2.55rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.045em !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: auto auto 0.35rem auto !important;
    }

    .hero-line {
        line-height: 1.08 !important;
        white-space: nowrap !important;
    }

    /* On mobile, instant clear visibility - zero blur delay glitch */
    .hero-char {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    .fan-hero-subtitle {
        order: 2;
        font-size: clamp(0.85rem, 3.3vw, 0.95rem);
        line-height: 1.35;
        max-width: 310px;
        margin: 0 auto 0.85rem auto !important;
        color: var(--text-fixed);
    }

    /* 2. Scaled Down & Tighter Fan Cards for Mobile Viewport */
    .fan-cards-wrapper {
        order: 3;
        position: relative;
        width: 100%;
        height: 185px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        transform: none;
        perspective: 800px;
        overflow: visible;
        touch-action: pan-y;
    }

    .fan-card {
        width: clamp(140px, 37vw, 154px);
        height: clamp(140px, 37vw, 154px);
        border-radius: 22px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Hide Tshirt (card 1) and Bira (card 4) on mobile as requested */
    .fan-card:nth-child(1),
    .fan-card:nth-child(4) {
        display: none !important;
    }

    /* Left-to-right stacked arrangement: Doodle guy (card 7) is first in deck (leftmost, in front) */
    .fan-card:nth-child(7) { --x: -78px; --y: 15px; --r: -11deg; z-index: 10; }
    .fan-card:nth-child(2) { --x: -39px; --y: 5px;  --r: -5.5deg; z-index: 9; }
    .fan-card:nth-child(3) { --x: 0px;   --y: 0px;  --r: 0deg;    z-index: 8; }
    .fan-card:nth-child(5) { --x: 39px;  --y: 5px;  --r: 5.5deg;  z-index: 7; }
    .fan-card:nth-child(6) { --x: 78px;  --y: 15px; --r: 11deg;   z-index: 6; }

    /* Mobile Pill Popups: Explore indicators active on click/tap */
    .fan-card .pill-popup {
        display: flex !important;
        position: absolute;
        top: -82px;
        left: 50%;
        opacity: 0;
        transform: translateX(-50%) scale(0.65);
        transform-origin: bottom center;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        will-change: transform, opacity;
        pointer-events: none;
        z-index: 250;
    }

    .fan-card.active .pill-popup,
    .fan-card:hover .pill-popup {
        opacity: 1 !important;
        transform: translateX(-50%) scale(1) !important;
        pointer-events: auto !important;
    }

    .fan-card.active {
        z-index: 200 !important;
    }

    /* 3. Mobile Actions: View Work Button & Scroll Indicator */
    .fan-hero-actions {
        order: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        margin: auto auto 0 auto;
        padding-bottom: clamp(0.75rem, 2.5svh, 1.8rem);
        transform: translateY(-16px);
    }

    .hero-view-work-btn {
        display: none !important;
    }

    body:not(.dark-mode) .hero-view-work-btn {
        background: #000000;
        color: #FFFFFF;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    }

    .hero-view-work-btn:active {
        transform: scale(0.96);
    }

    .hero-view-work-btn svg {
        transition: transform 0.2s ease;
    }

    .hero-view-work-btn:hover svg {
        transform: translateX(3px);
    }

    .scroll-down-msg {
        font-size: 0.82rem;
        gap: 0.35rem;
    }

    .scroll-arrow {
        width: 18px;
        height: 18px;
    }

    /* --- Ethos Section: Left Aligned, Hero-Matched Font Size & Reduced Line Spacing --- */
    .statement-section {
        justify-content: flex-start !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .statement-wrapper {
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    .statement-content {
        text-align: left !important;
        margin: 0 !important;
    }

    .statement-tag {
        justify-content: flex-start !important;
    }

    .statement-headline {
        font-size: clamp(1.85rem, 7.8vw, 2.35rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.025em !important;
        text-align: left !important;
    }

    /* Hide "No Bullshit" on mobile */
    .desktop-only-inline {
        display: none !important;
    }

    /* --- Philosophy Section: Left Aligned, Hero-Matched Font Size, Reduced Line Spacing & Centered Button --- */
    .philosophy {
        align-items: flex-start !important;
        text-align: left !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .philosophy .micro-text {
        text-align: left !important;
        align-self: flex-start !important;
        margin-left: 0 !important;
    }

    .philosophy .quote-container,
    .quote-container {
        font-size: clamp(1.85rem, 7.8vw, 2.35rem) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.025em !important;
        justify-content: flex-start !important;
        align-content: flex-start !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: auto !important;
        min-height: 240px !important;
    }

    /* Wanna Reach Out button center aligned */
    .philosophy .contact-cta {
        justify-content: center !important;
        width: 100% !important;
    }

    /* --- Track Record Section (Mobile): Reduced line spacing & vertical padding --- */
    .stats {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
        gap: 1.85rem !important;
    }

    .stats-header {
        text-align: left;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem !important;
    }

    .stat-item {
        gap: 0.05rem !important;
    }

    .stat-number {
        font-size: clamp(4.4rem, 17vw, 5.4rem) !important;
        line-height: 0.95 !important;
        font-weight: 500 !important;
        letter-spacing: -0.035em !important;
    }

    .stat-label {
        font-size: 0.95rem !important;
        color: var(--text-unselected) !important;
        font-weight: 400 !important;
        letter-spacing: 0.01em !important;
    }

    /* --- Mobile Subheading Lines Typography Adjustment (Light, slightly reduced size, letter-spacing & line-spacing) --- */
    .journal-subtitle,
    .stats-footer .fixed-body,
    #stats-typing-text {
        font-size: 0.95rem !important;
        font-weight: 300 !important;
        letter-spacing: -0.022em !important;
        line-height: 1.38 !important;
        color: var(--text-fixed) !important;
    }

    .stats-footer .fixed-body .highlight-text,
    #stats-typing-text .highlight-text {
        font-weight: 400 !important;
        color: var(--text-primary);
    }

    /* --- Mobile Clients Section Header (Pill badges, Left aligned) --- */
    .clients-section-header {
        margin-bottom: 1.5rem !important;
        padding: 0 5% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- Mobile Footer Relayout --- */
    .site-footer {
        padding: 3rem 6% 2.5rem !important;
        gap: 2rem !important;
    }

    .footer-divider {
        opacity: 0.15;
    }

    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2.25rem !important;
        padding-top: 0.25rem !important;
    }

    /* 1. Navigation Links (2x2 grid, clean touch-friendly targets) */
    .footer-nav-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.95rem 2rem !important;
        width: 100% !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        order: 1 !important;
    }

    /* 2. Contact List (Email & WhatsApp, clearly separated) */
    .footer-contact-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        font-size: 0.92rem !important;
        order: 2 !important;
        padding-top: 1.25rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    body:not(.dark-mode) .footer-contact-list {
        border-top-color: rgba(0, 0, 0, 0.08) !important;
    }

    .footer-contact-list a {
        word-break: break-all;
    }

    /* 3. Social Icons (LinkedIn, Instagram, Behance in a neat row) */
    .footer-icons {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.25rem !important;
        align-items: center !important;
        order: 3 !important;
        padding-top: 0.25rem !important;
    }

    .footer-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        transition: transform 0.2s ease, background 0.2s ease;
    }

    body:not(.dark-mode) .footer-icons a {
        background: rgba(0, 0, 0, 0.05);
    }

    .footer-icons a:active {
        transform: scale(0.92);
    }

    .footer-icons img {
        width: 18px;
        height: 18px;
        opacity: 0.75;
        transition: opacity 0.2s ease;
    }

    .footer-icons a:hover img {
        opacity: 1;
    }
}

@media (max-width: 380px) {
    .fan-hero {
        min-height: 100svh;
        padding-top: clamp(3.8rem, 7svh, 4.8rem);
        padding-bottom: 1.5rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    .fan-hero-title {
        font-size: clamp(1.85rem, 8.1vw, 2.15rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.045em !important;
        margin: auto auto 0.25rem auto !important;
    }
    .fan-hero-subtitle {
        margin-bottom: 0.75rem !important;
    }
    .fan-cards-wrapper {
        height: 165px;
        margin: 0 auto;
        transform: none;
    }
    .fan-hero-actions {
        margin: auto auto 0 auto;
        padding-bottom: 0.75rem;
        transform: translateY(-14px);
    }
    .fan-card {
        width: 114px;
        height: 114px;
    }
    .fan-card:nth-child(2) { --x: -78px !important; --y: 16px !important; --r: -14deg !important; }
    .fan-card:nth-child(3) { --x: -40px !important; --y: 6px !important;  --r: -7deg !important; }
    .fan-card:nth-child(7) { --x: 0px !important;   --y: 0px !important;  --r: 0deg !important; }
    .fan-card:nth-child(5) { --x: 40px !important;  --y: 6px !important;  --r: 7deg !important; }
    .fan-card:nth-child(6) { --x: 78px !important;  --y: 16px !important; --r: 14deg !important; }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

@keyframes premiumFloat {

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

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

/* Section Spacing Adjustments */
#interactive-showcase.section-padding {
    padding-top: 6rem;
    /* Slightly reduced distance from hero */
}

#about.section-padding {
    padding-bottom: 2rem;
}

#design.section-padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#journal.section-padding {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.philosophy.section-padding {
    padding-top: 5rem;
}

/* --- Contact Page Specifics --- */
.contact-hero {
    padding-top: 18vh;
    padding-bottom: 4rem;
    text-align: center;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 800px;
    margin: 1.5rem auto 1rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-unselected);
}

/* Contact Form Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

body.dark-mode .contact-info-card {
    background: #1c1c1e;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-info-item svg {
    color: var(--text-primary);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info-item a,
.contact-info-item p {
    color: var(--text-unselected);
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--text-primary);
}

.contact-form-wrapper {
    padding-top: 1rem;
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    border-color: #3a3a3c;
}

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

.submit-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 1.2rem;
    border-radius: 100px;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

.accordion-item {
    border-bottom: 1px solid #e5e5ea;
}

body.dark-mode .accordion-item {
    border-bottom-color: #3a3a3c;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-primary);
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 16px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 16px;
}

.accordion-item.active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    /* arbitrary large value */
}

.accordion-content p {
    padding-bottom: 2rem;
    color: var(--text-unselected);
    line-height: 1.6;
}

@media (max-width: 768px) {

    .contact-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 2rem;
    }
}

/* --- New Services Showcase Section (Desktop/Mobile) --- */
.new-showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 2rem 4rem;
}

.showcase-header-area {
    grid-column: 1;
    grid-row: 1;
}

.showcase-nav-area {
    grid-column: 1;
    grid-row: 2;
}

.showcase-cards-area {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase-header-area .micro-text {
    color: var(--text-unselected);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.showcase-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.showcase-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-fixed);
    max-width: 480px;
}

.services-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--text-unselected);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 100px;
    margin-left: -20px;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.service-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.dark-mode .service-nav-item::before {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: transparent;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .service-icon {
    border-color: rgba(255, 255, 255, 0.1);
}

.service-nav-item:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

.service-nav-item.active {
    color: var(--text-primary);
}

.service-nav-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.service-nav-item.active .service-icon {
    border-color: transparent;
    background: var(--text-primary);
    color: var(--bg-color);
}

.service-arrow {
    margin-left: auto;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
}

.service-nav-item:hover .service-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.services-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 3rem;
}

body.dark-mode .services-stats {
    /* No border */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-unselected);
    font-weight: 500;
}


.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f5f5f5;
}

.service-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-pill {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.services-footer-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

body.dark-mode .services-footer-pill {
    background: rgba(255, 255, 255, 0.05);
}

.services-footer-pill svg {
    color: var(--text-unselected);
}

@media (max-width: 900px) {
    .new-showcase-layout {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .showcase-header-area {
        order: 1;
    }

    .showcase-cards-area {
        order: 2;
    }

    .showcase-nav-area {
        order: 3;
        width: 100%;
    }

    .service-nav-item {
        width: 100%;
        margin-left: 0;
    }

    .service-arrow {
        opacity: 1;
    }

    /* On mobile, we use the original track record section */
    .services-stats {
        display: none !important;
    }

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

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide track record on desktop */
@media (min-width: 901px) {
    #about {
        display: none !important;
    }
}

/* --- Mobile specific grid adjustments --- */
.mobile-card-nav {
    display: none;
}

.desktop-only {
    display: flex;
}

.service-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-card-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--text-unselected);
        text-decoration: none;
        padding: 0.5rem 0;
    }

    .mobile-card-nav:hover,
    .mobile-card-nav.active {
        color: var(--text-primary);
    }

    .mobile-card-nav .service-icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .mobile-card-nav .service-arrow {
        margin-left: auto;
        opacity: 1;
        display: flex;
        color: var(--text-unselected);
    }

    /* Hide the inner card pills on mobile since the label is below */
    .service-card .service-pill {
        display: none;
    }

    /* Ensure the main nav area is hidden on mobile now */
    .showcase-nav-area {
        display: none !important;
    }
}
/* FORCE FULL WIDTH ON MOBILE FOR SERVICES GRID */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr !important; width: 100% !important; }
    .service-card-wrapper { width: 100% !important; align-items: stretch !important; }
    .service-card { width: 100% !important; max-width: none !important; margin: 0 !important; }
    .mobile-card-nav { width: 100% !important; justify-content: flex-start !important; }
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

.about-page {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    max-width: 1400px;
    margin: 0 auto;
}

/* About Hero Section */
.about-hero {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-hero-right {
    padding-left: 2.5rem;
}

.about-portrait {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    border-radius: 20px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-title {
    font-size: clamp(2.25rem, 3.8vw, 3.8rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.about-scroll-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.about-scroll-line .line {
    width: 50px;
    height: 1px;
    background-color: var(--text-unselected);
}

/* Narrative Section */
.about-narrative {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 8rem;
    padding-top: 4rem;
}

.narrative-left {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.narrative-heading {
    font-size: 1.5rem;
    font-weight: 500;
}

.narrative-right {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.narrative-right p {
    margin-bottom: 1.5rem;
}

/* Disciplines & Recognition Section */
.about-disciplines-section {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2rem;
    margin-bottom: 8rem;
}

.disciplines-card {
    background-color: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.recognition-card {
    background-color: #050505;
    color: white;
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.card-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.discipline-item {
    display: flex;
    flex-direction: column;
}

.discipline-num {
    font-size: 0.875rem;
    color: var(--text-unselected);
    margin-bottom: 0.5rem;
}

.discipline-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.discipline-item p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.discipline-tags {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.dark-mode .discipline-tags {
    border-top-color: rgba(255,255,255,0.1);
}

.discipline-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background-color: rgba(0,0,0,0.05);
    border-radius: 100px;
    color: var(--text-secondary);
}

body.dark-mode .discipline-tags span {
    background-color: rgba(255,255,255,0.05);
}

.recognition-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.recognition-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.rec-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.rec-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.rec-content p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.rec-others {
    margin-top: 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-align: center;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   ABOUT PAGE: INFLUENCES & INSPIRATIONS MARQUEE SHOWREEL
   ========================================================================== */
.about-influences-section {
    padding: 2.5rem 0 3.5rem;
    margin: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.influences-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.25rem;
    padding: 0 1.5rem;
}

.influences-header .micro-text {
    color: var(--text-unselected);
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    display: inline-block;
}

.influences-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

.influences-showreel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
}

/* Gradient fade masks at both horizontal edges */
.influences-showreel::before,
.influences-showreel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(60px, 12vw, 160px);
    z-index: 5;
    pointer-events: none;
}

.influences-showreel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.influences-showreel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.influences-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.influences-track {
    display: flex;
    width: max-content;
    gap: 8px;
    will-change: transform;
    align-items: center;
}

.influences-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Marquee Animations (Left & Right alternating at slow & steady pace) */
@keyframes influenceScrollLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes influenceScrollRight {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.scroll-left {
    animation: influenceScrollLeft 85s linear infinite;
}

.scroll-right {
    animation: influenceScrollRight 92s linear infinite;
}

.scroll-left-alt {
    animation: influenceScrollLeft 80s linear infinite;
}

/* Hovering stops animation for ALL columns/rows */
.about-influences-section:hover .influences-track,
.influences-showreel:hover .influences-track {
    animation-play-state: paused;
}

/* Influence Pill Styling & Tactile Push Interaction */
.influence-pill {
    margin: 0 !important;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: default;
    user-select: none;
    white-space: nowrap;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    transition: margin 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.25s ease,
                box-shadow 0.25s ease,
                color 0.25s ease;
    will-change: transform, margin, padding;
    position: relative;
}

body:not(.dark-mode) .influence-pill {
    background-color: rgba(0, 0, 0, 0.05);
}

.influence-pill .discover-dot {
    width: 5px;
    height: 5px;
    opacity: 0.65;
    flex-shrink: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* On hover: expand, push neighbors left and right away with soft bounce, highlight softly */
.influence-pill:hover {
    margin: 0 8px !important;
    padding: 5px 20px;
    transform: scale(1.04);
    background-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15), 0 0 10px rgba(255, 255, 255, 0.08);
    color: #FFFFFF !important;
    z-index: 10;
}

.influence-pill:hover .discover-dot {
    opacity: 1;
    transform: scale(1.2);
    background-color: #FFFFFF;
}

body:not(.dark-mode) .influence-pill:hover {
    background-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    color: #000000 !important;
}

body:not(.dark-mode) .influence-pill:hover .discover-dot {
    background-color: #000000;
}

/* Inner pill marquee for items with a channel */
.pill-text-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

.pill-static-name {
    display: inline-block;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.pill-marquee-track {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
}

.pill-marquee-sep {
    opacity: 0.45;
    padding: 0 4px;
}

.influence-pill.has-channel:hover .pill-static-name {
    opacity: 0;
    visibility: hidden;
}

.influence-pill.has-channel:hover .pill-marquee-track {
    opacity: 1;
    animation: pillMarqueeScroll 7.5s linear infinite;
}

@keyframes pillMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .about-influences-section {
        padding: 2rem 0 2.5rem;
        margin: 1.5rem 0 1rem;
    }

    .influences-header {
        margin-bottom: 1rem;
    }

    .influences-title {
        font-size: 1.35rem;
    }

    .influence-pill {
        padding: 4px 11px;
        font-size: 0.76rem;
    }

    .influence-pill:hover {
        margin: 0 5px !important;
        padding: 4px 16px;
    }

    .influences-showreel {
        gap: 8px;
    }

    .influences-track,
    .influences-group {
        gap: 6px;
    }
}

/* CTA Section */
.about-cta-section {
    text-align: center;
    padding: 6rem 0;
    border-top: none;
}

.about-cta-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-unselected);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* Dot Matrix Container */
.about-dot-matrix-container {
    display: grid;
    grid-template-columns: repeat(100, 1fr);
    gap: 6px;
    justify-content: center;
    padding: 1.5rem 2rem 1.25rem;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.about-dot-matrix-container .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1d1d6;
    transition: background-color 0.3s ease;
}

body.dark-mode .about-dot-matrix-container .dot {
    background-color: var(--text-unselected);
}

.bg-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-primary);
    transition: opacity 0.3s ease;
}

/* Exception: About page body text stays light (300) in all modes */
.about-page,
.about-page p,
.about-page .about-subtitle,
.about-page .narrative-right p,
.about-page .discipline-item p,
.about-page .rec-content p {
    font-weight: 300 !important;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .about-hero,
    .about-narrative,
    .about-disciplines-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-hero-right {
        padding-left: 0;
    }

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

@media (max-width: 600px) {
    .disciplines-grid {
        grid-template-columns: 1fr;
    }

    .about-cta-section {
        padding: 4rem 0;
    }
}

/* --- Global Loader --- */
.global-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.loaded .global-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-progress-bar {
    width: 200px;
    height: 16px;
    border: 1px solid var(--text-primary);
    border-radius: 20px;
    padding: 2px;
    box-sizing: border-box;
}

.loader-progress-fill {
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 10px;
    width: 0%;
    transition: width 0.05s ease-out;
}

/* --- Hero Animation Init States --- */
/* Fan Cards */
.fan-card {
    transform: translateX(0) translateY(150px) rotate(0deg) scale(0.8);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

/* Specific delays for fan cards to make them stagger out beautifully following the headline reveal */
.fan-card:nth-child(1) { transition-delay: 0.25s; }
.fan-card:nth-child(2) { transition-delay: 0.35s; }
.fan-card:nth-child(3) { transition-delay: 0.45s; }
.fan-card:nth-child(4) { transition-delay: 0.55s; }
.fan-card:nth-child(5) { transition-delay: 0.65s; }
.fan-card:nth-child(6) { transition-delay: 0.75s; }
.fan-card:nth-child(7) { transition-delay: 0.85s; }

body.loaded .fan-card,
body.fast-mode .fan-card {
    transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)) scale(1);
    opacity: 1;
}

body.fast-mode .fan-card {
    transition: none !important;
}

body.fast-mode .global-loader {
    display: none !important;
}

/* Override the transition when hovering after load, so it's snappy again */
body.loaded .fan-card:hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    transform: translateX(var(--x)) translateY(calc(var(--y) - 20px)) rotate(var(--r)) scale(1);
}

/* --- Dispersion Headline --- */
.dispersion-char {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 1s ease, filter 1s ease;
}

body.loaded .dispersion-char {
    opacity: 1;
    filter: blur(0px);
}

/* Page Transition */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}
body.page-entered, body.loaded {
    opacity: 1;
}

.experience-slider .recognition-list {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}
.experience-slider .recognition-list.active {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Footer Icons SVG Styling */
.footer-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-icons a img {
    height: 36px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: block; /* Removes inline gap */
}

.footer-icons a:hover img {
    opacity: 1;
}

body.dark-mode .footer-icons a img {
    filter: invert(1);
    opacity: 0.6;
}

body.dark-mode .footer-icons a:hover img {
    filter: invert(1);
    opacity: 1;
}

/* --- Premium Reveal Animation --- */
.premium-text {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.premium-text.premium-revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Hardware Acceleration & Performance Optimizations --- */
.bento-item, 
.feed-card, 
.dynamic-island, 
.theme-toggle, 
.accordion-content,
.article-bento img {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Native momentum scrolling */


/* ==========================================================================
   STUDIO ROTATE 5-ROW INTERACTIVE WORK & ARTICLE SCROLLER (GPU-COMPOSITED)
   ========================================================================== */
.work-section {
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.work-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.2rem, 3.5vw, 3rem);
    margin: 0 auto 3rem;
    padding: 0 5% 0.5rem;
    max-width: 1400px;
    overflow-x: auto;
    scrollbar-width: none;
}

.work-filter-bar::-webkit-scrollbar {
    display: none;
}

.work-filter-btn {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-fixed);
    cursor: pointer;
    position: relative;
    padding: 0.4rem 0.2rem 0.6rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.work-filter-btn:hover {
    color: var(--text-primary);
}

.work-filter-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.work-filter-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-filter-btn.active::after {
    transform: scaleX(1);
}

/* 5-Row Studio Rotate Scroller Container */
.work-rotate-slider {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--slider-gap);
    user-select: none;
}

:root {
    --slider-card-height: 480px;
    --slider-gap: 36px;
}

@media (min-width: 1400px) {
    :root {
        --slider-card-height: 500px;
        --slider-gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --slider-card-height: 290px;
        --slider-gap: 16px;
    }
}

.UICardSlider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.UICardSlider__outer {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    backface-visibility: hidden;
    will-change: transform;
}

.UICardSlider__inner {
    display: flex;
    flex-shrink: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.UITicker__item {
    display: flex;
    flex-shrink: 0;
    gap: var(--slider-gap);
    padding-right: var(--slider-gap);
    will-change: transform;
}

.UITicker__slide {
    flex-shrink: 0;
}

/* Card Proportions: Consistent Height with Strict Aspect Ratios */
.ContentCardSlider__item {
    height: calc(var(--slider-card-height) + 24px);
    padding: 12px 0;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 1) Vertical Cards: ONLY Articles with 3:4 Aspect Ratio (width = height * 0.75) */
.ContentCardSlider__item.is-article-card {
    width: calc(var(--slider-card-height) * 0.75);
}

/* 2) Wide Cards: ONLY Projects with 1.4:1 Aspect Ratio (width = height * 1.4) */
.ContentCardSlider__item.is-project-card {
    width: calc(var(--slider-card-height) * 1.4);
}

/* Filter Dimming */
.ContentCardSlider__item.is-dimmed {
    opacity: 0.18;
    pointer-events: none;
}

/* ── WORK SECTION CARD BASE ─────────────────────────────────────────────── */
.StyleCard {
    position: relative;
    display: block;
    width: 100%;
    height: var(--slider-card-height);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    background: #111113;
    border: 1px solid transparent;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transform-origin: center center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

body:not(.dark-mode) .StyleCard {
    background: #F2F3F5;
}

/* Card Hover: smooth, subtle scale with colored thin outline (clean, zero glow) */
.StyleCard:hover {
    transform: scale(1.03);
    border-color: var(--brand-color, rgba(255, 255, 255, 0.5));
    box-shadow: none;
    z-index: 10;
}

.StyleCard__frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.MediaFrame__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.StyleCard__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 6px;
}

.StyleCard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    transform-origin: center center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* transition is applied only when row is paused (see .UICardSlider.is-paused rules above) */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.StyleCard:hover .StyleCard__media img {
    transform: scale(1.045);
}

/* Gradient vignette layer */
.StyleCard__vignette {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 25%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.88) 100%);
    z-index: 2;
    pointer-events: none;
}

.StyleCard__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: clamp(14px, 1.8vw, 24px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

/* Card Project & Article Micro Typography */
.CardProject__text,
.CardArticle__content {
    position: relative;
    display: flex;
    flex-direction: column;
    /* No default transition — added only in paused state above */
    transition: none;
}

/* Remove any default :hover from unscoped selectors */
.StyleCard:hover .CardProject__text,
.StyleCard:hover .CardArticle__content {
    transform: none;
}

.CardProject__title .CardTitle p {
    font-family: var(--font-main);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.CardProject__copy {
    margin-top: 5px;
    opacity: 0.85;
}

.CardProject__copy p {
    font-family: var(--font-main);
    font-size: clamp(0.72rem, 0.82vw, 0.82rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* CardArticle Badge (Clean, zero backdrop-filter blur for 60/120 FPS performance) */
.CardArticle__badge {
    margin-bottom: 8px;
}

.CardArticle__badge .micro-text {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: var(--brand-color, #FFFFFF);
}

.CardArticle .CardTitle p {
    font-family: var(--font-main);
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.22;
    margin: 0 0 4px 0;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.CardArticle .CardTitle.is-subtitle p {
    font-family: var(--font-main);
    font-size: clamp(0.72rem, 0.82vw, 0.82rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    letter-spacing: 0.02em;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   STATEMENT TEXTBLOCK BREAK (PARTICLE FADE IN / OUT)
   ========================================================================== */
.statement-section {
    padding: 8.5rem 5% 7.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.statement-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.statement-content {
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    /* Smooth hardware-accelerated fade and rise */
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.statement-content.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.statement-tag {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.statement-headline {
    font-size: clamp(2.2rem, 4.4vw, 3.85rem);
    font-weight: 400;
    line-height: 1.15; /* reduced line spacing */
    letter-spacing: -0.03em;
    color: #7E8694;
    text-align: center;
}

body:not(.dark-mode) .statement-headline {
    color: #6B7280;
}

.statement-headline .highlight-word {
    color: var(--text-primary);
    font-weight: 400;
}

.particle-word {
    display: inline-block;
    white-space: nowrap;
    font-weight: inherit;
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.statement-content.visible .particle-word {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

/* ==========================================================================
   REVAMPED 2-LANE CLIENT SCROLL (OPPOSITE DIRECTIONS + INTERACTIVE ACCELERATION)
   ========================================================================== */
.clients-section-revamped {
    padding: 3rem 0 6rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-section-header {
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.client-title-pill,
.client-year-pill {
    margin-bottom: 0 !important;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: -0.022em;
}

.clients-dual-lanes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
    user-select: none;
}

.clients-dual-lanes::before,
.clients-dual-lanes::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(60px, 8vw, 140px);
    z-index: 10;
    pointer-events: none;
}

.clients-dual-lanes::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.clients-dual-lanes::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.client-slider-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    margin: -10px 0;
}

.client-slider-outer {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    backface-visibility: hidden;
    will-change: transform;
}

.client-slider-inner {
    display: flex;
    flex-shrink: 0;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.client-ticker-item {
    display: flex;
    flex-shrink: 0;
    gap: 24px;
    padding-right: 24px;
}

/* ── CLIENT CARD BASE ─────────────────────────────────────────────────────── */
/* No border, no glow */
.client-card-tile {
    width: 250px;
    height: 295px;
    flex-shrink: 0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: #171719;
    border: none;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.dark-mode) .client-card-tile {
    background: #F0F0F3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.client-card-tile:hover {
    transform: translateY(-4px) scale(1.03);
    background-color: var(--brand-color, #111113) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
    z-index: 5;
}

/* Logo Layer: Centered */
.client-logo-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.85rem;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-logo-img {
    max-width: 170px;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 0.3s ease;
}

/* White logo overlay in dark mode */
body.dark-mode .client-logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Black logo in light mode */
body:not(.dark-mode) .client-logo-img {
    filter: brightness(0);
    opacity: 0.85;
}

/* Logo fades out on hover */
.client-card-tile:hover .client-logo-layer {
    opacity: 0;
    transform: scale(0.90);
    pointer-events: none;
}

/* Reveal Layer: Text about said brand */
.client-reveal-layer {
    position: absolute;
    inset: 0;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-sizing: border-box;
}

.client-card-tile:hover .client-reveal-layer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.client-reveal-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-text, #FFFFFF);
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: block;
}

.client-reveal-desc {
    font-size: 0.94rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--brand-text, #FFFFFF);
    letter-spacing: -0.01em;
}

body:not(.dark-mode) .client-card-tile:hover .client-reveal-desc {
    color: var(--brand-text, #FFFFFF);
}

/* Journal Cards (Clean, instant display with zero fade-in lag) */
.journal-card {
    opacity: 1;
}
