/* Fonts Import - Variable Axes (Width included) */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Work+Sans:ital,wght@0,400;0,500;1,400&display=swap');


/* Standard Resets and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
a,
grain-lagrain-la button,
.cursor-pointer,
.project-item,
.nav-link {
    cursor: none !important;
}

/* Restricted Body Link Transitions (About & Project Details Only) */
#about-section p a,
#about-section u a,
#project-main-content p a,
#project-main-content u a,
#project-main-content li a,
#project-main-content a.underline {
    transition: color 0.3s ease;
}

#about-section p a:hover,
#about-section u a:hover,
#project-main-content p a:hover,
#project-main-content u a:hover,
#project-main-content li a:hover,
#project-main-content a.underline:hover,
#about-section a.group:hover i,
#about-section a.group:hover span,
.grid-cols-1.md\:grid-cols-3 a:hover i,
.grid-cols-1.md\:grid-cols-3 a:hover span {
    color: #FF9646 !important;
    border-color: #FF9646 !important;
}

/* Ensure Font Awesome icons within any interactive links also transition */
a i.fa-brands,
a i.fa-solid,
a i.fa-regular,
button i.fa-brands,
button i.fa-solid,
button i.fa-regular {
    transition: color 0.3s ease;
}

a:hover i.fa-brands,
a:hover i.fa-solid,
a:hover i.fa-regular,
button:hover i.fa-brands,
button:hover i.fa-solid,
button:hover i.fa-regular {
    color: #FF9646 !important;
}

/* Override global orange hover for the resume PDF icon to keep it white */
#about-section a:hover i.fa-file-pdf {
    color: white !important;
}

/* Default cursor mode (when custom cursor is disabled) */
body.default-cursor,
body.default-cursor *,
body.default-cursor a,
body.default-cursor button,
body.default-cursor .cursor-pointer,
body.default-cursor .project-item,
body.default-cursor .nav-link {
    cursor: auto !important;
}

body.default-cursor #custom-cursor {
    display: none !important;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    mix-blend-mode: difference;
    transition: mix-blend-mode 0.3s ease;
    z-index: 99999;
    pointer-events: none;
    display: block;
}

@media (max-width: 768px) {
    #custom-cursor {
        display: none !important;
    }
}

#custom-cursor.hovering {
    mix-blend-mode: normal;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

#cursor-inner,
#cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

#cursor-inner {
    width: 20px;
    height: 20px;
    background-color: white;
    z-index: 2;
}

#cursor-ring {
    width: 26px;
    height: 26px;
    border: 1px solid #FF4D00;
    z-index: 1;
    opacity: 0;
}

#custom-cursor.hovering #cursor-inner {
    background-color: #FF4D00;
}

:root {
    --bg-color: #F1F1F1;
    --text-color: #000000;
    --landing-bg: #F1F1F1;
    --accent-orange: #FF9646;
    --accent-pink: #FF46A0;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html,
body {
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-color) !important;
}


body {
    background-color: transparent !important;
    color: var(--text-color);
    font-family: 'Work Sans', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    /* Body Copy Default - Baseline 1920px (1080p) */
    font-weight: 400;
    font-size: clamp(18px, 1.15vw, 24px);
    line-height: 1.5;
    letter-spacing: -0.01em;
    isolation: auto !important;

}


/* ---------------- TYPOGRAPHY SYSTEM ---------------- */

h1,
h2,
h3,
.sec-header {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    /* Baseline 48px at 1920px, scaling up significantly for 2K/4K */
    font-size: clamp(32px, 2.8vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
}

/* Page Hero Titles */
.hero-title {
    font-size: clamp(48px, 6vw, 140px);
}

h4,
.subsec-header {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(20px, 1.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #BBBBBB;
    text-transform: uppercase;
    margin: 0;
}

p,
.body-copy {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 1.15vw, 24px);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.metadata,
.caption,
.role-label,
.timeline-label,
.tag-label {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    /* Increased baseline for 1080p/2K readability */
    font-size: clamp(14px, 0.85vw, 20px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Metadata values used in details */
.metadata-value {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(16px, 1vw, 22px);
}

.tag-label-small {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(10px, 0.8vw, 14px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* Utilities */
.font-archivo {
    font-family: 'Archivo', sans-serif;
}

.font-space {
    font-family: 'Space Mono', monospace;
}

.font-work {
    font-family: 'Work Sans', sans-serif;
}


.grain-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.grain-layer .grain-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------------- LOADER ---------------- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    background-color: var(--bg-color);
    overflow: hidden;
}

.loader-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.loader-text {
    position: absolute;
    text-transform: uppercase;
    line-height: 0.85;
    color: #000000;
    filter: drop-shadow(4px 4px 0px #FFFFFF);
    display: flex;
    flex-direction: column;
    width: max-content;
    max-width: min-content;
}

.loader-text h1,
.loader-text h2 {
    font-family: 'Archivo', sans-serif !important;
    font-variation-settings: "wdth" 125, "wght" 700, "ital" 1;
    font-weight: 700;
    font-style: italic;
}

.top-left-block {
    top: clamp(20px, 4vw, 50px);
    left: clamp(20px, 4vw, 50px);
}

.top-left-block h1 {
    font-size: clamp(48px, 8vw, 135px);
    text-align: left;
}

.bottom-right-block {
    bottom: clamp(20px, 4vw, 50px);
    right: clamp(20px, 4vw, 50px);
    align-items: flex-end;
}

.bottom-right-block h2 {
    font-size: clamp(36px, 6vw, 100px);
    text-align: right;
}

#loader-container {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

#triangle-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#line-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#line-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

#progress-path,
#triangle-path {
    vector-effect: non-scaling-stroke;
}

#progress-path {
    stroke-width: 1.5px;
    opacity: 0.5;
}

#triangle-path {
    transform-origin: 50% 50%;
}

/* ---------------- LANDING PAGE STYLES ---------------- */

.logo-interactive {
    font-family: 'Archivo', sans-serif;
    font-variation-settings: 'wdth' 100, 'wght' 400;
    font-weight: 400;
    font-style: italic;
    display: inline-block;
    transition: font-variation-settings 0.5s ease;
}

.logo-interactive:hover {
    font-variation-settings: 'wdth' 125, 'wght' 400;
}

.logo-icon {
    height: clamp(24px, 1.875vw, 40px);
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
}

@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.nav-glow-layer {
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #FF9646, #FF46A0, #FF9646);
    background-size: 200% 100%;
    filter: blur(8px);
    animation: border-flow 4s linear infinite;
    z-index: -1;
    border-radius: inherit;
}

/* Navigation */
.nav-desktop-bg {
    background-color: rgba(255, 255, 255, .95);
    border-color: #000000;
    border-width: 1px;
    border-style: solid;
    z-index: 2000 !important;
}

#smooth-wrapper {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* ---------------- NAVIGATION ---------------- */
.nav-link.active span {
    color: #000000;
    transition: color 0.3s ease;
}

/* Disabled nav link (e.g. Experiments) – no-entry cursor, no hover color change */
.nav-link--disabled {
    cursor: not-allowed !important;
    pointer-events: auto;
}

.nav-link--disabled span {
    color: rgb(156 163 175);
}

.nav-link--disabled:hover span {
    color: #000000;
    transition: color 0.3s ease;
}

/* ---------------- MARQUEE ---------------- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container,
.your-grid-class,
.your-dots-class {
    /* Standard (Firefox) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);

    /* Chrome/Safari/Edge (REQUIRED) */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 100s linear infinite;
}

.marquee-content img {
    /* 200x100 at 1080p, scaling slightly */
    width: clamp(140px, 10.4vw, 200px);
    height: auto;
    aspect-ratio: 2/1;
    object-fit: contain;
    flex-shrink: 0;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* ---------------- PROJECT DETAILS ---------------- */
.impact-box {
    background-color: rgba(0, 0, 0, 0.02);
}

.bracket-tl,
.bracket-tr,
.bracket-bl,
.bracket-br {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #000;
}

.bracket-tl {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
}

.bracket-tr {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
}

.bracket-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.bracket-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.sidebar-link.active {
    opacity: 1;
    color: #000;
    font-weight: 700;
}

#password-overlay {
    background-color: #111111 !important;
    z-index: 9000;
    isolation: isolate;
    pointer-events: auto;
}

.full-width-breakout {
    width: 100%;
    position: relative;
}

#gated-content.unlocked {
    filter: blur(0px) grayscale(0);
    opacity: 1;
    pointer-events: auto;
}

header .nav-link:not(.active):hover span,
header .nav-link:not(.active):hover {
    color: #000000 !important;
    opacity: 1 !important;
}

/* --- ABOUT PAGE LAYOUT & FOOTER --- */
#about-section {
    padding-top: 80px;
}

@media (min-width: 768px) {
    #about-section {
        /* Pushes content down so it starts AFTER the sticky header transition */
        padding-top: 25vh;
    }
}

#about-section {
    /* Ensures the section has boundaries */
    position: relative;
    width: 100%;

    /* Prevents horizontal scroll/overlap */
    overflow-x: hidden;
}

/* Force a hard stop at the bottom of the page */
footer {
    margin-bottom: 0 !important;
    padding-bottom: 40px;
    /* Space for aesthetic, but limits scroll */
}

/* Ensure ScrollSmoother doesn't calculate extra height */
.lenis.lenis-stopped {
    height: 100vh;
    overflow: hidden;
}

/* ---------------- STICKY HEADER ---------------- */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}

@media (min-width: 768px) {
    header {
        padding-top: clamp(1rem, 2vh, 2rem);
    }
}

header>* {
    pointer-events: auto;
}

.logo-container {
    z-index: 1100;
}

.nav-island-sticky {
    box-shadow: 0 10px 40px -10px rgba(255, 77, 0, 0.35) !important;
    border-bottom: 1px solid rgba(255, 77, 0, 0.15) !important;
    background-color: rgba(241, 241, 241, 0.98) !important;
}

#nav-island {
    min-width: clamp(350px, 39vw, 800px);
}

#project-main-content img,
#gated-content img {
    cursor: zoom-in;
}

#lightbox-caption {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Mobile Loader Progress Position Adjustment */
@media (max-width: 768px) {
    #load-percentage {
        bottom: auto !important;
        /* Matches SVG 'meet' scaling: scales to the smaller dimension (min(vw, vh)) */
        /* Formula: Center offset (50vh - 50% of min) + Tip Y (44.1% of min) */
        top: calc(50vh - 5.9 * min(1vw, 1vh)) !important;
        transform: translate(-50%, -150%) !important;
        /* Positioned slightly above the triangle tip */
        font-size: 10px !important;
        letter-spacing: 0.15em !important;
        z-index: 100;
        /* Ensure it's above the SVG layer */
    }
}