/* ===================================
   LOCKED PRODUCTION VERSION
   Figma match · Hero name left · About me mobile full · No redundant rules
   =================================== */

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

:root {
    --color-bg-light: #ffffff;
    --color-bg-dark: #000000;
    --color-card-bg: #141414;
    --color-text-light: #000000;
    --color-text-dark: #ffffff;
    --color-text-muted: #777777;
    --color-muted-alt: #666666;
    --color-border: #e5e5e5;
    
    --font-primary: 'Inter', -apple-system, system-ui, sans-serif;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Single scroll: body as scroll container so Chrome scroll works (html not scroll container) */
html {
    overflow-x: hidden;
    overflow-y: visible;
    height: 100%;
    background: #FFFFFF;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-primary);
    background: #FFFFFF;
    color: var(--color-text-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    height: auto;
    max-width: 100vw;
    padding-top: 104px; /* below fixed header */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Ensure all sections scale properly; no inner scroll */
section {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Site-wide content width: align header, hero, experience, reel, projects, footer */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

/* Large screens - keep 1500px for consistent alignment site-wide */
@media (min-width: 1920px) {
    .container {
        max-width: 1500px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 1500px;
    }
}

@media (min-width: 3440px) {
    .container {
        max-width: 1500px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}

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

/* ===================================
   SCROLL SECTIONS (static - no animations)
   =================================== */

[data-scroll-section] {
    position: relative;
}

.experience,
.reel-section,
.selected-work,
.footer {
    position: relative;
    z-index: 10;
}

/* ===================================
   SITE HEADER (Figma: 25px 48px, 92px height, white)
   =================================== */

.site-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    width: 100%;
    min-height: 104px;
    background: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0;
}

.header-entries {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 50px;
}

/* Figma: each column = stacked links (About me + Experience | Reel + Projects) */
.header-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.header-entries .nav-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-entries .nav-link:hover {
    opacity: 0.6;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-meta .location {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
}

.location-link {
    text-decoration: none;
}

.header-meta .time {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-align: right;
    color: #666666;
}

.time {
    font-variant-numeric: tabular-nums;
}

/* ===================================
   HERO (fixed; intro+tags top, name bottom – stays visible with footer)
   =================================== */

/* Spacer reserves remaining viewport height so content below can scroll up over the fixed hero (height set by JS to fill viewport minus hero content height) */
.scroll-spacer {
    position: relative;
    z-index: 1;
    height: calc(100vh - 104px); /* fallback; JS sets explicitly */
    min-height: calc(100vh - 104px); /* Chrome: ensure scrollable area even before/without JS */
    width: 100%;
    pointer-events: none;
    background: #FFFFFF;
    flex-shrink: 0;
}

/* Hero fixed so experience/reel/projects scroll above it; above spacer so hero content is visible at top */
/* pointer-events: none so Chrome gets wheel/scroll on content below; .hero .container restores clicks on name/tags */
.hero {
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    height: auto;
    min-height: 0;
    padding: 100px 48px 100px;
    background: #FFFFFF;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    overflow: visible;
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    padding: 0 0;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    overflow: visible;
    pointer-events: auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    max-width: 1205px;
    width: 100%;
    transition: margin-top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-tags {
    margin-bottom: 48px;
}

/* About me: popup overlay – white bg, photo + text; X fixed top-right; one layout, no internal scroll */
/* Horizontal padding comes from .hero (desktop) / .hero .container (mobile) – no double padding */
.hero-about {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 104px 0 48px;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hero.hero-about-open .hero-about {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Same width as header/hero content (1500px max, centered); relative for X position */
.hero-about-inner {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.hero-about-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 83px;
    width: 100%;
}

.hero-about-photo {
    width: 512px;
    height: 655px;
    flex-shrink: 0;
    border-radius: 50px;
    overflow: hidden;
    background: #f0f0f0;
    user-select: none;
    -webkit-user-select: none;
}

.hero-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-about-right {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 806px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* X part of about section: top-right of content, moves with photo/text on scroll (circle shape only on mobile) */
.hero-about-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.hero-about-close svg {
    stroke: #000000;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* X fixed to viewport so it’s always visible (no scroll-away); same layout at all times */
.hero-about-close:hover {
    opacity: 0.6;
}

.hero-about-text {
    width: 100%;
    max-width: 806px;
    padding-top: 0;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.02em;
    color: #000000;
    text-align: left;
}

.hero-about-text p {
    margin: 0 0 1em 0;
}

.hero-about-text p:last-child {
    margin-bottom: 0;
}

/* Name row: left-aligned at all screen sizes */
.hero-name-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    max-width: 1205px;
}

.hero-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 128px;
    line-height: 152px;
    letter-spacing: -0.02em;
    text-align: left;
    color: #000000;
    margin: 0;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
}

.hero-photo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #333;
    border-radius: 12px;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}

.hero-photo.show {
    opacity: 1;
}

/* Intro: 806px, left-aligned, 24px / 28px, weight 600 */
.hero-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    max-width: 806px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0;
    text-align: left;
}

/* Tags: desktop = two categories (tools row, skills row); mobile = one mixed line via override */
.hero-tags {
    width: 100%;
}

.tags-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.tags-grid > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.tags-grid .tag,
.tags-grid .tag-black {
    flex-shrink: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    background: transparent;
    border: 1px solid #000000;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 18px;
    line-height: 118.44%;
    color: #000000;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
    cursor: pointer;
}

.tag:hover {
    transform: scale(1.04);
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.tag-black {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #FFFFFF !important;
    font-weight: 600;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tag-black:hover {
    transform: scale(1.04);
    background: #333333 !important;
    border-color: #333333 !important;
    color: #FFFFFF !important;
}


/* ===================================
   EXPERIENCE (Figma: padding 25 0 50, border-bottom 0.5px, company–details gap 106/110px,
   description gap 15px border-radius 35px, dates gap 10px line 130px; row gap auto for dates right-align)
   =================================== */

.experience {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 48px 100px;
    gap: 50px;
    background: #000000;
    color: #FFFFFF;
    position: relative;
    z-index: 10;
    border-bottom: none;
}

.experience .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
}

.experience-title-main {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #777777;
    margin: 0;
    text-transform: capitalize;
}

.experience-rows {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    border-bottom: none;
}

.experience-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 0.5px solid #FFFFFF;
    width: 100%;
    transition: padding 0.5s var(--ease);
}

.experience-row:not(:first-child) {
    align-items: center;
    padding: 28px 0;
}

.experience-row.expanded {
    padding-top: 28px;
    padding-bottom: 56px;
}

.experience-row:last-child {
    border-bottom: none !important;
}

.experience-row:last-child:not(.expanded) {
    padding-bottom: 0;
}

.experience-row.expanded:last-child {
    padding-bottom: 56px;
}

.experience-row:not(:first-child):last-child:not(.expanded) {
    padding-bottom: 0;
}

.experience-row-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 105px;
    flex: 1;
    min-width: 0;
}

.experience-company {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 118.44%;
    color: #FFFFFF;
    flex-shrink: 0;
    white-space: nowrap;
}

.experience-job-block {
    display: grid;
    grid-template-rows: auto 0fr;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
    border-radius: 35px;
}

.experience-row.expanded .experience-job-block {
    grid-template-rows: auto 1fr;
}

.experience-job-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 118.44%;
    color: #FFFFFF;
}

.experience-description {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.32;
    color: #777777;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.experience-row.expanded .experience-description {
    opacity: 1;
}

.experience-dates {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.experience-date-start,
.experience-date-end {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 118.44%;
    text-align: right;
    color: #777777;
}

.experience-date-line {
    width: 130px;
    height: 0;
    border-top: 1px solid #777777;
    flex-shrink: 0;
}

/* ===================================
   REEL SECTION (Figma: 25px 48px 100px, title + video placeholder)
   =================================== */

.reel-section {
    padding: 25px 48px 100px;
    background: #000000;
    position: relative;
    z-index: 10;
}

.reel-section .container {
    padding: 0 0;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.reel-section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #777777;
    margin-bottom: 50px;
}

.reel-video-wrap {
    display: block;
    width: 100%;
    max-width: 1500px;
    height: 850px;
    margin: 0 auto;
    background: #000000;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.reel-video-wrap:hover,
.reel-video-wrap:hover .reel-inline-video {
    opacity: 1;
}

.reel-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.reel-placeholder .reel-play-circle {
    pointer-events: auto;
}

.reel-inline-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-video-wrap.is-playing .reel-placeholder {
    display: none;
}

.reel-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.reel-close-btn:hover {
    opacity: 0.8;
}

.reel-video-wrap.is-playing .reel-close-btn {
    display: flex;
}

.reel-play-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
.reel-play-icon {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    color: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reel-play-icon svg {
    width: 100%;
    height: 100%;
}

/* ===================================
   SECTION TITLE (projects)
   =================================== */

.section-title-row {
    display: flex;
    align-items: baseline;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #777777;
    margin: 0 0 50px 0;
}

/* ===================================
   SELECTED WORK / PROJECTS (Figma: padding 25 48 100, gap 50, 2-col grid 15px/50px)
   =================================== */

.selected-work {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 48px 100px;
    gap: 50px;
    background: #000000;
    position: relative;
    z-index: 10;
    border-top: none;
}

.selected-work .container {
    padding: 0 0;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
}

.selected-work .section-title {
    color: #777777;
    margin: 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 15px;
    width: 100%;
    max-width: 1500px;
}

.work-card {
    position: relative;
    cursor: pointer;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.work-card .work-visual {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.work-card:hover .work-visual {
    transform: scale(0.99);
}

.work-visual {
    width: 100%;
    height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141414;
    overflow: hidden;
    border-radius: 20px;
}

.work-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    transition: background 0.4s ease;
    pointer-events: none;
}

.work-card:hover .work-visual::before {
    background: rgba(0, 0, 0, 0.7);
}

.project-info {
    position: static;
    text-align: left;
    padding: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 2;
    cursor: default;
}

.project-info.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.project-text-mask {
    overflow: hidden;
    line-height: 1.4;
}

.project-company {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #777777;
    margin: 0 0 4px 0;
}

.project-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    line-height: 118.44%;
    color: #FFFFFF;
    margin: 0;
}

.work-color-1 {
    background: #141414;
}

.work-color-2 {
    background: #141414;
}

.work-color-3 {
    background: #141414;
}

.work-color-4 {
    background: #141414;
}

.work-color-5 {
    background: #141414;
}

.work-color-6 {
    background: #141414;
}

.work-meta {
    background: transparent;
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.work-name {
    font-size: 20px;
    font-weight: 400;
    line-height: 35px;
    letter-spacing: -0.02em;
    color: #757575;
    margin: 0;
}

.work-category {
    font-size: 20px;
    font-weight: 400;
    line-height: 35px;
    letter-spacing: -0.02em;
    text-align: right;
    color: #141414;
    margin: 0;
}

/* ===================================
   FOOTER / CONTACT (Minimal black version)
   =================================== */

/* ===================================
   FOOTER (Figma: 25px 48px, logo 47.2px + entries gap 19px, social right, 16px 700 #000)
   =================================== */

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    background: #FFFFFF;
    color: #000000;
    position: relative;
    z-index: 10;
}

.footer .container {
    padding: 0 0;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 19px;
    flex-shrink: 0;
}

.footer-logo-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.footer-logo-circle {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.footer-entries {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-entries .footer-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
    text-decoration: none;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.footer-right .footer-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-align: right;
    color: #000000;
    text-decoration: none;
}

.footer-link:hover {
    opacity: 0.6;
}

/* ===================================
   CUSTOM CURSOR
   =================================== */

* {
    cursor: none !important;
}

/* Above project modal (10000/10001) so cursor stays visible in Safari/Chrome when modal is open */
.cursor-dot {
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

.cursor-text {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #000000;
    text-transform: lowercase;
    white-space: nowrap;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
}

.cursor-arrow {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #000000;
    flex-shrink: 0;
}

.cursor-dot.cursor-hover {
    width: 8px;
    height: 8px;
}

.cursor-dot.cursor-project {
    width: auto;
    height: 32px;
    border-radius: 16px;
    padding: 0 20px 0 16px;
    gap: 8px;
}

.cursor-dot.cursor-project .cursor-text,
.cursor-dot.cursor-project .cursor-arrow {
    opacity: 1;
    display: flex;
}

.cursor-dot.cursor-arrow-only .cursor-text {
    display: none;
}

.cursor-dot.cursor-arrow-only .cursor-arrow {
    opacity: 1;
    display: flex;
}

.cursor-dot.cursor-arrow-only {
    width: 40px;
    height: 28px;
    border-radius: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-dot.cursor-password {
    width: auto;
    height: 32px;
    border-radius: 16px;
    padding: 0 20px 0 16px;
    gap: 8px;
    flex-direction: row;
}

.cursor-password-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cursor-password-label {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-primary);
    text-transform: lowercase;
    white-space: nowrap;
    display: block;
}

.cursor-password-field {
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-primary);
    width: 80px;
    padding: 0;
    text-align: center;
    pointer-events: all;
    cursor: text;
    letter-spacing: 2px;
}

.cursor-password-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cursor-dot.cursor-password .cursor-arrow {
    display: none !important;
}

.cursor-dot.cursor-password .cursor-text {
    display: none !important;
}

.cursor-dot.clicked {
    animation: cursorClick 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes cursorClick {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.94);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===================================
   PROJECT MODAL
   =================================== */

/* ===================================
   ABOUT ME MODAL
   =================================== */

/* ===================================
   PROJECT MODAL (Full-screen)
   =================================== */

/* Lock: when modal is open, body scroll is locked (script sets overflow/position); only modal scrolls */
body.project-modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: default;
    padding: 100px 0 50px;
    box-sizing: border-box;
    overflow: hidden;
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.project-modal-wrapper {
    width: 100%;
    max-width: 1500px;
    max-height: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
    cursor: default;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}
/* X inside white card: sticky wrapper so it stays top-right when content scrolls */
.project-modal-close-sticky {
    position: sticky;
    top: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 10;
    flex-shrink: 0;
}
.project-modal-close-sticky .project-modal-close {
    pointer-events: auto;
}

.project-modal-wrapper::-webkit-scrollbar {
    width: 6px;
}

.project-modal-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
}

.project-modal-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.project-modal-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Close button: inside white card, top-right; absolute so sticky pins it */
.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.project-modal-close svg {
    stroke: #000000;
}

.project-modal-close:hover {
    opacity: 0.85;
}

@media (hover: none) and (pointer: coarse) {
    .project-modal-close {
        min-width: 54px;
        min-height: 54px;
        width: 54px;
        height: 54px;
        padding: 15px;
        top: 12px;
        right: 12px;
        touch-action: none;
    }
}

/* Single source of horizontal padding: 25px on content only (no double padding) */
.project-modal-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 34px 25px 100px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* 8px between header and body (title to year/role) */
    text-align: left;
}

.project-modal-header {
    margin-bottom: 0;
    padding: 0 25px 0 25px;
    text-align: left;
}

/* Company and role (subtitle / title): 10px between them */
.project-modal-subtitle {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #555555;
    margin: 0 0 10px 0;
    text-align: left;
}

.project-modal-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    line-height: 118.44%;
    color: #000000;
    margin: 0 0 0 0;
    text-align: left;
}

.project-modal-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 0;
    padding-right: 0;
}

/* No extra top space so title–year/role gap stays 8px */
#projectModalBody > *:first-child { margin-top: 0; }
#projectModalBody .motion-system-content { margin-top: 0; }
.project-modal-body .project-body-text { margin-top: 0; }

/* No white text on white card; all text align left; touch-action so scroll works on text and images */
#projectModalBody,
#projectModalBody .motion-system-content {
    color: #000000;
    text-align: left;
}
#projectModalBody {
    touch-action: pan-y;
}

/* Password Gate */
.project-password-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

.password-gate-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.password-gate-label {
    font-size: 14px;
    color: #777777;
    margin-bottom: 16px;
    text-transform: lowercase;
}

.password-gate-input {
    width: 100%;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000000;
    font-size: 16px;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.password-gate-input:focus {
    outline: none;
    border-color: #999;
}

.password-gate-error {
    font-size: 13px;
    color: #777777;
    line-height: 1.6;
    display: none;
}

.password-gate-error.show {
    display: block;
}

.password-gate-error a {
    color: #000000;
    text-decoration: underline;
}

/* Hero Image (wide, optional) */
.project-hero {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.project-hero img,
.project-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-body-text {
    max-width: 100%;
    margin: 60px auto;
    padding: 0 25px;
    text-align: left;
}

/* Description / year-role: grey semibold 16px – use .project-body-text .project-description if present */
.project-body-text p {
    font-size: 16px;
    line-height: 19px;
    font-weight: 600;
    color: #555555;
    margin: 0 0 1em 0;
    text-align: left;
}

.project-body-text p:last-child {
    margin-bottom: 0;
}

/* Context title: regular 16px gray */
.project-body-text h2,
.project-body-text .context-title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #555555;
    margin: 0 0 0.5em 0;
}

/* Headline (e.g. The problem): black bold 16px */
.project-body-text h3,
.project-body-text h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
    margin: 1em 0 0.5em 0;
}

.project-body-text h3:first-child,
.project-body-text h4:first-child {
    margin-top: 0;
}

/* Tags in project modal: visible on white – light grey fill, dark border, black text */
.project-body-text .tag,
.project-modal-body .tag,
#projectModalBody .tag {
    border: 1px solid #333333;
    color: #000000;
    background: #f0f0f0;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 50px;
}

/* Force Figma white-card typography; no white text on white background */
#projectModalBody .motion-section-title,
#projectModalBody .motion-step-title,
#projectModalBody .motion-subsection-title,
#projectModalBody .example-title {
    color: #000000 !important;
}
#projectModalBody .interactive-example .example-header,
#projectModalBody .expand-btn {
    color: #000000 !important;
}
#projectModalBody .expand-btn:hover {
    color: #555555 !important;
}
#projectModalBody .motion-section-content,
#projectModalBody .motion-step-content,
#projectModalBody .motion-intro,
#projectModalBody .motion-meta,
#projectModalBody .motion-section-label,
#projectModalBody .motion-step-number,
#projectModalBody .token-name {
    color: #555555 !important;
}
#projectModalBody .motion-section-content strong,
#projectModalBody .motion-step-content strong {
    color: #000000 !important;
}
#projectModalBody p,
#projectModalBody div,
#projectModalBody span {
    color: inherit;
}
#projectModalBody [style*="color: white"],
#projectModalBody [style*="color:#fff"],
#projectModalBody [style*="color: #fff"],
#projectModalBody [style*="color:#FFFFFF"],
#projectModalBody [style*="color: #FFFFFF"] {
    color: #000000 !important;
}

/* Shared project style for all customUrl projects (same as motion-system-content) */
#projectModalBody .tool-showcase,
#projectModalBody .case-wrapper {
    margin: 20px 0;
    padding: 24px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}
#projectModalBody .tool-showcase-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}
#projectModalBody .tool-showcase-desc {
    font-size: 14px;
    color: #555555;
    margin-bottom: 10px;
}
#projectModalBody .tool-placeholder,
#projectModalBody .brand-placeholder {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #555555;
}
#projectModalBody .lottie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}
#projectModalBody .lottie-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
}
#projectModalBody .case-number,
#projectModalBody .case-header {
    color: #555555;
    margin-bottom: 10px;
}
#projectModalBody .brand-placeholder-label {
    color: #555555;
}
#projectModalBody .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}
#projectModalBody .stat-label {
    font-size: 14px;
    color: #555555;
}
#projectModalBody .lottie-name {
    font-size: 13px;
    color: #555555;
    text-align: center;
}
#projectModalBody .brand-showcase {
    margin: 20px 0;
    padding: 24px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}
#projectModalBody .deliverable-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}
/* Spacing: description → Context 20px; body text and contexts 20px; after topic/images 20px */
#projectModalBody .motion-intro { margin-bottom: 20px; }
#projectModalBody .motion-meta { margin-bottom: 20px; }
#projectModalBody .motion-section { margin-bottom: 20px; }
#projectModalBody .motion-section-content { margin-bottom: 20px; }
#projectModalBody .motion-step { margin-bottom: 20px; }
#projectModalBody .motion-step-content { margin-bottom: 20px; }
#projectModalBody .principle-examples,
#projectModalBody .token-grid { margin-bottom: 20px; }
#projectModalBody .principle-examples img { border: none; }
#projectModalBody .motion-tldr-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
}
#projectModalBody .motion-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
#projectModalBody .motion-tags span,
#projectModalBody .motion-tag {
    padding: 6px 14px;
    background: #f0f0f0;
    border: 1px solid #333333;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}
#projectModalBody .case-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}
#projectModalBody .case-description {
    font-size: 16px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 10px;
}
#projectModalBody .case-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 10px;
}
#projectModalBody .preview-label {
    font-size: 14px;
    color: #555555;
    margin-bottom: 10px;
}
#projectModalBody .specs-toggle {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    margin: 10px 0;
}
#projectModalBody .specs-toggle:not([open]) .specs-toggle-content { display: none; }
#projectModalBody .specs-toggle-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}
#projectModalBody .specs-toggle-summary::-webkit-details-marker,
#projectModalBody .specs-toggle-summary::marker { display: none; }
#projectModalBody .specs-toggle-summary .specs-toggle-hint { color: #555555; }
#projectModalBody .specs-toggle-summary .specs-toggle-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: #555;
}
#projectModalBody .specs-toggle[open] .specs-toggle-icon { transform: rotate(180deg); }
#projectModalBody .specs-toggle-content {
    padding: 0 20px 20px;
    border-top: 1px solid #ddd;
}
#projectModalBody .specs-toggle-content .specs-table { margin-top: 20px; margin-bottom: 0; }
#projectModalBody .specs-toggle-content .insight { margin-top: 24px; }
#projectModalBody .specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
#projectModalBody .specs-table th,
#projectModalBody .specs-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #555555;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
#projectModalBody .specs-table th { color: #000000; font-weight: 700; }
#projectModalBody .specs-table tr:last-child td { border-bottom: none; }
#projectModalBody .specs-table td:first-child { width: 140px; font-weight: 600; }
#projectModalBody .insight {
    background: #f5f5f5;
    border-left: 3px solid #000;
    padding: 20px;
    margin: 10px 0;
    border-radius: 4px;
}
#projectModalBody .insight-label { color: #555555; }
#projectModalBody .insight-text { color: #555555; }
#projectModalBody .token,
#projectModalBody .value {
    background: #eee;
    color: #000;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 13px;
}

/* Project grid: responsive masonry (column-count), even spacing horizontal + vertical */
.project-grid {
    column-count: 5;
    column-gap: 12px;
    max-width: 1200px;
    margin: 24px auto 0;
    width: 100%;
}

.project-grid-item {
    break-inside: avoid;
    margin: 0 0 12px 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    line-height: 0;
    display: inline-block;
    width: 100%;
    border-radius: 10px;
}

.project-grid-item img,
.project-grid-item video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: bottom;
    border-radius: 10px;
}

.project-grid-item video {
    cursor: pointer;
}

@media (max-width: 900px) {
    .project-grid {
        column-count: 4;
    }
}

@media (max-width: 600px) {
    .project-grid {
        column-count: 2;
    }
}

/* Placeholder for empty items */
.project-grid-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
}

/* ===================================
   MUSIC PLAYER
   =================================== */

.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.music-player.active {
    transform: translateY(0);
}

/* Mobile: music player visible from bottom, safe area, prominent close */
@media (max-width: 768px) {
    .music-player {
        padding-bottom: env(safe-area-inset-bottom, 0);
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 12px;
    }
    .player-content {
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 12px;
    }
    .player-close {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        order: 10;
        margin-left: auto;
    }
    .player-controls {
        width: 100%;
        order: 2;
    }
    .player-info {
        order: 1;
    }
}

/* ===================================
   VIDEO PLAYER (Reel)
   =================================== */

.video-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: default;
}

.video-player.active {
    opacity: 1;
    pointer-events: all;
}

.video-player .player-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    color: #000000;
    cursor: pointer;
    z-index: 10001 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    pointer-events: all !important;
}

.video-player .player-close svg {
    stroke: #000000;
}

.video-player .player-close:hover {
    opacity: 0.85;
}

.video-player .video-player-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player .video-player-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
}

.player-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.player-icon {
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.player-title {
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.player-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.player-btn:hover {
    opacity: 1;
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #FFFFFF;
    width: 0%;
    transition: width 0.1s linear;
}

.player-time {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #757575;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

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

.volume-slider {
    width: 60px;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 1px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.player-close {
    flex-shrink: 0;
}

/* Cursor password input */

@media (min-width: 769px) {
    .hero-name {
        will-change: transform;
    }
}

/* ===================================
   RESPONSIVE / MOBILE STYLES
   =================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero .container {
        margin-left: 0;
    }
    
    .hero-links {
        left: 40px;
    }
    
    .nav {
        margin-left: 150px;
    }
}

@media (max-width: 768px) {
    /* ===================================
       MOBILE - Figma 478px spec
       =================================== */
    
    /* Base reset */
    * {
        will-change: auto !important;
    }
    
    body {
        cursor: auto !important;
        padding-top: 86px; /* match mobile header height */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden !important;
    }
    html {
        overflow-x: hidden !important;
    }
    
    .cursor-dot {
        display: none !important;
    }
    
    /* Touch-friendly: larger tap targets */
    a, button, .hero-link, .nav-link, .experience-item {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Container: 50px horizontal site-wide on mobile */
    .container {
        padding: 0 50px;
    }
    
    /* ===================================
       HEADER - 50px L/R, more padding top/bottom; 4px vertical (Amsterdam/time, About me/Experience, Reel/Projects)
       =================================== */
    .site-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 24px 50px;
        width: 100%;
        min-height: 86px;
        height: auto;
        box-sizing: border-box;
        background: #FFFFFF;
    }
    
    .site-header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    .header-entries {
        flex: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding: 0;
        margin-left: 0;
        margin-right: auto;
    }
    
    .header-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 8px;
        flex: none;
    }
    
    .header-entries .header-col:nth-child(2) .nav-link {
        display: inline-flex;
    }
    
    .header-entries .nav-link {
        font-family: var(--font-primary);
        font-size: 14px;
        line-height: 118.44%;
        font-weight: 700;
        color: #000000;
        min-height: auto !important;
    }
    
    .header-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
        gap: 8px;
        flex: none;
    }
    
    .header-meta .location,
    .location-link {
        font-family: var(--font-primary);
        font-size: 14px;
        line-height: 118.44%;
        font-weight: 700;
        color: #000000;
        min-height: auto !important;
    }
    
    .header-meta .time,
    .time {
        font-family: var(--font-primary);
        font-size: 14px;
        line-height: 118.44%;
        font-weight: 700;
        text-align: right;
        color: #777777;
    }
    
    /* ===================================
       HERO SECTION - 35px top/bottom, 47px horizontal
       =================================== */
    
    /* Hero fixed on mobile too: same scroll-over effect and soft position-down (JS sets .scroll-spacer height) */
    .hero {
        position: fixed !important;
        top: 86px;
        left: 0;
        right: 0;
        height: auto;
        min-height: auto;
        padding: 35px 0;
    }
    
    .hero .container {
        padding: 0 50px;
        padding-top: 0;
        padding-bottom: 0;
        margin-left: 0;
    }
    
    /* Hero content: gaps so name, intro and all tags fit in viewport */
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-top: 0;
    }
    
    .hero-name {
        font-size: 44px;
        line-height: 52px;
        text-align: left;
        margin-top: 0;
        transform: none !important;
        display: flex;
        align-items: flex-end;
    }
    
    .hero-tags {
        margin-bottom: 0;
    }
    
    .hero-photo {
        display: none;
    }
    
    /* About me mobile: in-flow, content-sized – full bio visible, no clipping (CSS + JS) */
    section.hero.hero-about-open {
        overflow-x: hidden;
        overflow-y: visible !important;
        max-height: none !important;
    }
    .hero.hero-about-open {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        overflow: visible !important;
        padding-top: 0;
        padding-bottom: 0;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important; /* avoid flex constraining height on mobile */
    }
    /* Collapse spacer so about section isn't pushed down; no reliance on JS timing */
    .hero.hero-about-open + .scroll-spacer {
        height: 0 !important;
        min-height: 0 !important;
    }
    .hero.hero-about-open .container {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
    }
    .hero.hero-about-open .hero-about {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 35px 0 56px !important;
        width: 100%;
        display: block !important; /* block flow so full bio never clipped */
    }
    .hero.hero-about-open .hero-content {
        display: none !important;
    }
    .hero-about-inner {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        min-height: 0 !important;
        transform: none !important; /* no parallax on mobile – full bio visible, no clip */
    }
    .hero-about-text {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .hero-about-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
    }
    .hero-about-photo {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 4/5;
        margin: 0 auto;
        overflow: hidden;
    }
    .hero-about-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
        user-drag: none;
    }
    .hero-about-right {
        width: 100%;
        max-width: 100%;
        align-items: flex-start;
    }
    
    /* Mobile only: white circle behind X for visibility */
    .hero-about-close {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        top: 12px;
        right: 16px;
        background: #ffffff !important;
        border-radius: 50%;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
        aspect-ratio: 1;
        flex-shrink: 0;
        flex-grow: 0;
    }
    .hero-about-close svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        flex-shrink: 0;
    }
    
    .hero-subtitle {
        font-size: 24px;
        line-height: 28px;
        font-weight: 600;
        margin-bottom: 0;
        transform: none !important;
    }
    
    /* Tags - mobile only: mixed software + skills in one line to save space */
    .tags-grid {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 6px;
        transform: none !important;
    }
    .tags-grid > div {
        display: contents;
    }
    
    .tag {
        padding: 5px 15px;
        font-size: 14px;
        line-height: 118.44%;
        font-weight: 600;
        white-space: nowrap;
    }
    .tag:hover {
        opacity: 1;
        transform: none;
    }
    
    /* ===================================
       EXPERIENCE - less top padding (content scrolls over hero), first expanded / rest on click
       =================================== */
    
    .experience {
        padding: 24px 0 100px;
        margin-top: 0 !important;
        position: relative !important;
        z-index: 10;
        background: #000000;
    }
    
    .experience .container {
        padding: 0 48px;
        gap: 50px;
    }
    
    .experience-title-main {
        font-size: 16px;
        line-height: 19px;
        font-weight: 700;
        color: #777777;
        margin-bottom: 0;
        margin-left: 0;
    }
    
    .experience-rows {
        gap: 15px;
    }
    
    .experience-row {
        flex-direction: column;
        align-items: stretch;
        cursor: pointer;
        padding: 0 0 25px;
        gap: 15px;
        cursor: pointer;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
    }
    
    .experience-row.expanded {
        padding-top: 0;
        padding-bottom: 25px;
    }
    
    .experience-row.expanded:last-child {
        padding-bottom: 25px;
    }
    
    .experience-row-left {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
    }
    
    .experience-company {
        width: auto;
        min-width: 0;
        max-width: none;
        font-size: 18px;
        line-height: 118.44%;
    }
    
    .experience-job-block {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        grid-template-rows: unset;
    }
    
    .experience-row.expanded .experience-job-block {
        grid-template-rows: unset;
    }
    
    .experience-job-title {
        font-size: 18px;
        line-height: 118.44%;
    }
    
    .experience-description {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.32;
        color: #777777;
        margin: 0;
        opacity: 1;
        min-height: unset;
        overflow: visible;
    }
    
    .experience-row:not(.expanded) .experience-description {
        display: none;
    }
    
    .experience-dates {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        margin-top: 0;
    }
    
    .experience-date-line {
        flex: 1;
        min-width: 10px;
        width: auto;
        max-width: none;
    }
    
    .experience-date-start {
        text-align: left;
    }
    
    .experience-date-end {
        text-align: right;
    }
    
    /* ===================================
       REEL - 25px 48px 100px, video 380×380, border-radius 50px
       =================================== */
    
    .reel-section {
        padding: 25px 48px 100px;
    }
    
    .reel-section .container {
        padding: 0 0;
    }
    
    .reel-section-title {
        font-size: 16px;
        line-height: 19px;
        font-weight: 700;
        color: #777777;
    }
    
    .reel-video-wrap {
        max-width: 100%;
        width: 100%;
        height: 480px;
        position: relative;
        border-radius: 50px;
        margin: 0;
    }
    .reel-placeholder,
    .reel-inline-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .reel-placeholder,
    .reel-inline-video {
        border-radius: 50px;
    }
    
    .reel-play-circle {
        width: 80px;
        height: 80px;
    }
    .reel-play-icon {
        width: 32px;
        height: 32px;
        margin-left: 4px;
    }
    .reel-play-icon svg {
        width: 100%;
        height: 100%;
    }
    
    /* Reel close (X) visible only when playing, same as desktop */
    .reel-video-wrap.is-playing .reel-close-btn {
        display: flex !important;
    }
    
    /* ===================================
       PROJECTS - 25px 48px 100px, gap 50px, single column
       =================================== */
    
    .selected-work {
        padding: 25px 0 100px;
        position: relative !important;
        transform: none !important;
        background: #000000;
    }
    
    .selected-work .container {
        padding: 0 48px;
    }
    
    .section-title {
        font-size: 16px;
        line-height: 19px;
        font-weight: 700;
        color: #777777;
        margin-bottom: 0;
        margin-left: 0 !important;
    }
    
    .work-grid {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }
    
    .work-card {
        transition: none !important;
        transform: none !important;
    }
    
    .work-card:hover {
        transform: none !important;
    }
    .work-card:hover .work-visual {
        transform: none !important;
    }
    
    .work-visual {
        height: 480px;
        border-radius: 50px;
    }
    
    .project-info {
        top: 24px;
        right: 0;
    }
    
    .project-text-mask {
        overflow: visible;
    }
    
    .project-company {
        font-size: 16px;
        line-height: 19px;
        font-weight: 600;
        color: #777777;
        transform: none !important;
    }
    
    .project-name {
        font-size: 20px;
        line-height: 118.44%;
        font-weight: 700;
        color: #FFFFFF;
        transform: none !important;
    }
    
    /* ===================================
       FOOTER - same as header: 50px L/R, 16px top/bottom, logo + CV + email left, 4px gap
       =================================== */
    
    .footer {
        padding: 16px 50px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative !important;
        margin-top: 0 !important;
        background: #FFFFFF;
    }
    
    .footer .container {
        padding: 0;
        width: 100%;
    }
    
    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0;
        flex-wrap: nowrap;
    }
    
    .footer-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 20px;
    }
    
    .footer-entries {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 8px;
    }
    
    .footer-right,
    .footer-center {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
        gap: 8px;
    }
    
    /* Override touch-friendly rule so footer links don't get min-height 44px */
    .footer-entries .footer-link,
    .footer-right .footer-link {
        min-height: auto !important;
        font-family: var(--font-primary);
        color: #000000;
        font-size: 14px;
        line-height: 118.44%;
        font-weight: 700;
    }
    .footer-right .footer-link {
        text-align: right;
    }
    
    .footer-logo-wrap {
        width: 47px;
        height: 47px;
        min-height: auto !important;
    }
    .footer-logo-circle {
        width: 47px;
        height: 47px;
        filter: none;
    }
    
    .footer-content.footer-three-cols {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: flex-start;
        margin-bottom: 0;
    }
    
    .footer-three-cols .footer-left,
    .footer-three-cols .footer-center,
    .footer-three-cols .footer-right {
        justify-content: flex-start;
    }
    
    
    .footer-label {
        font-size: 14px;
        color: #757575;
    }
    
    .footer-link {
        font-size: 14px;
        line-height: 118.44%;
        font-weight: 700;
        color: #000000;
    }
    
    .footer-credit {
        font-size: 12px;
        color: #757575;
        text-align: left;
        margin-top: 32px;
    }
    
    .footer-logo {
        width: 14px;
        height: 14px;
    }
    
    /* ===================================
       MODALS
       =================================== */
    
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: none;
        border: none;
        border-radius: 0;
    }
    
    .modal-body {
        padding: 60px 20px 40px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-company {
        font-size: 14px;
    }
    
    .modal-description {
        font-size: 16px;
    }
    
    .modal-close {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
    }
    
    .project-modal-close {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        padding: 15px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .modal-close svg, .project-modal-close svg {
        width: 24px !important;
        height: 24px !important;
        stroke: #000000 !important;
    }
    
    /* Project modal - single horizontal padding (content 20px) */
    .project-modal {
        padding: 20px 0 24px !important;
    }
    
    /* Single scroll container: improved mobile scroll performance */
    .project-modal-wrapper {
        width: 100% !important;
        max-height: calc(100vh - 44px) !important;
        border-radius: 20px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        overscroll-behavior-y: contain !important;
        background: #FFFFFF !important;
        will-change: scroll-position !important;
        transform: translateZ(0) !important;
    }
    #projectModalBody {
        touch-action: pan-y;
        overscroll-behavior-y: contain;
        min-height: 100%;
    }
    
    .project-modal-content {
        padding: 34px 20px 80px !important;
    }
    
    .project-modal-header {
        padding: 0 !important;
    }
    
    .project-modal-title {
        font-size: 20px !important;
    }
    
    .project-modal-subtitle {
        font-size: 16px !important;
        color: #555555 !important;
    }
    
    .project-body-text {
        padding: 0 0;
        margin: 0 auto 32px;
    }
    
    /* Mobile: description gray semibold 14px, context regular gray 14px, headline bold black 14px, bodytext gray semibold 14px */
    .project-body-text p {
        font-size: 14px !important;
        line-height: 118.44% !important;
        font-weight: 600 !important;
        color: #555555 !important;
    }
    
    .project-body-text h2,
    .project-body-text .context-title {
        font-size: 14px !important;
        font-weight: 400 !important;
        color: #555555 !important;
    }
    
    .project-body-text h3,
    .project-body-text h4 {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #000000 !important;
    }
    
    #projectHero img,
    #projectHero video {
        width: 100%;
        height: auto;
    }
    
    /* Project grid + selection grid: single column on mobile, scroll to see all */
    #projectGrid,
    .project-grid {
        column-count: 1 !important;
        grid-template-columns: unset;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 20px;
        max-width: 100%;
    }
    .project-grid-item {
        width: 100% !important;
        display: block !important;
    }
    #projectModalBody .selection-grid {
        column-count: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    #projectModalBody .selection-item,
    #projectModalBody .selection-item.span-2col {
        column-span: 1 !important;
        width: 100% !important;
    }
    
    /* Video player */
    .video-player-content {
        width: 100%;
        height: 100%;
        padding: 20px;
    }
    
    video {
        max-width: 100%;
        max-height: 80vh;
    }
    
    /* Password gate */
    .project-password-gate {
        padding: 32px 20px;
    }
    
    .password-input {
        font-size: 18px;
        padding: 16px;
        width: 100%;
        max-width: 280px;
    }
    
    .password-error {
        font-size: 14px;
        padding: 16px 20px;
    }
}

/* Very small phones: reduce horizontal padding from 48px */
@media (max-width: 480px) {
    .container {
        padding: 0 24px;
    }
    .site-header {
        padding: 16px 24px;
    }
    .hero .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .experience .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .reel-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    .selected-work .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    .footer .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet (769–1024): smaller hero name; experience click (JS). */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-name {
        font-size: 80px;
        line-height: 96px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        padding: 0 60px;
    }
    
    .hero-content {
        gap: 60px;
    }
    
    .experience-grid {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Container/hero/experience/footer overridden by Figma mobile block above */
    
    /* Grid link - hide on mobile or make smaller */
    .grid-link {
        right: 20px;
    }
    
    .grid-text {
        font-size: 32px;
    }
    
    .grid-content {
        width: 100%;
        height: 100%;
        padding: 50px 20px 20px;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 12px;
    }
    
    .header {
        top: -136px;
        padding: 24px 0;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    /* Project Modal */
    .project-modal-wrapper {
        width: 98%;
        height: 98%;
    }
    
    /* Match mobile: 34px top, 8px gap (no extra header margin) */
    .project-modal-content {
        padding: 34px 20px 80px;
    }
    
    .project-modal-header {
        margin-bottom: 0;
    }
    
    .project-modal-title {
        font-size: 24px;
    }
    
    .project-modal-subtitle {
        font-size: 14px;
    }
    
    .project-grid-item img,
    .project-grid-item video {
        max-width: 100%;
    }
    
    .password-gate-content {
        padding: 0 20px;
    }
}
