/* ==========================================================================
   CSS Variables & Fonts
   ========================================================================== */
   :root {
    /* FONTS - Defined in one place for easy changes */
    --primary-font: 'Inter', sans-serif;
    
    /* LIGHT THEME (Default) */
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #047857; /* Deep Jewel Emerald / Pine with crisp contrast and zero yellow tint */
    --border-color: rgba(0, 0, 0, 0.1);
    --muted-text: rgba(0, 0, 0, 0.5);
    --inverted-bg: #000000;
    --inverted-text: #ffffff;
}

[data-theme="dark"] {
    /* DARK THEME */
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #C3E96D; /* Neon/lime green from the design */
    --border-color: rgba(255, 255, 255, 0.1);
    --muted-text: rgba(255, 255, 255, 0.5);
    --inverted-bg: #ffffff;
    --inverted-text: #000000;
}

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

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    cursor: none; /* Custom cursor */
}

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

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

.accent-text {
    color: var(--accent-color);
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-text);
    display: block;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.12);
    mix-blend-mode: normal;
}

[data-theme="dark"] .cursor.hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    pointer-events: none;
    transition: padding 0.3s ease;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #000000;
    pointer-events: auto;
    text-decoration: none;
    position: relative;
    z-index: 105;
    transition: color 0.4s ease, opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    position: relative;
    z-index: 105;
    transition: background 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-item {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.68);
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-item:hover {
    color: #000000;
    opacity: 1;
}

.nav-item.active {
    color: #000000;
    font-weight: 600;
    opacity: 1;
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #000000;
    border-radius: 1px;
}

.theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: transform 0.25s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: #000000;
    color: #ffffff;
}

.theme-toggle svg {
    width: 15px;
    height: 15px;
}

/* Dark Mode Navigation (Logo stays light for visibility against dark page, while navbar pill remains identical to light mode) */
[data-theme="dark"] .logo {
    color: #ffffff;
}

/* ==========================================================================
   Hamburger Button & Divider (Mobile Navigation Trigger)
   ========================================================================== */
.nav-divider {
    display: none;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000000;
    position: relative;
    transition: transform 0.25s ease, background-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.hamburger-box {
    width: 17px;
    height: 13px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 1.75px;
    background-color: #000000;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.3s ease;
    transform-origin: center;
}

/* Morph Hamburger into an elegant 'X' close button */
.hamburger-btn.is-active .line-1 {
    transform: translateY(5.625px) rotate(45deg);
}

.hamburger-btn.is-active .line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active .line-3 {
    transform: translateY(-5.625px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Menu Overlay & Drawer
   (Contains ONLY navigation items; Dark & Light mode toggle is outside in the header)
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    height: 100vh;
    z-index: 95;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Blurred Ambient Backdrop */
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

[data-theme="dark"] .mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.68);
}

.mobile-menu.is-active .mobile-menu-backdrop {
    opacity: 1;
}

/* Slide-Down Glass Drawer */
.mobile-menu-drawer {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
    padding: calc(4.6rem + env(safe-area-inset-top)) 1.5rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    pointer-events: auto;
}

[data-theme="dark"] .mobile-menu-drawer {
    background: rgba(14, 14, 14, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.mobile-menu.is-active .mobile-menu-drawer {
    transform: translateY(0);
}

.mobile-nav-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

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

.mobile-nav-item-wrapper {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-active .mobile-nav-item-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.is-active .mobile-nav-item-wrapper:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-active .mobile-nav-item-wrapper:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.is-active .mobile-nav-item-wrapper:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-active .mobile-nav-item-wrapper:nth-child(4) { transition-delay: 0.23s; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

[data-theme="dark"] .mobile-nav-link:active,
[data-theme="dark"] .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

.mobile-nav-link.active {
    color: var(--accent-color);
    background: rgba(4, 120, 87, 0.08);
}

[data-theme="dark"] .mobile-nav-link.active {
    background: rgba(195, 233, 109, 0.12);
}

.mobile-nav-arrow {
    font-size: 1.15rem;
    opacity: 0.45;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-arrow,
.mobile-nav-link:active .mobile-nav-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Body lock when mobile menu is open */
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

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

.hero-video-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: var(--inverted-bg);
    border-radius: 0;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    border-radius: 0;
}

.hero-controls {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    gap: 1rem;
    mix-blend-mode: difference;
    color: #fff;
    z-index: 10;
    transform-origin: bottom left;
}

.hero-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: none;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-control-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.hero-control-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro-section {
    padding: 8rem 4rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.intro-text {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 400;
}

.sub-label {
    display: block;
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* ==========================================================================
   Work Section
   ========================================================================== */
.work-section {
    padding: 4rem;
}

.work-header {
    margin-bottom: 6rem;
}

.work-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.huge-title {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.arrow-down {
    color: var(--accent-color);
    font-size: 0.6em;
    font-weight: 300;
}

.projects-grid {
    display: flex;
    gap: 4rem;
}

.projects-column {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    flex: 1;
}

.stagger-col {
    margin-top: 15rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.project-img {
    width: 100%;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-details h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.project-details p {
    font-size: 0.75rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-arrow {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: invert(1);
}

[data-theme="dark"] .custom-arrow {
    filter: none;
}

.project-arrow {
    width: 32px;
    height: 32px;
}

.arrow-down {
    width: 60px;
    height: 60px;
}

.arrow-up {
    width: 120px;
    height: 120px;
}

.project-card:hover .project-arrow {
    transform: translate(5px, -5px);
}

/* ==========================================================================
   Services Section (My Services)
   ========================================================================== */
.services-section {
    padding: 8rem 4rem;
    border-top: 1px solid var(--border-color);
}

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

.services-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted-text);
    max-width: 90%;
    margin-top: 2rem;
}

.services-right {
    display: flex;
    flex-direction: column;
}

.service-item {
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 0;
    cursor: none;
    user-select: none;
    transition: padding 0.3s ease;
}

.service-header h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-header:hover h2 {
    color: var(--accent-color);
    transform: translateX(6px);
}

.service-item.active .service-header h2 {
    color: var(--accent-color);
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.toggle-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.toggle-icon .vertical-line {
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.service-item.active .toggle-icon .vertical-line {
    transform: scaleY(0);
    opacity: 0;
}

/* Accordion smooth expansion */
.service-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item.active .service-content-wrapper {
    grid-template-rows: 1fr;
}

.service-content {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    padding-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item.active .service-content {
    opacity: 1;
    transform: translateY(0);
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.service-list li {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-color);
    opacity: 0.85;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.service-list li:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(4px);
}

/* ==========================================================================
   Approach Section
   ========================================================================== */
.approach-section {
    position: relative;
    padding: 7rem 4rem 6rem;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 480px;
    transition: min-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.approach-section.is-pops-open {
    min-height: 780px;
    max-height: 870px;
    padding: 4.5rem 4rem 5rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.approach-text {
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: 2.2rem;
    max-width: 900px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    background: transparent;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

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

/* Approach Toggle Button */
.approach-btn-wrapper {
    position: relative;
    z-index: 40;
    display: inline-block;
}

.approach-toggle-btn {
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-weight: 500;
    user-select: none;
    outline: none;
}

.approach-toggle-btn .btn-text {
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Dark mode explicit visibility for Show me button */
[data-theme="dark"] .approach-toggle-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .approach-toggle-btn .btn-text {
    color: #ffffff !important;
}

[data-theme="dark"] .approach-toggle-btn .approach-btn-arrow {
    filter: none !important;
    opacity: 0.95;
}

/* Light mode explicit visibility */
:root:not([data-theme="dark"]) .approach-toggle-btn,
body:not([data-theme="dark"]) .approach-toggle-btn {
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

:root:not([data-theme="dark"]) .approach-toggle-btn .btn-text,
body:not([data-theme="dark"]) .approach-toggle-btn .btn-text {
    color: #000000 !important;
}

:root:not([data-theme="dark"]) .approach-toggle-btn .approach-btn-arrow,
body:not([data-theme="dark"]) .approach-toggle-btn .approach-btn-arrow {
    filter: invert(1) !important;
}

/* Hover state when inactive */
.approach-toggle-btn:hover {
    background: var(--inverted-bg);
    color: var(--inverted-text) !important;
}

[data-theme="dark"] .approach-toggle-btn:hover .btn-text {
    color: #000000 !important;
}

[data-theme="dark"] .approach-toggle-btn:hover .approach-btn-arrow {
    filter: invert(1) !important;
}

:root:not([data-theme="dark"]) .approach-toggle-btn:hover .btn-text {
    color: #ffffff !important;
}

:root:not([data-theme="dark"]) .approach-toggle-btn:hover .approach-btn-arrow {
    filter: none !important;
}

.approach-btn-arrow {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active State: Mint "Close" pill exactly like in reference */
.approach-toggle-btn.is-active {
    background: #C3E96D !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.35) !important;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(195, 233, 109, 0.4);
    padding: 0.85rem 2.2rem;
    transform: scale(1.02);
}

.approach-toggle-btn.is-active .btn-text {
    color: #000000 !important;
}

.approach-toggle-btn.is-active:hover {
    background: #b5e454 !important;
    color: #000000 !important;
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(195, 233, 109, 0.55);
}

.approach-toggle-btn.is-active .approach-btn-arrow {
    display: none;
}

/* Approach Pop Items Overlay Container */
.approach-pops-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s ease, opacity 0.4s ease;
}

.approach-section.is-pops-open .approach-pops-container {
    visibility: visible;
    opacity: 1;
}

/* Individual Pop Item Cards */
.approach-pop-item {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.3);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.35s ease, filter 0.35s ease;
    cursor: pointer;
    user-select: none;
    will-change: transform, opacity;
}

.approach-section.is-pops-open .approach-pop-item {
    pointer-events: auto;
}

.approach-pop-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    pointer-events: none;
}

.approach-pop-item:hover {
    z-index: 35 !important;
    transform: translateY(-8px) scale(1.04) !important;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.7);
}

/* Positions matching the reference collage (calibrated for 1-frame view) */
/* 1. Wireframe card (Top Left) */
.pop-item-wireframe {
    top: 2%;
    left: 2%;
    width: clamp(160px, 15.5vw, 225px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 2. Neon T-Shirt (Top Center-Left) */
.pop-item-tshirt {
    top: 0%;
    left: 19.5%;
    width: clamp(180px, 17vw, 250px);
    border-radius: 4px;
}

/* Floating Discord Badge on T-shirt */
.pop-discord-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(18, 18, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 6px 11px;
    color: #ffffff;
    font-size: 0.7rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 5;
    letter-spacing: 0.01em;
}

.discord-badge-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 3px;
}

.discord-badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

.discord-badge-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.discord-badge-msg strong {
    font-weight: 600;
}

/* 3. Typography card (Top Right-Center) */
.pop-item-typography {
    top: 3%;
    left: 46%;
    width: clamp(135px, 12.5vw, 190px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. Video card (Top Far-Right) */
.pop-item-video {
    top: 1.5%;
    right: 11.5%;
    width: clamp(135px, 12.5vw, 185px);
    aspect-ratio: 9/13;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
}

.pop-video-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.pop-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pop-video-controls {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.pop-video-play-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.pop-video-scrub {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

.pop-video-scrub-bar {
    width: 0%;
    height: 100%;
    background: #C3E96D;
    border-radius: 2px;
}

/* 5. Pixel Art Sticker (Mid Right) */
.pop-item-pixel {
    top: 16%;
    right: 2%;
    width: clamp(88px, 8vw, 120px);
    aspect-ratio: 1/1;
    background: #ffffff;
    padding: 4px;
}

/* === BOTTOM 3 IMAGES MOVED UP FOR ONE-FRAME DISPLAY === */
/* 6. Dense Moodboard (Bottom Left - Moved Up) */
.pop-item-moodboard {
    bottom: 11.5%;
    left: 6%;
    width: clamp(165px, 15.5vw, 230px);
    aspect-ratio: 1/1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 7. Research flowchart notes (Bottom Center - Moved Up) */
.pop-item-research {
    bottom: 10.5%;
    left: 43%;
    width: clamp(170px, 16vw, 235px);
    aspect-ratio: 1/1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 8. Studio Workspace (Bottom Right - Moved Up) */
.pop-item-workspace {
    bottom: 9%;
    right: 2%;
    width: clamp(200px, 19vw, 275px);
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Quote Section
   ========================================================================== */
.quote-section {
    padding: 8rem 4rem;
}

.huge-quote {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-section {
    padding: 8rem 4rem 4rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-right h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-right p {
    color: var(--muted-text);
}

.footer-heading-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-heading-link:hover {
    opacity: 0.88;
}

.footer-heading-link:hover .custom-arrow.arrow-up {
    transform: translate(6px, -6px);
}

.massive-text {
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    position: relative;
}

.arrow-up {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 0.5em;
    font-weight: 300;
}

/* ==========================================================================
   Touch Devices Optimization (Tablets, iPad, iPhone, Android)
   ========================================================================== */
@media (hover: none), (pointer: coarse) {
    .cursor {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
    button, a, input, [role="button"] {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ==========================================================================
   Responsive Design Breakpoints
   ========================================================================== */

/* 1. Tablet Landscape & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.5rem 2.5rem;
    }

    .intro-section,
    .work-section,
    .services-section,
    .approach-section,
    .quote-section,
    .footer-section {
        padding: 5rem 2.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr 1.6fr;
        gap: 2.5rem;
    }

    .huge-title {
        font-size: clamp(3rem, 7.5vw, 6rem);
    }

    .projects-grid {
        gap: 2.5rem;
    }

    .projects-column {
        gap: 5rem;
    }

    .stagger-col {
        margin-top: 6rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1.6fr;
        gap: 2.5rem;
    }

    .service-header h2 {
        font-size: clamp(2rem, 4.5vw, 3.2rem);
    }

    .service-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding-bottom: 2.5rem;
    }

    .approach-grid {
        grid-template-columns: 1fr 1.6fr;
        gap: 3rem;
    }

    .approach-text {
        font-size: 1.5rem;
    }

    .approach-section.is-pops-open {
        min-height: 720px;
        max-height: 800px;
        padding: 4rem 2.5rem 5rem;
    }

    .pop-item-wireframe { width: 140px; top: 2%; left: 1%; }
    .pop-item-tshirt { width: 155px; top: 0%; left: 18%; }
    .pop-item-typography { width: 120px; top: 3%; left: 46%; }
    .pop-item-video { width: 120px; top: 2%; right: 3%; }
    .pop-item-pixel { width: 80px; top: 18%; right: 2%; }
    .pop-item-moodboard { width: 145px; bottom: 10%; left: 2%; }
    .pop-item-research { width: 150px; bottom: 9%; left: 38%; }
    .pop-item-workspace { width: 175px; bottom: 8%; right: 2%; }

    .huge-quote {
        font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    }

    .footer-top {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .massive-text {
        font-size: clamp(3rem, 9vw, 7rem);
    }
}

/* 2. Tablet Portrait (max-width: 900px) */
@media (max-width: 900px) {
    .navbar {
        padding: 1.25rem 2rem;
    }

    .intro-grid,
    .services-grid,
    .approach-grid,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-desc {
        max-width: 100%;
        margin-top: 1rem;
    }

    .projects-grid {
        flex-direction: column;
        gap: 3.5rem;
    }

    .projects-column {
        gap: 3.5rem;
    }

    .stagger-col {
        margin-top: 0 !important;
    }

    .project-card {
        max-width: 100%;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
    }

    .project-info {
        order: -1 !important;
        margin-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }

    /* Approach Section Tablet Portrait */
    .approach-section.is-pops-open {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 4rem !important;
    }

    .approach-pops-container {
        position: relative !important;
        inset: auto !important;
        display: none;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
        margin-top: 2.5rem !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .approach-section.is-pops-open .approach-pops-container {
        display: grid !important;
    }

    .approach-pop-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 220px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    }

    .approach-pop-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .pop-item-tshirt {
        grid-column: span 2 !important;
        height: 300px !important;
    }

    .pop-item-video {
        grid-column: span 2 !important;
        height: 280px !important;
        aspect-ratio: 16/9 !important;
    }

    .pop-item-video .pop-video-card,
    .pop-item-video .pop-video-element {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .pop-item-workspace {
        grid-column: span 2 !important;
        height: 280px !important;
    }

    .footer-top {
        margin-bottom: 4rem;
    }
}

/* 3. Mobile Phones (Android & iOS) (max-width: 768px) */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        -webkit-text-size-adjust: 100%;
    }

    /* Fixed top navigation - mobile sleek pill with Theme Toggle & Hamburger */
    .navbar {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.85rem 1.25rem;
        padding-top: max(0.85rem, env(safe-area-inset-top));
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }

    .logo {
        font-size: 1.75rem;
    }

    /* Hide desktop nav items inside the top bar pill */
    .nav-links .nav-item {
        display: none !important;
    }

    /* Mobile header pill: Houses Theme Toggle & Hamburger outside the mobile menu */
    .nav-links {
        padding: 0.35rem 0.55rem;
        gap: 0.4rem;
        border-radius: 40px;
    }

    .theme-toggle {
        display: flex !important;
        width: 32px;
        height: 32px;
    }

    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }

    .nav-divider {
        display: block !important;
        width: 1px;
        height: 16px;
        background-color: rgba(0, 0, 0, 0.12);
        margin: 0 0.05rem;
    }

    .hamburger-btn {
        display: flex !important;
        width: 32px;
        height: 32px;
    }

    /* Hero section & controls */
    .hero {
        height: 100svh;
        height: 100vh;
    }

    .hero-controls {
        bottom: max(1.5rem, env(safe-area-inset-bottom));
        left: 1.25rem;
        gap: 0.65rem;
    }

    .hero-control-btn {
        width: 44px;
        height: 44px;
    }

    .hero-control-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Main Section paddings on mobile */
    .intro-section,
    .work-section,
    .services-section,
    .approach-section,
    .quote-section,
    .footer-section {
        padding: 3.5rem 1.25rem;
    }

    .intro-header-col {
        margin-bottom: 0.5rem;
    }

    .intro-statement {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
        line-height: 1.45;
    }

    /* Work section */
    .work-header {
        margin-bottom: 3.5rem;
    }

    .work-labels {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .huge-title {
        font-size: clamp(2rem, 8.5vw, 3.2rem);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        line-height: 1.1;
    }

    .custom-arrow.arrow-down {
        width: 28px;
        height: 28px;
    }

    .project-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
    }

    .project-image-wrapper {
        border-radius: 12px;
        aspect-ratio: 16/10;
    }

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

    .project-info {
        order: -1 !important;
        margin-bottom: 0.65rem !important;
        margin-top: 0 !important;
    }

    .project-details h3 {
        font-size: 1.25rem;
    }

    .project-details p {
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }

    .custom-arrow.project-arrow {
        width: 18px;
        height: 18px;
    }

    /* Services Section */
    .service-header {
        padding: 1.35rem 0;
    }

    .service-header h2 {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem);
        letter-spacing: -0.01em;
        line-height: 1.2;
    }

    .toggle-icon {
        width: 32px;
        height: 32px;
    }

    .toggle-icon svg {
        width: 20px;
        height: 20px;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-bottom: 1.75rem;
    }

    .service-list li {
        font-size: 0.85rem;
    }

    /* Approach Section */
    .approach-text {
        font-size: clamp(1.15rem, 4.5vw, 1.45rem);
        line-height: 1.55;
        margin-bottom: 1.8rem;
    }

    .btn-primary {
        padding: 0.85rem 1.6rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .approach-section {
        overflow: visible !important;
    }

    .approach-section.is-pops-open {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 4rem !important;
    }

    .approach-pops-container {
        position: relative !important;
        inset: auto !important;
        display: none;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
        margin-top: 2rem !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .approach-section.is-pops-open .approach-pops-container {
        display: grid !important;
    }

    .approach-pop-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 180px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    }

    .approach-pop-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .pop-item-tshirt {
        grid-column: span 2 !important;
        height: 240px !important;
    }

    .pop-item-video {
        grid-column: span 2 !important;
        height: 220px !important;
        aspect-ratio: 16/9 !important;
    }

    .pop-item-video .pop-video-card,
    .pop-item-video .pop-video-element {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .pop-item-workspace {
        grid-column: span 2 !important;
        height: 220px !important;
    }

    /* Quote Section */
    .huge-quote {
        font-size: clamp(1.6rem, 6.2vw, 2.4rem);
        line-height: 1.25;
        margin-top: 1.25rem;
    }

    /* Footer Section - Fully Visible & Responsive on Mobile */
    .footer-section {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 4rem 1.25rem max(2.5rem, env(safe-area-inset-bottom)) !important;
        position: relative !important;
        z-index: 5 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border-top: 1px solid var(--border-color) !important;
    }

    /* Guarantee opacity 1 and normal transform on all footer elements in mobile */
    .footer-section,
    .footer-section .footer-top,
    .footer-section .footer-bottom,
    .footer-section .footer-left,
    .footer-section .footer-right,
    .footer-section .footer-heading-link,
    .footer-section .massive-text,
    .footer-section .fade-up {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .footer-top {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        margin-bottom: 2.75rem !important;
        width: 100% !important;
    }

    .footer-left {
        width: 100% !important;
    }

    .footer-left .label {
        font-size: 0.75rem !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        color: var(--muted-text) !important;
        display: block !important;
        margin-bottom: 0.25rem !important;
    }

    .footer-right {
        width: 100% !important;
    }

    .footer-right h3 {
        font-size: clamp(1.15rem, 4.8vw, 1.4rem) !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        margin-bottom: 0.45rem !important;
        color: var(--text-color) !important;
    }

    .footer-right p {
        font-size: clamp(0.9rem, 3.8vw, 1rem) !important;
        line-height: 1.5 !important;
        color: var(--muted-text) !important;
    }

    .footer-bottom {
        width: 100% !important;
        display: block !important;
        margin-top: 0 !important;
    }

    .footer-heading-link {
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
        color: inherit !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent;
    }

    .massive-text {
        display: block !important;
        font-size: clamp(2rem, 8.5vw, 3.4rem) !important;
        font-weight: 700 !important;
        line-height: 1.08 !important;
        letter-spacing: -0.03em !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .custom-arrow.arrow-up {
        display: inline-block !important;
        vertical-align: middle !important;
        width: clamp(22px, 6vw, 30px) !important;
        height: clamp(22px, 6vw, 30px) !important;
        margin-left: 0.35rem !important;
        position: static !important;
        transform: translateY(-2px) !important;
        filter: invert(1);
    }

    [data-theme="dark"] .custom-arrow.arrow-up {
        filter: none !important;
    }

    .footer-heading-link:active .custom-arrow.arrow-up,
    .footer-heading-link:hover .custom-arrow.arrow-up {
        transform: translate(3px, -3px) !important;
    }
}

/* 4. Small Mobile Phones (max-width: 400px, e.g. iPhone SE / Galaxy S mini) */
@media (max-width: 400px) {
    .navbar {
        padding: 0.75rem 0.85rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        padding: 0.3rem 0.45rem;
        gap: 0.35rem;
    }

    .theme-toggle,
    .hamburger-btn {
        width: 30px;
        height: 30px;
    }

    .theme-toggle svg {
        width: 13px;
        height: 13px;
    }

    .hamburger-box {
        width: 16px;
        height: 12px;
    }

    .huge-title {
        font-size: 1.85rem;
    }

    .massive-text {
        font-size: clamp(1.75rem, 7.8vw, 2.1rem) !important;
        line-height: 1.12 !important;
    }

    .custom-arrow.arrow-up {
        width: 20px !important;
        height: 20px !important;
    }

    .approach-pops-container {
        grid-template-columns: 1fr !important;
    }

    .approach-pop-item {
        height: 200px !important;
    }

    .pop-item-tshirt,
    .pop-item-video,
    .pop-item-workspace {
        grid-column: span 1 !important;
        height: 220px !important;
    }
}


/* ==========================================================================
   Work Showcase Page (work.html)
   ========================================================================== */
body.work-page-body {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: #ededed;
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.work-page-body[data-theme="dark"],
[data-theme="dark"] body.work-page-body,
[data-theme="dark"] .work-page-body {
    background-color: #080808;
    color: #ffffff;
}

.work-page-main {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 3.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.work-showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.work-stage-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

.work-active-title {
    font-family: var(--primary-font);
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-color);
    margin: 0 auto;
    line-height: 1.1;
    user-select: none;
    white-space: nowrap;
    text-align: center;
    transition: color 0.4s ease;
}

.work-slider-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.work-slider-stage {
    position: relative;
    width: clamp(320px, 38vw, 580px);
    height: clamp(210px, 25vw, 380px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: none;
    user-select: none;
    will-change: transform, opacity;
}

.slide-card {
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 0;
    background: #ffffff;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.4s ease;
}

body.work-page-body[data-theme="dark"] .slide-card,
[data-theme="dark"] .slide-card {
    background: #111111;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    pointer-events: none;
}

.slide-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
    height: 38px;
    font-family: var(--primary-font);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-color);
    width: 100%;
    position: relative;
}

.slide-num {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: opacity 0.3s ease, color 0.4s ease;
}

.slide-bullet {
    color: var(--accent-color);
    margin-right: 0.25rem;
    display: inline-block;
    transition: opacity 0.3s ease, color 0.4s ease;
}

.work-slide:not(.is-active) .slide-bullet {
    display: none;
}

.work-slide:not(.is-active) .slide-num {
    opacity: 0.55;
}

.slide-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.72rem;
    text-align: right;
    transition: opacity 0.25s ease;
}

.work-slide:not(.is-active) .slide-meta {
    opacity: 0;
    visibility: hidden;
}

.meta-item {
    color: var(--text-color);
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
}

.meta-item strong {
    font-weight: 700;
    margin-right: 0.35rem;
    opacity: 0.65;
}

/* Navigation Arrow Controls */
.slider-nav-controls {
    position: absolute;
    top: calc(50% - 1rem);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 clamp(0.5rem, 1.8vw, 2.5rem);
    pointer-events: none;
    z-index: 25;
    transform: translateY(-50%);
}

.slider-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: none;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body.work-page-body[data-theme="dark"] .slider-arrow-btn,
[data-theme="dark"] .slider-arrow-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.slider-arrow-btn svg {
    width: 20px;
    height: 20px;
}

.slider-arrow-btn:hover {
    transform: scale(1.12);
    background: var(--inverted-bg);
    color: var(--inverted-text);
    border-color: transparent;
}

/* Work Showcase Responsive (Tablets & Mobile) */
@media (max-width: 1024px) {
    .work-page-main {
        padding-top: 4.5rem;
    }

    .work-stage-header {
        max-width: 100vw;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    #activeProjectTitle {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        text-align: center;
        margin: 0 auto;
    }

    .work-slider-stage {
        width: clamp(280px, 48vw, 480px);
        height: clamp(185px, 32vw, 320px);
    }

    .slider-arrow-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    body.work-page-body {
        height: 100svh;
        height: 100vh;
        max-height: 100vh;
    }

    .work-page-main {
        height: 100svh;
        height: 100vh;
        padding: 5rem 0.5rem 1.5rem;
        justify-content: center;
    }

    .work-stage-header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    #activeProjectTitle {
        font-size: clamp(1.4rem, 5.5vw, 1.95rem) !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .work-slider-stage {
        width: clamp(220px, 64vw, 290px) !important;
        height: clamp(155px, 44vw, 205px) !important;
    }

    .slider-nav-controls {
        padding: 0 0.4rem;
        top: calc(50% - 1rem);
    }

    .slider-arrow-btn {
        width: 38px;
        height: 38px;
    }

    .slider-arrow-btn svg {
        width: 16px;
        height: 16px;
    }

    .slide-info-row {
        margin-top: 0.65rem;
        height: auto;
    }

    .slide-num {
        font-size: 0.78rem;
    }

    .slide-meta {
        font-size: 0.64rem;
        gap: 0.15rem;
    }

    .meta-item strong {
        margin-right: 0.2rem;
    }
}

/* ==========================================================================
   About Page & Content Pages (about.html, case-study.html)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.about-wrapper {
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 4.5rem;
    align-items: start;
    margin-bottom: 5rem;
}

.about-text-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-text-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted-text);
    margin-bottom: 1.4rem;
}

.about-contact-msg {
    margin-top: 2rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
}

.about-contact-details {
    font-size: 1.1rem !important;
    font-weight: 500;
    color: var(--text-color) !important;
}

.about-contact-details a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

.about-contact-details a:hover {
    opacity: 0.8;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-profile-img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.about-resume-section {
    margin-top: 4rem;
}

.about-resume-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.resume-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.resume-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.resume-date {
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1.5rem;
}

/* Footer on about and case study pages (legacy fallback only) */
body > footer:not(.footer-section) {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

body > footer p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.social-links a {
    color: var(--text-color);
    opacity: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* Responsive styles for About & Content pages */
@media (max-width: 900px) {
    .about-wrapper {
        padding-top: 6.5rem;
        padding-bottom: 4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 3.5rem;
    }

    .about-image-wrapper {
        order: -1;
    }

    .about-profile-img {
        max-width: 340px;
    }

    .resume-item {
        flex-direction: column;
        gap: 0.35rem;
        padding: 1rem 0;
    }

    .resume-date {
        margin-left: 0;
    }
}

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

    .about-wrapper {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }

    .about-text-content h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
        margin-bottom: 1.25rem;
    }

    .about-text-content p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .about-profile-img {
        max-width: 280px;
        border-radius: 14px;
    }

    body > footer:not(.footer-section) {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2.5rem 1.25rem;
    }
}


/* ==========================================================================
   Project Case Study Page (case-study.html)
   Matches Editorial Design Style with Modular Media Slots
   ========================================================================== */
.case-study-page {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

.case-study-main {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: calc(6.5rem + env(safe-area-inset-top)) 1.75rem 2rem;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Hero Media Slot (Top)
   -------------------------------------------------------------------------- */
.case-hero-wrapper {
    width: 100%;
    margin-bottom: 3.5rem;
}

/* --------------------------------------------------------------------------
   Modular Media Slots (Images or Videos)
   -------------------------------------------------------------------------- */
.case-media-slot {
    position: relative;
    width: 100%;
    background-color: #cecece;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .case-media-slot {
    background-color: #212121;
}

.case-media-slot.slot-hero {
    aspect-ratio: 16 / 9;
    max-height: 720px;
    min-height: 320px;
}

.case-media-slot.slot-full {
    aspect-ratio: 16 / 9.5;
    min-height: 300px;
}

.case-media-slot.slot-half {
    aspect-ratio: 4 / 3.2;
    min-height: 240px;
}

/* Media elements inside slots */
.case-media-slot img,
.case-media-slot video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    z-index: 2;
}

/* Placeholder watermark & hints */
.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.media-placeholder-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.15rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px dashed rgba(0, 0, 0, 0.16);
    border-radius: 30px;
    color: rgba(0, 0, 0, 0.42);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

[data-theme="dark"] .media-placeholder-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.45);
}

.media-placeholder-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Hide placeholder when an img or video exists inside */
.case-media-slot:has(img) .media-placeholder,
.case-media-slot:has(video) .media-placeholder,
.case-media-slot.has-media .media-placeholder {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Project Info Section
   -------------------------------------------------------------------------- */
.case-intro-section {
    margin-bottom: 4rem;
}

.case-study-title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
    line-height: 1.05;
}

.case-study-hr {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    margin: 0 0 2.5rem 0;
}

[data-theme="dark"] .case-study-hr {
    background-color: rgba(255, 255, 255, 0.14);
}

.case-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4.5rem;
    align-items: start;
}

/* Left Column */
.case-meta-group {
    margin-bottom: 2rem;
}

.case-meta-group:last-child {
    margin-bottom: 0;
}

.case-meta-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-text);
    margin-bottom: 0.65rem;
}

.case-industry-pill {
    display: inline-block;
    background: #befda7;
    color: #050505;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
}

[data-theme="dark"] .case-industry-pill {
    background: #c3e96d;
    color: #000000;
}

.case-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.case-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .case-tag {
    background: rgba(255, 255, 255, 0.08);
}

/* Right Column (Narrative) */
.case-narrative-lead {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.case-narrative-body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted-text);
    margin: 0 0 1rem 0;
}

.case-narrative-body p:last-child {
    margin-bottom: 0;
}

/* More Content Accordion */
.case-more-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, transform 0.35s ease;
}

.case-more-content.is-expanded {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
}

.case-more-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted-text);
    margin: 0 0 1rem 0;
}

/* Actions Row (More Info & Website Buttons) */
.case-actions-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.case-btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.65rem 1.4rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.case-btn-more:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

[data-theme="dark"] .case-btn-more {
    background: #ffffff;
    color: #000000;
}

.case-btn-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #befda7;
    color: #000000;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.65rem 1.4rem;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.case-btn-website:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(190, 253, 167, 0.4);
    opacity: 0.92;
}

[data-theme="dark"] .case-btn-website {
    background: #c3e96d;
    color: #000000;
}

/* --------------------------------------------------------------------------
   Media Gallery Section
   -------------------------------------------------------------------------- */
.case-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 6rem;
}

.case-gallery-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .case-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .case-study-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .case-study-main {
        padding: calc(5rem + env(safe-area-inset-top)) 1.25rem 2rem;
    }

    .case-hero-wrapper {
        margin-bottom: 2.5rem;
    }

    .case-intro-section {
        margin-bottom: 3rem;
    }

    .case-study-title {
        font-size: 2.2rem;
        margin-bottom: 1.25rem;
    }

    .case-gallery-section {
        gap: 12px;
        margin-bottom: 4rem;
    }

    .case-gallery-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .case-media-slot {
        border-radius: 10px;
    }

    .case-media-slot.slot-hero {
        min-height: 220px;
    }

    .case-media-slot.slot-full {
        min-height: 200px;
    }

    .case-media-slot.slot-half {
        min-height: 180px;
    }

    .case-study-main .footer-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
}

/* Hide Netlify HUD badge / Powered by Netlify */
#nl-hud-frame,
iframe[title*="Netlify"],
iframe[id^="nl-hud"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}
