@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('./assets/fonts/BricolageGrotesque.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

/* ==========================================================================
   1. VARIABLES & THEMING
   ========================================================================== */
:root {
    /* Colors */
    --clr-bg-base: #0f0f0f;      /* true black/dark gray */
    --clr-bg-darker: #080808;
    --clr-bg-light: #161616;     /* slightly elevated */
    --clr-text-main: #f2f0eb;    /* off-white */
    --clr-text-muted: #888888;
    --clr-accent: #c4b5a2;       /* subtle warm copper/beige */
    --clr-accent-subtle: rgba(196, 181, 162, 0.1);
    --clr-bg-black: #000000;
    --clr-nav-bg: rgba(15, 15, 15, 0.85);
    --clr-nav-links-bg: rgba(255, 255, 255, 0.05);
    --clr-nav-links-border: rgba(255, 255, 255, 0.08);
    --clr-highlight-card-bg: #111111;
    --clr-border-btn-secondary: rgba(255, 255, 255, 0.2);
    
    /* Accent borders */
    --clr-node-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-sans: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: var(--font-sans);
    --font-mono: var(--font-sans);
    
    /* Layout & Spacing */
    --container-max: 1300px;
    --container-padding: 5vw;
    --section-padding: max(100px, 8vw);
    
    /* Borders */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
:root[data-theme="light"] {
    --clr-bg-base: #f5f3ef;      /* premium warm soft ivory */
    --clr-bg-darker: #eae7df;    /* slightly darker warm gray */
    --clr-bg-light: #ffffff;     /* pure white for bento tiles and cards */
    --clr-text-main: #1c1a17;    /* rich dark charcoal */
    --clr-text-muted: #706d66;   /* readable muted gray */
    --clr-accent: #77634e;       /* bronze/copper adjusted for light mode contrast */
    --clr-accent-subtle: rgba(142, 122, 100, 0.08);
    --clr-bg-black: #eae7df;     /* inverted dark background */
    --clr-nav-bg: rgba(245, 243, 239, 0.85);
    --clr-nav-links-bg: rgba(0, 0, 0, 0.03);
    --clr-nav-links-border: rgba(0, 0, 0, 0.06);
    --clr-highlight-card-bg: #fcfbfa;
    --clr-border-btn-secondary: rgba(0, 0, 0, 0.15);
    
    /* Accent borders */
    --clr-node-border: rgba(0, 0, 0, 0.08);
    
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. RESET & GLOBAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--clr-bg-base);
    color: var(--clr-text-main);
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Selection */
::selection {
    background-color: var(--clr-accent);
    color: var(--clr-bg-base);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    color: var(--clr-text-muted);
}

.large-paragraph {
    font-size: clamp(1.25rem, 2vw, 2.25rem);
    line-height: 1.3;
    color: var(--clr-text-main);
    font-weight: 300;
}

.sub-paragraph {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.6;
}

.italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.highlight {
    color: var(--clr-accent);
    font-style: italic;
    font-family: var(--font-serif);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-medium);
}

ul {
    list-style: none;
}

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

.section {
    padding: var(--section-padding) 0;
}

.bg-dark { background-color: var(--clr-bg-base); }
.bg-light { background-color: var(--clr-bg-light); }
.bg-black { background-color: var(--clr-bg-black, #000); }
.bg-accent-subtle { background-color: var(--clr-accent-subtle); color: var(--clr-text-main) !important; }

.text-accent { color: var(--clr-accent); }
.text-light { color: #fff; }
.text-muted { color: var(--clr-text-muted); }
.text-invert { color: var(--clr-bg-base); }

.border-top-dark { border-top: var(--border-subtle); }
.border-bottom-subtle { border-bottom: var(--border-subtle); }

.pt-xl { padding-top: max(80px, 6vw); }
.pb-xl { padding-bottom: max(80px, 6vw); }
.pt-l { padding-top: max(60px, 4vw); }
.pb-l { padding-bottom: max(60px, 4vw); }
.pt-m { padding-top: 2rem; }

.mt-xl { margin-top: max(80px, 6vw); }
.mt-l { margin-top: max(50px, 4vw); }
.mt-m { margin-top: 2rem; }
.mt-s { margin-top: 1rem; }
.mt-xs { margin-top: 0.5rem; }

.flex-between { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; }
.flex-gap { display: flex; gap: 2rem; }
.gap-m { gap: 1.5rem; }
.gap-s { gap: 1rem; }
.gap-xs { gap: 0.5rem; }

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 6rem); }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 900px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 3rem; }
    .grid-4-col { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 600px) {
    .grid-4-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: none;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-text-main);
    color: var(--clr-bg-base);
}

.btn-primary:hover {
    background-color: var(--clr-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--clr-text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-text-main);
}

.btn-outline:hover {
    background-color: var(--clr-text-main);
    color: var(--clr-bg-base);
}

.link-hover {
    position: relative;
}
.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}
.link-hover:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem var(--container-padding);
    z-index: 100;
    background-color: rgba(15, 15, 15, 0.85); /* Deep dark with transparency */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle bottom border */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto; /* Re-enable clicks for items */
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--clr-accent);
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scale(1);
}

.btn-nav {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--clr-text-main);
    padding-bottom: 2px;
}

.btn-nav:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

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

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 6.5rem 0 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-headline {
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-subtext {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    margin-bottom: 3rem;
    max-width: 600px;
    color: var(--clr-text-main);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: clamp(1.25rem, 4vh, 2.25rem);
    padding: 0.375rem 0.75rem;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.scroll-indicator:hover,
.scroll-indicator:focus-visible {
    color: var(--clr-text-main);
}

.scroll-indicator:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .hero-headline br {
        display: none;
    }
}

/* Hero Background Visuals */
.hero-bg-visuals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-svg-wrapper {
    position: absolute;
    color: var(--clr-accent);
    opacity: 0.15; /* Slightly higher for visibility with new detailed assets */
    transition: opacity 1s ease;
    pointer-events: none;
}

.hero-svg {
    width: 100%;
    height: auto;
    display: block;
}

.vitruvian-wrap {
    width: clamp(350px, 30vw, 550px);
    top: 2%;
    left: -5%;
    transform: rotate(-10deg);
}

.globe-wrap {
    width: clamp(300px, 25vw, 500px);
    bottom: -5%;
    right: -5%;
    transform: rotate(15deg);
}

.golden-wrap {
    width: clamp(250px, 20vw, 400px);
    top: 55%;
    left: 5%;
    transform: rotate(20deg);
}

@media (max-width: 900px) {
    .hero-svg-wrapper {
        opacity: 0.1;
    }
    .vitruvian-wrap { width: 250px; top: 8%; left: -10%; }
    .globe-wrap { width: 280px; bottom: -2%; right: -10%; }
    .golden-wrap { width: 180px; top: 60%; left: -2%; }
}

/* ==========================================================================
   7. BENTO GRID SECTION
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    gap: 1.5rem;
}

.bento-tile {
    background-color: var(--clr-bg-light);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-slow), border-color var(--transition-medium);
}

.bento-darker { background-color: #111111; }
.bento-tile:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.15); }

.tile-large { grid-column: span 2; grid-row: span 1; }
.tile-square { grid-column: span 1; grid-row: span 1; }
.tile-img { grid-column: span 1; grid-row: span 1; padding: 0; border: none; }
.tile-wide { grid-column: span 2; grid-row: span 1; }
.tile-vertical { grid-column: span 1; grid-row: span 2; }
.tile-cta { 
    grid-column: span 2; 
    grid-row: span 1; 
    background-color: var(--clr-text-main); 
    color: var(--clr-bg-base); 
}

.bento-tile.tile-cta:hover { background-color: var(--clr-accent); }

.bento-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: auto;
    color: var(--clr-text-muted);
}
.bento-tag.center { margin: 0; margin-bottom: 0.5rem; }

.bento-tile h3 {
    margin-top: auto;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    line-height: 1.2;
}

.bento-tile blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--clr-accent);
}

.minimal-list {
    margin-top: auto;
}
.minimal-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-serif);
    font-style: italic;
}
.minimal-list li:last-child { border: none; }

.center-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}
.center-content h2 { color: var(--clr-bg-base); margin:0; }

.tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    display: flex;
    align-items: flex-end;
}
.bento-overlay span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
    .tile-wide { grid-column: span 2; }
    .tile-large { grid-column: span 2; }
    .tile-vertical { grid-row: span 1; grid-column: span 2; }
    .tile-cta { grid-column: span 2; }
}
@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .tile-wide, .tile-large, .tile-cta, .tile-vertical { grid-column: span 1; }
}

/* ==========================================================================
   8. SELECTED WORK
   ========================================================================== */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.work-item { margin-bottom: 2rem; display: block; }
.work-item:hover .work-img-wrapper img { transform: scale(1.03); }

.work-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/5;
    margin-bottom: 1.5rem;
}

.work-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hover-overlay-subtle {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity var(--transition-medium);
}
.work-item:hover .hover-overlay-subtle { opacity: 1; }

.work-meta h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.work-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-muted);
}

@media (max-width: 768px) {
    .work-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Projects Bento & Filters */
.project-filters {
    margin-bottom: 1rem;
}
.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    cursor: none; /* Custom cursor */
    transition: all var(--transition-medium);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--clr-accent);
    color: var(--clr-bg-base);
    border-color: var(--clr-accent);
}

.bento-item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: var(--clr-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}
.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}
.bento-item .work-img-wrapper {
    margin-bottom: 0;
    height: 100%;
    aspect-ratio: unset;
    position: absolute;
    inset: 0;
}
.bento-item .work-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

@media (max-width: 1024px) {
    .bento-large, .bento-medium, .bento-wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media (max-width: 600px) {
    .bento-large, .bento-medium, .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ==========================================================================
   9. CASE STUDIES
   ========================================================================== */
.case-study {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Slightly wider visual */
    gap: 5rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem; /* Added balanced bottom padding */
}

.case-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-slow);
}

.case-slide:hover .case-visual {
    transform: translateY(-8px);
}

.case-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-slide:hover .case-visual img {
    transform: scale(1.03);
}

.case-content {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-number {
    font-family: var(--font-mono);
    color: var(--clr-accent);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.case-headline {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.case-transformation {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    color: var(--clr-text-main);
    opacity: 0.8;
    line-height: 1.6;
}

.case-details {
    margin-top: 2rem;
    gap: 2rem;
    border-top: 1px solid var(--clr-node-border);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.detail-block h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

.detail-block p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .case-study { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        padding-bottom: 3rem;
    }
}

/* ==========================================================================
   10. SERVICES & PROCESS
   ========================================================================== */
.services-header h2 { margin: 0; }
.services-desc { max-width: 400px; font-size: 1.125rem; }

.service-item h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.8rem;
}

.pricing-line p { margin: 0; font-size: 1rem; }
.pricing-line .price {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-left: 1rem;
}

.process-step {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}
.process-step > *, .pricing-card > *, .case-content > *, .work-meta > * {
    margin: 0 !important;
}
.step-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer { position: relative; overflow: hidden; }
.cta-headline { font-size: clamp(2rem, 3.5vw, 3rem); max-width: 800px; line-height: 1.2; letter-spacing: -0.02em; }

.footer-brand .brand-logo { font-size: 1.5rem; font-weight: 500; }
.footer-bottom, .footer-links { flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.tagline { font-family: var(--font-serif); font-style: italic; }

/* ==========================================================================
   12. ANIMATIONS & CURSOR
   ========================================================================== */
/* Scroll Reveal Classes */
.reveal-up {
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-up.is-pending {
    opacity: 0;
    transform: translateY(24px);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

.slide-up { transform: translateY(30px); }
.fade-down { transform: translateY(-20px); }

/* Custom Cursor */
@media (pointer: fine) {

    
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--clr-accent);
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
        mix-blend-mode: difference;
    }
    
    .cursor-hover {
        width: 60px;
        height: 60px;
        background-color: var(--clr-text-main);
    }
    
    /* Ensure interactive elements revert cursor */

}

/* ==========================================================================
   13. PRICING TIERS & TOOLS
   ========================================================================== */
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pricing-card { 
    border: var(--border-subtle); 
    border-radius: 16px; 
    padding: 2.5rem;
}

.pricing-card.highlight-card {
    background-color: #111;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Tool Logos Styling */
.tools-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--transition-medium);
}

.tool-item:hover {
    transform: translateY(-5px);
}

.tool-logo {
    width: auto;
    height: 48px; /* Increased height for better visibility */
    max-width: 60px;
    object-fit: contain;
    transition: transform var(--transition-medium);
    display: block;
}

.tool-item:hover .tool-logo {
    transform: scale(1.1);
}

.tool-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
}

.logo-white {
    filter: brightness(0) invert(1);
}

/* How I Work */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.process-card {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: var(--border-subtle);
    border-radius: 12px;
    background: var(--clr-bg-base);
}

.process-card .process-label {
    margin-bottom: 0.5rem;
    color: var(--clr-accent);
    font-size: 0.875rem;
    font-weight: 600;
}

.process-card h3 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
}

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

.card-meta h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.price-range {
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.small-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-accent);
    margin-bottom: 0.75rem;
}

.card-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.card-section:last-of-type {
    border-bottom: none;
}

.outcome-box {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


.letter-spacing {
    letter-spacing: 0.1em;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}
.card-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background-color: var(--clr-accent);
    color: var(--clr-bg-base);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-weight: 600;
}

/* Standalone Services */
.standalone-services {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: max(60px, 5vw);
}

.standalone-title {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.standalone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.standalone-service-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: background var(--transition-medium);
}

.standalone-service-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.standalone-service-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}


.price-big {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--clr-text-main);
}
.price-big .small {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}
.pricing-features {
    padding-left: 0;
}
.pricing-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}
.pricing-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-size: 1rem;
}
.mb-xl { margin-bottom: 4rem; }
.mb-l { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.flex-col { display: flex; flex-direction: column; height: 100%; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; text-align: center; justify-content: center; }
.pb-m { padding-bottom: 2rem; }
.relative { position: relative; }
.gap-xs { gap: 0.5rem; }

@media (max-width: 1024px) {
    .grid-3-col { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 768px) {
    .grid-3-col { grid-template-columns: 1fr; gap: 3rem; }
}

/* ==========================================================================
   14. BRAND LOGO
   ========================================================================== */
.brand-logo-img {
    height: 120px; /* Massively increased to combat transparent padding */
    max-width: 450px;
    width: auto;
    display: block;
    object-fit: contain;
    margin: -30px 0; /* Prevents the massive height from exploding the navbar size */
}
.footer-logo {
    height: 180px; /* Super increased */
    max-width: 600px;
    margin-bottom: 1rem;
}

/* ==========================================================================
   15. DESIGNER PLACEHOLDER
   ========================================================================== */
.designer-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-text-left {
    justify-content: center;
    gap: 2.5rem;
}
.about-text-left > * {
    margin: 0 !important;
}
.about-image-space {
    width: 100%;
    display: block;
}
.about-image-space img, .designer-img-placeholder img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 0;
}

/* ==========================================================================
   16. SLIDERS & BLOCKS
   ========================================================================== */
.block { display: block; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.cases-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.cases-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}
.case-slide {
    min-width: 100%;
    flex: 0 0 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}
.slider-controls { display: flex; gap: 1rem; }
.btn-icon {
    background: transparent;
    border: 1px solid var(--clr-text-muted);
    color: var(--clr-text-main);
    font-size: 1.25rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.btn-icon:hover {
    background: var(--clr-text-main);
    color: var(--clr-bg-base);
    border-color: var(--clr-text-main);
}
.px-container { padding-left: var(--container-padding); padding-right: var(--container-padding); }
.container-slider { padding-left: 0; padding-right: 0; max-width: 100%; overflow: hidden; }

/* ==========================================================================
   14. CONTENT OVERHAUL REFINEMENTS
   ========================================================================== */
.hero-micro {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.8;
}

.philosophy-section .phil-headline {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.1;
    color: var(--clr-text-main);
}

.phil-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.3;
    border-left: 1px solid var(--clr-accent);
    padding-left: 2rem;
    margin: 0 !important;
}

.phil-support {
    font-size: 1.1rem;
    line-height: 1.6;
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem !important;
}

.step-icon {
    font-size: 1.8rem;
    color: var(--clr-accent);
    opacity: 0.4;
}

.process-note {
    border-top: var(--border-subtle);
    padding-top: 3rem;
    text-align: center;
}

.outcome-text {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem !important;
    margin-top: 1.5rem !important;
    line-height: 1.5;
    font-family: var(--font-serif);
    font-style: italic;
}

.cta-subtext {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    margin-top: 1rem !important;
}

@media (max-width: 900px) {
    .phil-core { grid-template-columns: 1fr; gap: 4rem; }
}

.about-portrait {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* ==========================================================================
   15. TOOLS SECTION
   ========================================================================== */
.tools-grid {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5rem);
    flex-wrap: wrap;
    padding: 3rem 0;
}

.tool-item {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--clr-text-main);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    opacity: 0.7; /* Increased from 0.4 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 80px;
}

.tool-item:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1.1);
}

/* Tool specific colors on hover */
.tool-item[title="Adobe Creative Suite"]:hover { color: #FF0000; filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3)); }
.tool-item[title="Figma"]:hover { color: #F24E1E; filter: drop-shadow(0 0 10px rgba(242, 78, 30, 0.3)); }
.tool-item[title="Envato"]:hover { color: #82B541; filter: drop-shadow(0 0 10px rgba(130, 181, 65, 0.3)); }
.tool-item[title="GitHub"]:hover { color: #fff; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
.tool-item[title="Canva"]:hover { color: #00C4CC; filter: drop-shadow(0 0 10px rgba(0, 196, 204, 0.3)); }

@media (max-width: 768px) {
    .tools-grid { gap: 3rem; }
    .tool-item { font-size: 2.5rem; }
}

/* ==========================================================================
   16. THEME TOGGLE & LIGHT MODE OVERRIDES
   ========================================================================== */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

.theme-toggle-btn svg {
    display: block;
    transition: transform var(--transition-medium);
}

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

[data-theme="light"] .sun-icon {
    display: none;
}

:root:not([data-theme="light"]) .moon-icon {
    display: none;
}

/* Light theme overrides for specific elements */
[data-theme="light"] .brand-logo-img,
[data-theme="light"] .footer-logo {
    filter: invert(1);
}

[data-theme="light"] .text-light {
    color: var(--clr-text-main) !important;
}

[data-theme="light"] .custom-cursor {
    background-color: var(--clr-text-main);
}

[data-theme="light"] .nav-links {
    background: var(--clr-nav-links-bg);
    border: 1px solid var(--clr-nav-links-border);
}

[data-theme="light"] .navbar {
    background-color: var(--clr-nav-bg);
    border-bottom: var(--border-subtle);
}

[data-theme="light"] .filter-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .filter-btn.active {
    background: var(--clr-accent);
    color: var(--clr-bg-base);
    border-color: var(--clr-accent);
}

[data-theme="light"] .video-container {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Portfolio content */
[id] {
    scroll-margin-top: 6rem;
}

button {
    font-family: inherit;
}

.hero-micro {
    color: var(--clr-text-main);
    opacity: 1;
}

.selected-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.selected-work-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: var(--border-subtle);
    border-radius: 16px;
    background-color: var(--clr-bg-light);
}

.selected-work-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.selected-work-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.selected-work-copy .project-meta,
.selected-work-copy .project-role {
    font-size: 0.9375rem;
}

.project-link {
    margin-top: auto;
}

.independent-research {
    grid-column: 1 / -1;
}

.independent-research .selected-work-copy > p {
    max-width: 72ch;
}

@media (max-width: 1000px) {
    .selected-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-up {
        transition: none;
        animation: none;
    }
}
