/* -----------------------------------------
   FONT
----------------------------------------- */
/* Use Rinter by default, with a local fallback only for uppercase R. */
@font-face {
    font-family: 'Rinter';
    src: url('Assets/Web-PS/Rinter.woff2') format('woff2'),
        url('Assets/Web-TT/Rinter.woff') format('woff'),
        url('Assets/Web-TT/Rinter.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rinter';
    src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0052;
}

/* -----------------------------------------
   RESET & BASE
----------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0a;
    --fg: #ffffff;
    --dim: rgba(255, 255, 255, 0.38);
    --bar-h: 68px;
    --project-popup-scrollbar-width: 14px;
    --bp-mobile-max: 767px;
    --bp-tablet-min: 768px;
    --bp-tablet-max: 1099px;
    --bp-desktop-min: 1100px;
    --bp-desktop-large-min: 1440px;
    --font: 'Rinter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    /* NO scroll-behavior: smooth here -- JS handles it */
    overflow: hidden;
    /* prevent native scroll on desktop */
}

body {
    background: var(--bg);
    font-family: var(--font);
    padding-bottom: var(--bar-h);
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    overflow: hidden;
    height: 100vh;
}

body,
.site-title,
.title-prefix,
.title-suffix,
nav,
.project-popup,
.contact,
.about {
    font-family: var(--font);
}

html.has-custom-cursor,
html.has-custom-cursor *,
html.has-custom-cursor *::before,
html.has-custom-cursor *::after {
    cursor: none !important;
}

/* -----------------------------------------
   SITE HEADER
----------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px, 4vw, 56px);
    background: transparent;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-soft);
}

.site-header>* {
    pointer-events: auto;
}

.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s var(--ease);
}

.site-header__logo:hover {
    opacity: 0.7;
}

.logo-persistent {
    display: block;
    height: 18px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header__mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.nav-link {
    position: relative;
    font-family: var(--font);
    font-size: 14px;
    color: var(--fg);
    text-decoration: none;
    padding: 6px 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fg);
    transition: width 0.4s var(--ease);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.8;
}

.mobile-contact-btn {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.42);
    color: #000;
    text-decoration: none;
    font-family: var(--font);
    font-size: 13px;
    letter-spacing: 0.03em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-contact-btn:hover {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* -----------------------------------------
   MOBILE SIDE MENU
----------------------------------------- */
.menu-toggle {
    display: none;
    position: relative;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--fg);
    border-radius: 999px;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

body.menu-open .menu-toggle span:nth-child(3) {
    opacity: 0;
}

.menu-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg);
}

.menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(90deg);
}

.menu-toggle span:nth-child(3) {
    opacity: 0;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(76vw, 320px);
    background: rgba(10, 10, 10, 0.82);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px 0 0 28px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-soft), opacity 0.6s var(--ease-soft);
    z-index: 260;
    pointer-events: none;
}

body.light-mode .side-menu {
    background: rgba(255, 255, 255, 0.78);
    border-left-color: rgba(255, 255, 255, 0.6);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);
}

body.menu-open .side-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.side-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
}

.side-menu__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    gap: 28px;
}

.side-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.side-menu__logo {
    height: 18px;
    width: auto;
    display: block;
}

.side-menu__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.side-menu__close::before,
.side-menu__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--fg);
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.35s var(--ease);
}

.side-menu__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.side-menu__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.side-menu__time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--fg);
}

.side-menu__city {
    opacity: 0.7;
}

.side-menu__clock {
    font-variant-numeric: tabular-nums;
}

.side-menu__link {
    font-family: var(--font);
    font-size: 18px;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.side-menu__social,
.side-menu__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.side-menu__social-link,
.side-menu__contact-link {
    font-family: var(--font);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--fg);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s var(--ease);
}

.side-menu__social-link:hover,
.side-menu__contact-link:hover {
    opacity: 1;
}

.side-menu__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-soft);
    z-index: 250;
}

body.light-mode .side-menu__backdrop {
    background: rgba(0, 0, 0, 0.2);
}

body.menu-open .side-menu__backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .menu-toggle {
    opacity: 0;
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

/* -----------------------------------------
   PROGRESS DOTS (left centre)
----------------------------------------- */
.progress-dots {
    position: fixed;
    left: clamp(16px, 3vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 140;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.progress-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    position: relative;
}

.progress-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    display: flex;
    background: rgba(255, 255, 255, 0.22);
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    pointer-events: none;
}

.progress-dot:hover::before {
    transform: scale(1.15);
}

.progress-dot.is-active::before {
    background: rgba(255, 255, 255, 0.92);
    opacity: 1;
    transform: scale(1.3);
}

.progress-dot:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 4px;
}

body.light-mode .progress-dot::before {
    background: rgba(0, 0, 0, 0.2);
}

body.light-mode .progress-dot.is-active::before {
    background: rgba(0, 0, 0, 0.85);
}

/* Hide dots when overlay is open (global, not just mobile) */
body.overlay-open .progress-dots {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

body.overlay-open .side-name {
    opacity: 0;
    pointer-events: none;
}

/* -----------------------------------------
   PAGE OVERLAY (About / Contact)
----------------------------------------- */
.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.45);
    /* Light overall background */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, backdrop-filter 0.8s ease;
    backdrop-filter: blur(24px) saturate(160%);
    /* Global liquid glass effect */
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.page-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.page-overlay__panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px clamp(16px, 4vw, 56px) 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.8s ease, opacity 0.8s ease;
    will-change: transform, opacity;
}

/* Disable scrolling on About page */
.page-panel--about {
    overflow-y: hidden;
}

.page-overlay__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.page-overlay__panel.is-exiting {
    visibility: visible;
    pointer-events: none;
}

.page-overlay__content {
    width: min(960px, 92vw);
    max-height: none;
    overflow: visible;
    background: transparent;
    /* Invisible content box */
    border: none;
    border-radius: 28px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: none;
    /* No strong contrast box */
}

.page-overlay__back {
    margin-bottom: clamp(22px, 3vw, 32px);
}

body.light-mode .page-overlay__content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.overlay-close {
    position: absolute;
    top: 100px;
    /* Positioned below the logo */
    left: clamp(20px, 4vw, 32px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    color: var(--fg);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s var(--ease);
    z-index: 300;
}

body.light-mode .overlay-close {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

body.light-mode .overlay-close:hover {
    background: rgba(255, 255, 255, 0.8);
}

.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg);
    border: 1px solid transparent;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 120ms var(--ease), background 0.3s var(--ease), opacity 0.25s var(--ease),
        width 0.24s var(--ease-soft), height 0.24s var(--ease-soft), border-color 0.24s var(--ease-soft),
        box-shadow 0.24s var(--ease-soft);
    z-index: 999;
}

.custom-cursor::before,
.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #0a0a0a;
    opacity: 0;
    transition: opacity 0.18s var(--ease);
}

.custom-cursor::before {
    transform: translate(-50%, -50%);
}

.custom-cursor::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

html.has-custom-cursor .custom-cursor {
    opacity: 1;
}

.custom-cursor.is-interactive {
    transform: translate(-50%, -50%) scale(3);
}

.custom-cursor.is-clicking {
    transform: translate(-50%, -50%) scale(0.85);
}

.custom-cursor.is-interactive.is-clicking {
    transform: translate(-50%, -50%) scale(2.55);
}

.custom-cursor.is-project-trigger {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    transform: translate(-50%, -50%) scale(1);
}

.custom-cursor.is-project-trigger::before,
.custom-cursor.is-project-trigger::after {
    opacity: 0;
}

.custom-cursor.is-project-trigger.is-clicking {
    transform: translate(-50%, -50%) scale(0.92);
    background: rgba(255, 255, 255, 0.28);
}

body.light-mode .custom-cursor.is-project-trigger {
    background: rgba(10, 10, 10, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

body.light-mode .custom-cursor.is-project-trigger.is-clicking {
    background: rgba(10, 10, 10, 0.2);
}

.custom-cursor.is-hidden {
    opacity: 0;
}

.logo-cursor-btn {
    position: fixed;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    will-change: transform, opacity;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.logo-cursor-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.logo-cursor-btn.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

body.light-mode .logo-cursor-btn {
    background: rgba(10, 10, 10, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}



/* -----------------------------------------
   LIGHT MODE OVERRIDES
----------------------------------------- */
body.light-mode {
    --bg: #ffffff;
    --fg: #0a0a0a;
    --dim: rgba(0, 0, 0, 0.5);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

body.light-mode .info-desc.is-hovered {
    color: var(--fg);
}

body.light-mode .info-bar {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.side-name {
    position: fixed;
    left: calc(clamp(16px, 3vw, 40px) + 28px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 145;
    max-width: min(44vw, 420px);
    font-family: var(--font);
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    pointer-events: auto;
    padding-left: 18px;
}

.side-name.is-hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(-6px);
    pointer-events: none;
}

/* -----------------------------------------
   PANELS (About / Contact inside index.html)
----------------------------------------- */
.about,
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    max-width: 960px;
    width: 100%;
    align-items: center;
}

@media (min-width: 768px) and (max-width: 1099px) {
    .site-header {
        padding: 16px 20px;
    }

    .site-header__nav {
        gap: 18px;
    }

    .logo-persistent {
        height: 16px;
    }

    .progress-dots,
    .side-name {
        display: none;
    }

    .intro {
        padding: 14vh 20px 10vh;
    }

    .scene__logo-wrap {
        width: min(92vw, 760px);
        padding: 20px;
    }

    .scene__logo {
        max-height: 58vh;
        animation: logo-float 10s ease-in-out infinite;
    }

    .scene__vector {
        max-width: 45vw;
        opacity: 0.18;
    }

    .scenes {
        scroll-snap-type: none;
    }

    .scene {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .page-overlay__panel {
        padding: 96px 20px 80px;
    }

    .page-overlay__content {
        width: min(820px, 94vw);
        padding: 24px;
        border-radius: 22px;
    }

    .info-desc {
        font-size: 13px;
        padding: 0 24px;
    }

    .info-bar {
        padding: 10px 20px;
    }

    .project-popup__body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px;
    }

    .project-popup__copy {
        padding-right: 0;
        overflow: visible;
    }

    .project-popup__copy-inner {
        max-width: none;
        padding-bottom: 0;
    }

    .project-popup__gallery {
        min-height: 0;
        max-height: 56vh;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .about__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about__photo-wrap {
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
        order: 1;
    }

    .about__text {
        order: 2;
    }
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    order: 1;
}

.about__photo-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    order: 2;
    aspect-ratio: 24 / 31;
}

.about__photo {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.15);
    object-fit: cover;
    object-position: 50% 10%;
    transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.about__photo-wrap:hover .about__photo {
    filter: grayscale(0);
    transform: scale(1.02);
}

.about__heading,
.contact__heading {
    font-family: var(--font);
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 400;
    color: var(--fg);
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.about__paragraph {
    font-family: var(--font);
    font-size: 14px;
    color: var(--dim);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.contact__inner {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font);
    font-size: 12px;
    color: var(--dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.form-input,
.form-textarea {
    font-family: var(--font);
    font-size: 14px;
    color: var(--fg);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dim);
    padding: 10px 0;
    outline: none;
    letter-spacing: 0.01em;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--fg);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
    border-color: #f97c7c;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--dim);
    opacity: 0.6;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.budget-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.budget-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.budget-option {
    position: relative;
}

.budget-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.budget-option label {
    font-family: var(--font);
    font-size: 14px;
    color: var(--dim);
    border: 1px solid var(--dim);
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
    display: inline-block;
    user-select: none;
}

.budget-option label:hover {
    transform: translateY(-1px);
    border-color: var(--fg);
    color: var(--fg);
}

.budget-option input[type="radio"]:checked+label {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.form-submit {
    font-family: var(--font);
    font-size: 14px;
    color: var(--fg);
    background: transparent;
    border: 1px solid var(--dim);
    padding: 12px 32px;
    border-radius: 40px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
    align-self: center;
    margin-top: 8px;
}

.form-submit:hover {
    transform: translateY(-1px);
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.form-submit--success {
    background: rgba(72, 199, 116, 0.92) !important;
    border-color: rgba(72, 199, 116, 0.92) !important;
    color: #fff !important;
    transform: none;
    opacity: 1 !important;
    pointer-events: none;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.2s ease;
}

.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
}

.form-status {
    font-family: var(--font);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.form-status[data-state="error"] {
    color: #f97c7c;
}

.form-status[data-state="success"] {
    color: rgba(162, 224, 160, 0.95);
}

.form-privacy {
    font-family: var(--font);
    font-size: 12px;
    line-height: 1.6;
    color: var(--dim);
    text-align: center;
    max-width: 34ch;
    margin: 0 auto;
}

.form-privacy a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

img {
    display: block;
}

/* -----------------------------------------
   SCROLLBAR (thin, minimal)
----------------------------------------- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

/* -----------------------------------------
   SCENES WRAPPER (snap scroll)
----------------------------------------- */
.scenes {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* hide scrollbar for snap container */
}

.scenes::-webkit-scrollbar {
    display: none;
}

/* -----------------------------------------
   SINGLE SCENE
----------------------------------------- */
.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: background 0.4s var(--ease);
    contain: layout paint;
}

.scene--intro {
    justify-content: center;
    overflow: visible;
    contain: layout;
}

.scene--about {
    padding: clamp(88px, 11vh, 132px) clamp(20px, 4vw, 56px) calc(var(--bar-h) + 40px);
}

.scene--about .about {
    width: min(1100px, 100%);
}

.intro {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: clamp(56px, 9vw, 120px) clamp(20px, 4vw, 56px);
    z-index: 1;
    justify-content: center;
    text-align: center;
    overflow: visible;
}

.intro__bg {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 140vmax;
    height: 140vmax;
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-61deg) scale(0.72);
    pointer-events: none;
    transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
    z-index: 0;
}

#chrome-object-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.scene--intro.is-active .intro__bg {
    opacity: 0.22;
    transform: translate(-50%, -50%) rotate(-16deg) scale(1);
}

body.light-mode .intro__bg {
    filter: invert(1);
}

body.light-mode .scene--intro.is-active .intro__bg {
    opacity: 0.18;
}

.intro__content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    z-index: 2;
}

.intro__content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    line-height: 1.2;
}

.site-kicker {
    display: block;
    margin-bottom: clamp(8px, 1.4vw, 14px);
    font-family: inherit;
    font-size: clamp(14px, 1.6vw, 19px);
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--dim);
    text-align: right;
}

.site-title {
    font-family: inherit;
    font-size: 15vw;
    font-weight: inherit;
    line-height: 1.2;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: baseline;
    white-space: nowrap;
    letter-spacing: -0.02em;
    color: var(--fg);
    overflow: visible;
}

@media (min-width: 768px) {
    .site-title {
        font-size: 10vw;
    }
}

@media (max-width: 767px) {
    .site-title {
        font-size: 15vw;
    }
}

.title-prefix {
    display: inline-block;
    overflow: visible;
    white-space: nowrap;
    line-height: 1.2;
}

.title-suffix {
    display: inline-block;
    flex-shrink: 0;
    overflow: visible;
    line-height: 1.2;
}

.site-year {
    font-family: inherit;
    font-size: 0.85rem;
    opacity: 0.5;
    text-align: right;
    margin-top: 4px;
}

.title-prefix.typing-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 1px;
    animation: blink 0.5s step-end infinite;
    opacity: 1;
}

.scene__vector {
    position: absolute;
    left: var(--vx);
    top: var(--vy);
    width: calc(var(--vs) * 5);
    max-width: 35vw;
    opacity: var(--va, 0.3);
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    transition: opacity 0.4s var(--ease);
}

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

/* Logo SVG container */
.scene__logo-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(90vw, 900px);
    padding: clamp(16px, 3vw, 48px);
}

/* Expand activation radius for hover interactions */
.scene__logo-wrap::after {
    content: '';
    position: absolute;
    inset: -15vh -10vw;
    /* Expands hover area widely around the logo wrapper */
    z-index: 10;
}

.scene__logo {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    transition: opacity 0.35s var(--ease), transform 0.6s var(--ease);
    will-change: transform, opacity;
}

body:has(.info-bar.is-expanded) .scene__logo-wrap {
    pointer-events: none;
}

@keyframes logo-float {
    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }
}

.scene__logo--base {
    opacity: 1;
}

.scene__logo--color {
    opacity: 0;
    pointer-events: none;
}

.scene__logo-wrap.is-color .scene__logo--base {
    opacity: 0;
}

.scene__logo-wrap.is-color .scene__logo--color {
    opacity: 1;
}

/* Hover FX */
.scene__logo-wrap:hover .scene__logo {
    transform: scale(1.04);
}

.scene__project-cta {
    display: none;
}

@media (min-width: 1100px) {
    .scene__project-cta {
        position: absolute;
        left: 50%;
        bottom: calc(var(--bar-h) + 56px);
        transform: translateX(-50%);
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 12px 28px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.42);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(12px) saturate(145%);
        -webkit-backdrop-filter: blur(12px) saturate(145%);
        font-family: var(--font);
        font-size: 14px;
        letter-spacing: 0.04em;
        color: var(--fg);
        cursor: pointer;
        transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
    }

    .scene__project-cta:hover {
        transform: translateX(-50%) translateY(-2px);
        background: rgba(255, 255, 255, 0.56);
        border-color: rgba(0, 0, 0, 0.18);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
    }

    .scene__project-cta:focus-visible {
        outline: 2px solid rgba(0, 0, 0, 0.52);
        outline-offset: 4px;
    }

    body:has(.info-bar.is-expanded) .scene__project-cta,
    body.project-popup-open .scene__project-cta {
        opacity: 0;
        pointer-events: none;
    }
}

.info-desc.is-hovered {
    color: #ffffff;
    transform: translateY(-4px) scale(1.02);
}

/* -----------------------------------------
   FIXED BOTTOM INFO BAR & DESC
----------------------------------------- */
.info-desc {
    position: fixed;
    bottom: calc(var(--bar-h) + 20px);
    left: 0;
    right: 0;
    padding: 0 clamp(20px, 4vw, 56px);
    margin-bottom: 12px;
    z-index: 125;
    pointer-events: none;
    font-family: var(--font);
    font-size: 14px;
    color: var(--dim);
    line-height: 1.4;
    text-align: center;
    transition: transform 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s var(--ease);
    will-change: transform, color, opacity;
    transform-origin: bottom center;
}

.mobile-desc {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(70px + env(safe-area-inset-bottom));
    z-index: 125;
    padding: 0 18px;
    text-align: center;
    gap: 10px;
    flex-direction: column;
    align-items: center;
}

.mobile-desc__text {
    font-family: var(--font);
    font-size: 13px;
    color: var(--dim);
    line-height: 1.5;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.word-wrap {
    display: inline-block;
    vertical-align: top;
    line-height: normal;
    overflow: hidden;
}

.project-popup__word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.project-popup__word.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* New Line-by-Line Slide-Up Animation */
.project-popup__description p {
    overflow: hidden;
    /* clips each line wrapper */
}

.modal-line {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: lineSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.word-inner {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s var(--ease-soft), opacity 0.6s var(--ease-soft);
    will-change: transform, opacity;
}

.word-inner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.mobile-desc__more {
    font-family: var(--font);
    font-size: 12px;
    color: #000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px 24px;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.mobile-desc__more:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.28);
}

.mobile-desc__more:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.32);
}

body.light-mode .mobile-desc__more {
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

body.light-mode .mobile-desc__more:hover {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(0, 0, 0, 0.18);
}

body.light-mode .mobile-desc__more:active {
    background: rgba(255, 255, 255, 0.66);
}

.mobile-desc.is-empty {
    opacity: 0;
    pointer-events: none;
}

body.menu-open .mobile-desc,
body.overlay-open .mobile-desc,
body:has(.info-bar.is-expanded) .mobile-desc {
    opacity: 0;
    pointer-events: none;
}

.info-bar {
    --footer-visible: 1;
    --footer-expand: 0;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 120;
    height: calc(var(--bar-h) + (50vh - var(--bar-h)) * var(--footer-expand));
    padding: 0 clamp(16px, 3vw, 16px);
    background: rgba(10, 10, 10, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 40px;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
    font-family: var(--font);
    font-size: 14px;
    letter-spacing: 0.015em;
    opacity: var(--footer-visible);
    transform: translateY(calc((1 - var(--footer-visible)) * 120%));
    overflow: hidden;
    pointer-events: none;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
        opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft),
        height 0.55s var(--ease-soft);
}

.info-bar.is-visible {
    pointer-events: auto;
}

body.menu-open .info-bar,
body.overlay-open .info-bar {
    opacity: 0 !important;
    transform: translateY(120%) !important;
    pointer-events: none !important;
}

.info-bar__collapsed {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    min-height: var(--bar-h);
    opacity: calc(1 - var(--footer-expand) * 1.45);
    transform: translateY(calc(var(--footer-expand) * -16px));
    transition: opacity 0.38s var(--ease-soft), transform 0.38s var(--ease-soft);
}

.info-bar__left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.info-bar__center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-bar__right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.info-bar__toggle {
    position: absolute;
    left: 0;
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.info-bar__toggle svg,
.info-bar__toggle img {
    width: 20px;
    height: 20px;
    display: block;
}

.info-bar.is-visible.is-at-bottom {
    padding: 0 26px;
}

.info-bar__toggle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.info-bar__toggle:active {
    transform: scale(0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Keep the author label fixed in place. */
.info-bar__author {
    color: #0a0a0a;
    padding-left: 16px;
    font-size: 14px;
    white-space: nowrap;
    transition: none;
}

.info-bar:hover .info-bar__author,
.info-bar.is-expanded .info-bar__author,
.info-bar.is-at-bottom .info-bar__author {
    transform: none;
    padding-left: 16px;
}

.info-bar:hover .info-bar__toggle,
.info-bar.is-expanded .info-bar__toggle,
.info-bar.is-at-bottom .info-bar__toggle {
    opacity: 0.65;
    pointer-events: auto;
    transform: translateX(0);
}

.icon-toggle {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.info-bar.is-expanded .icon-toggle {
    transform: rotate(45deg);
}

.info-bar__separator {
    color: var(--dim);
    font-size: 10px;
}

.info-bar__expanded {
    position: absolute;
    left: clamp(16px, 3vw, 40px);
    right: clamp(16px, 3vw, 40px);
    top: clamp(16px, 3vh, 40px);
    bottom: clamp(16px, 3vh, 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: calc(var(--footer-expand) * 1.3);
    transform: translateY(calc((1 - var(--footer-expand)) * 24px));
    transition: opacity 0.45s var(--ease-soft), transform 0.45s var(--ease-soft);
    pointer-events: none;
}

.info-bar.is-expanded .info-bar__expanded {
    pointer-events: auto;
}

/* -----------------------------------------
   PROJECT POPUP
----------------------------------------- */
.project-popup {
    position: fixed;
    inset: 0;
    z-index: 290;
    pointer-events: none;
}

.project-popup.is-open {
    pointer-events: auto;
}

.project-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 16, 0.18);
    opacity: 0;
    transition: opacity 0.55s var(--ease-soft);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-popup.is-open .project-popup__backdrop {
    opacity: 1;
}

.project-popup__sheet {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(95vw, 1640px);
    height: min(90vh, 860px);
    max-height: 90vh;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
    background: transparent;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px)) scale(0.985);
    transform-origin: center;
    transition: transform 0.72s var(--ease-soft), opacity 0.52s var(--ease-soft);
}

.project-popup.is-open .project-popup__sheet {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-popup__sheet-glass {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    pointer-events: none;
    z-index: 0;
}

body.light-mode .project-popup__sheet {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

body.light-mode .project-popup__sheet-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
}

.project-popup__rail {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

.project-popup__close {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.3s var(--ease);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    margin-top: 2px;
}

.project-popup__close::before,
.project-popup__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--fg);
}

.project-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.project-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.project-popup__close:hover {
    transform: scale(1.04);
    background: rgba(255, 255, 255, 0.14);
}

body.light-mode .project-popup__close {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.project-popup__body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.32fr) minmax(0, 0.68fr);
    gap: 30px;
    padding: 30px;
    transition: opacity 0.36s var(--ease-soft), filter 0.36s var(--ease-soft), transform 0.36s var(--ease-soft);
}

.project-popup__copy,
.project-popup__gallery-shell {
    min-height: 0;
    min-width: 0;
}

.project-popup__copy {
    padding-right: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.project-popup__copy::-webkit-scrollbar {
    display: none;
}

.project-popup__gallery-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--project-popup-scrollbar-width);
    gap: 12px;
    align-items: stretch;
    min-width: 0;
    height: 100%;
}

.project-popup__gallery-shell.is-scrollbar-hidden {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.project-popup__copy-inner {
    max-width: 500px;
    padding-bottom: 48px;
}

.project-popup__title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.project-popup__title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--fg);
    margin: 0;
}

.project-popup__close {
    align-self: flex-start;
    margin-top: 0;
}

.project-popup__description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-popup__paragraph {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dim);
    max-width: 42ch;
    min-height: 0;
    opacity: 0.92;
}

.project-popup__paragraph.is-visible {
    color: var(--dim);
}

.project-popup__word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: inherit;
}

.project-popup__word {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    transition: transform 0.65s var(--ease-soft), opacity 0.65s var(--ease-soft);
    will-change: transform, opacity;
}

.project-popup__word.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.project-popup__gallery {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    will-change: scroll-position;
    transform: translateZ(0);
    contain: strict;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    will-change: scroll-position;
    transform: translateZ(0);
    contain: strict;
}

.project-popup__gallery:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 6px;
}

.project-popup__gallery:focus-visible+.project-popup__scrollbar {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
}

body.light-mode .project-popup__gallery:focus-visible {
    outline-color: rgba(0, 0, 0, 0.54);
}

.project-popup__gallery::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.light-mode .project-popup__gallery {
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(0, 0, 0, 0.06);
}

.project-popup__gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1685 / 1191;
    min-height: clamp(420px, 62vh, 860px);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.4s var(--ease), transform 0.52s var(--ease-soft);
}

.project-popup__gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-popup__gallery-badge {
    display: none !important;
}

.scene__logo-wrap[data-project-trigger]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 6px;
}

body.light-mode .scene__logo-wrap[data-project-trigger]:focus-visible {
    outline-color: rgba(0, 0, 0, 0.54);
}

.project-popup__gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    cursor: default !important;
    pointer-events: none;
    object-fit: cover;
}

.project-popup__scrollbar {
    position: relative;
    width: var(--project-popup-scrollbar-width);
    min-width: var(--project-popup-scrollbar-width);
    height: 100%;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    overflow: hidden;
    cursor: grab;
}

.project-popup__scrollbar:active {
    cursor: grabbing;
}

body.light-mode .project-popup__scrollbar {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.project-popup__scrollbar[hidden] {
    display: none;
}

.project-popup__scrollbar-thumb {
    position: absolute;
    left: 1px;
    right: 1px;
    top: 0;
    height: 48px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.16);
    cursor: grab;
    touch-action: none;
    user-select: none;
    will-change: transform, height;
}

.project-popup__scrollbar-thumb:active {
    cursor: grabbing;
}

.project-popup__scrollbar-thumb:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

body.light-mode .project-popup__scrollbar-thumb:focus-visible {
    outline-color: rgba(0, 0, 0, 0.65);
}

body.project-popup-open {
    overflow: hidden;
}

body.project-popup-open .scenes {
    overflow: hidden;
}

body.project-popup-open .info-bar,
body.project-popup-open .mobile-desc,
body.project-popup-open .progress-dots,
body.project-popup-open .side-name {
    opacity: 0 !important;
    transform: translateY(120%) !important;
    pointer-events: none !important;
}

body.project-popup-open .scene__logo-wrap {
    pointer-events: none;
}

body.project-popup-scroll-dragging {
    user-select: none;
    -webkit-user-select: none;
}

@media (pointer: coarse) {

    #customCursor,
    .custom-cursor,
    #logoCursorBtn,
    .logo-cursor-btn {
        display: none !important;
        pointer-events: none !important;
    }
}

/* -----------------------------------------
   THEME SWITCH BUTTON (inside header)
----------------------------------------- */
.theme-switch {
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    color: var(--fg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 40px;
    background: transparent;
    transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.theme-switch:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .theme-switch {
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .theme-switch:hover {
    background: rgba(0, 0, 0, 0.05);
}

.info-bar__name {
    color: var(--fg);
    font-family: var(--font);
    white-space: nowrap;
    font-size: 14px;
}

.info-bar__author {
    color: #000000 !important;
}

/* Centre: industry */
.info-bar__industry {
    color: var(--fg);
    font-family: var(--font);
    white-space: nowrap;
    font-size: 14px;
}

/* Right: year */
.info-bar__year {
    color: var(--fg);
    padding-right: 16px;
    white-space: nowrap;
    font-size: 14px;
}

.info-bar__menu {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 1vh, 10px);
}

.info-bar__menu-link {
    font-family: var(--font);
    font-size: clamp(26px, 4.8vw, 72px);
    line-height: 0.95;
    letter-spacing: 0;
    color: var(--fg);
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.info-bar__menu-link:hover {
    opacity: 0.76;
    transform: translateX(2px);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-identity-name {
    font-family: var(--font);
    font-size: clamp(32px, 5vw, 84px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.footer-identity-title {
    font-family: var(--font);
    font-size: clamp(15px, 1.8vw, 22px);
    color: var(--dim);
    letter-spacing: 0.01em;
}

.footer-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: clamp(13px, 1.5vw, 16px);
    color: var(--dim);
    gap: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-city {
    opacity: 0.9;
}

.footer-time {
    font-variant-numeric: tabular-nums;
    color: var(--fg);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 10px;
}

.footer-social-link {
    font-family: var(--font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.footer-social-link:hover {
    color: var(--fg);
}

body.light-mode .footer-social-link {
    color: rgba(0, 0, 0, 0.45);
}

body.light-mode .footer-social-link:hover {
    color: var(--fg);
}

/* Typewriter cursor pulse */
.typing::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    margin-left: 1px;
    opacity: 0.7;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Slide down animation class for text */
.is-hidden {
    opacity: 0 !important;
    transform: translateY(8px) !important;
}

/* -----------------------------------------
   RESPONSIVE (PHONES ONLY - allow free scroll)
----------------------------------------- */
@media (max-width: 767px) {

    html,
    body {
        overflow: hidden;
        height: 100%;
    }

    html.overlay-open,
    body.overlay-open {
        overflow: hidden;
        height: 100%;
    }

    body.overlay-open .scenes {
        overflow: hidden;
    }

    .scenes {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        display: block;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .scenes::-webkit-scrollbar {
        display: none;
    }

    .scene {
        height: 100vh;
        min-height: 100vh;
        width: 100%;
        padding: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .scene__logo-wrap {
        padding: 0;
        width: 90vw;
    }

    .scene__logo {
        max-height: 48vh;
    }

    .scene--intro {
        justify-content: center;
    }

    .scene--about {
        padding: 88px 16px 40px;
        align-items: stretch;
    }

    .scene--about .about {
        width: 100%;
    }

    .intro {
        padding: 16vh 16px 10vh;
        align-items: center;
        text-align: center;
    }

    .intro__meta {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .scene__vector {
        display: block;
        width: calc(var(--vs) * 6);
        max-width: 70vw;
        opacity: 0.14;
    }

    .site-header {
        padding: 14px 16px;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__mobile-actions {
        display: flex;
    }

    .nav-link {
        font-size: 13px;
    }

    .mobile-contact-btn {
        display: inline-flex;
    }

    .menu-toggle {
        display: flex;
    }

    .side-name {
        display: none;
    }

    .custom-cursor {
        display: none;
    }

    .page-overlay__panel {
        align-items: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 88px 16px 88px;
    }

    .page-overlay__content {
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 20px;
        border-radius: 18px;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about__photo-wrap {
        display: none !important;
    }

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

    .about__paragraph {
        text-align: center;
    }

    .about__photo {
        height: clamp(200px, 46vw, 280px);
        object-fit: cover;
    }

    .contact__inner {
        margin: 0 auto;
    }

    .budget-options {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .budget-option label {
        text-align: center;
        min-width: 120px;
    }

    .project-popup__sheet {
        left: 0;
        width: 100%;
        top: 0;
        bottom: 0;
        border-radius: 30px 30px 0 0;
        transform: translate(0, 100%);
    }

    .project-popup.is-open .project-popup__sheet {
        transform: translate(0, 0) scale(1);
    }

    .project-popup__body {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 16px;
        overflow-y: auto;
    }

    .project-popup__copy,
    .project-popup__gallery {
        overflow: visible;
    }

    .project-popup__title {
        font-size: clamp(34px, 11vw, 52px);
        margin-bottom: 14px;
    }

    .project-popup__paragraph {
        max-width: none;
        font-size: 14px;
        line-height: 1.75;
    }

    .project-popup__gallery {
        background: transparent;
        border: none;
        border-radius: 22px;
        height: auto;
        max-height: none;
        contain: none;
        transform: none;
        will-change: auto;
        overflow: visible;
        scrollbar-width: none;
    }

    .project-popup__gallery,
    .modal-images {
        padding-left: 12px;
        padding-right: 12px;
    }

    .project-popup__gallery::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .project-popup__gallery-item {
        opacity: 1;
        transform: none;
        min-height: clamp(260px, 48vh, 520px);
    }

    .project-popup__close {
        width: 44px;
        height: 44px;
    }

    .info-desc {
        display: none;
    }

    .info-bar {
        display: none !important;
    }

    .mobile-desc {
        display: flex;
    }

    .progress-dots {
        display: none !important;
    }

    .info-bar__name {
        font-size: 13px;
    }

    .info-bar__author {
        font-size: 11px;
    }

    .info-bar__industry {
        font-size: 13px;
        white-space: normal;
        line-height: 1.3;
        padding: 0 4px;
    }

    .info-bar__year {
        font-size: 13px;
    }

    .gradient-overlay {
        display: block;
    }

    body.menu-open .site-header {
        /* Keep header visible, just hide the toggle button */
        opacity: 1;
        pointer-events: none;
    }

    body.menu-open .menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .side-menu {
        inset: auto 0 0 0;
        width: 100%;
        height: 40vh;
        border-radius: 28px 28px 0 0;
        background: linear-gradient(145deg,
                rgba(255, 255, 255, 0.14),
                rgba(255, 255, 255, 0.03));
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(26px) saturate(180%);
        -webkit-backdrop-filter: blur(26px) saturate(180%);
        transform: translateY(100%);
        transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
        z-index: 310;
        will-change: transform;
    }

    body.light-mode .side-menu {
        background: linear-gradient(145deg,
                rgba(255, 255, 255, 0.65),
                rgba(255, 255, 255, 0.25));
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.menu-open .side-menu {
        transform: translateY(0);
    }

    .side-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at 20% 20%,
                rgba(255, 255, 255, 0.2),
                rgba(255, 255, 255, 0) 55%);
        opacity: 0.6;
        pointer-events: none;
    }

    .side-menu__inner {
        padding: 20px;
        gap: 0;
        justify-content: flex-start;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .side-menu__nav {
        position: relative;
        z-index: 1;
        gap: 12px;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: auto;
    }

    .side-menu__link {
        font-size: clamp(32px, 7vw, 34px);
        letter-spacing: 0.02em;
        opacity: 0.9;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    }

    .side-menu__middle {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
        margin-bottom: 24px;
        margin-top: 24px;
    }

    .side-menu__bottom {
        display: flex;
        justify-content: center;
        gap: 28px;
        width: 100%;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .side-menu__social-link,
    .side-menu__contact-link {
        font-size: 15px;
        letter-spacing: 0.04em;
        opacity: 0.95;
    }
}

@media (max-width: 767px) {
    .progress-dots {
        display: none !important;
    }

    .mobile-desc {
        display: flex;
    }

    .mobile-desc__more,
    .show-more-btn {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 9999px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        color: #000;
        padding: 10px 24px;
        cursor: pointer;
    }

    body.light-mode .mobile-desc__more,
    body.light-mode .show-more-btn {
        background: rgba(255, 255, 255, 0.46);
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    }

    body.light-mode .mobile-desc__more:hover,
    body.light-mode .show-more-btn:hover {
        background: rgba(255, 255, 255, 0.58);
        border-color: rgba(0, 0, 0, 0.18);
    }

    body.light-mode .mobile-desc__more:active,
    body.light-mode .show-more-btn:active {
        background: rgba(255, 255, 255, 0.66);
    }

    .about__photo-wrap {
        display: none !important;
    }

    body.modal-open #navLogo,
    body.modal-open #menuToggle,
    body.modal-open #mobileContactBtn {
        display: none;
    }

    .project-popup__backdrop {
        background: rgba(12, 12, 16, 0.18);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .project-popup__sheet {
        left: 0;
        top: 0;
        bottom: auto;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateY(100%);
        transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
    }

    body.light-mode .project-popup__sheet {
        background: rgba(255, 255, 255, 0.45);
    }

    .project-popup__sheet::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.08) 0%,
                rgba(255, 255, 255, 0) 30%);
        pointer-events: none;
        z-index: 0;
    }

    .project-popup__sheet-glass {
        display: none;
    }

    .project-popup.is-open .project-popup__sheet {
        transform: translateY(0);
    }

    .project-popup__rail {
        position: relative;
        z-index: 1;
        height: 100%;
    }

    .project-popup__body {
        position: relative;
        z-index: 1;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .project-popup__body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .project-popup__copy,
    .modal-description,
    .modal-images {
        background: transparent;
    }

    .project-popup__copy {
        flex: 0 0 auto;
        padding: 0;
        overflow: visible;
        width: 100%;
    }

    .project-popup__copy-inner {
        width: 100%;
        max-width: none;
        padding-bottom: 0;
    }

    .project-popup__title-row {
        position: sticky;
        top: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 0;
        padding: calc(16px + env(safe-area-inset-top)) 20px 12px;
        margin: 0;
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.94) 0%,
                rgba(255, 255, 255, 0.9) 72%,
                rgba(255, 255, 255, 0.72) 100%);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    body.modal-open .project-popup__close {
        width: 44px;
        height: 44px;
        margin-top: 0;
        border-color: rgba(0, 0, 0, 0.14);
        background: rgba(255, 255, 255, 0.62);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.modal-open .project-popup__close:hover {
        background: rgba(255, 255, 255, 0.74);
    }

    body.modal-open .project-popup__close::before,
    body.modal-open .project-popup__close::after {
        background: #000;
    }

    .project-popup__title {
        grid-column: 2;
        justify-self: center;
        text-align: center;
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.02;
        color: #000;
    }

    .project-popup__description {
        padding: 14px 20px 24px;
        gap: 0;
    }

    .project-popup__paragraph {
        position: relative;
    }

    .project-popup__paragraph,
    .project-popup__paragraph.is-visible {
        max-width: none;
        display: block;
        overflow: visible;
        max-height: none;
        -webkit-line-clamp: unset;
        font-size: 0.92rem;
        line-height: 1.6;
        color: rgba(0, 0, 0, 0.7);
        opacity: 1;
        margin: 0 0 12px;
    }

    .project-popup__paragraph:last-child {
        margin-bottom: 0;
    }

    .project-popup__mobile-line-probe {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        visibility: hidden;
        pointer-events: none;
        white-space: normal;
    }

    .project-popup__mobile-line-word {
        display: inline;
    }

    .project-popup__line-wrap {
        display: block;
        width: 100%;
        overflow: hidden;
    }

    .project-popup__line {
        display: inline-block;
        white-space: nowrap;
        line-height: inherit;
        transform: translateY(115%);
        opacity: 0;
        transition: transform 0.42s var(--ease-soft), opacity 0.42s var(--ease-soft);
        will-change: transform, opacity;
    }

    .project-popup__line.is-visible {
        transform: translateY(0);
        opacity: 1;
    }

    .project-popup__gallery-shell {
        flex: 0 0 auto;
        display: block;
        height: auto;
        min-width: 0;
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .project-popup__gallery-shell.is-scrollbar-hidden {
        gap: 0;
    }

    .project-popup__gallery {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: auto;
        overflow: visible;
        background: transparent;
        border: none;
        border-radius: 0;
        contain: none;
        transform: none;
        will-change: auto;
        padding: 0;
        margin: 0;
    }

    .project-popup__gallery::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .project-popup__gallery-item {
        opacity: 1;
        transform: none;
        aspect-ratio: auto;
        min-height: 0;
        overflow: visible;
        padding: 0;
    }

    .project-popup__gallery-item:last-child {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .project-popup__gallery-image,
    .modal-images img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        display: block;
    }

    .project-popup__scrollbar {
        display: none;
    }
}

@media (min-width: 768px) {
    .project-popup__sheet {
        left: 50%;
        top: 50%;
        bottom: auto;
        width: min(95vw, 1640px);
        height: min(90vh, 860px);
        max-height: 90vh;
        border-radius: 36px;
        transform: translate(-50%, calc(-50% + 20px)) scale(0.985);
    }

    .project-popup.is-open .project-popup__sheet {
        transform: translate(-50%, -50%) scale(1);
    }

    .project-popup__body {
        display: grid;
        grid-template-columns: minmax(280px, 0.32fr) minmax(0, 0.68fr);
        gap: 30px;
        padding: 30px;
        overflow: hidden;
        min-width: 0;
    }

    .project-popup__copy,
    .project-popup__gallery-shell {
        min-height: 0;
        min-width: 0;
    }

    .project-popup__copy {
        padding-right: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .project-popup__copy-inner {
        max-width: none;
        padding-bottom: 0;
    }

    .project-popup__copy::-webkit-scrollbar {
        display: none;
    }

    .project-popup__gallery-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--project-popup-scrollbar-width);
        gap: 12px;
        align-items: stretch;
        height: 100%;
    }

    .project-popup__gallery-shell.is-scrollbar-hidden {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .project-popup__title-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .project-popup__close {
        align-self: flex-start;
        margin-top: 0;
    }

    .project-popup__title {
        font-size: clamp(1.5rem, 2.5vw, 2.2rem);
        line-height: 1.05;
        margin: 0;
    }

    .project-popup__description {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .project-popup__paragraph {
        font-size: 15px;
        line-height: 1.8;
        color: var(--dim);
        max-width: 42ch;
        min-height: 0;
        opacity: 0.92;
    }

    .project-popup__paragraph.is-visible {
        color: var(--dim);
    }

    .project-popup__gallery {
        position: relative;
        min-width: 0;
        height: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        will-change: scroll-position;
        transform: translateZ(0);
        contain: strict;
        border-radius: 28px;
        background: rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .project-popup__gallery::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    body.light-mode .project-popup__gallery {
        background: rgba(255, 255, 255, 0.52);
        border-color: rgba(0, 0, 0, 0.06);
    }

    .project-popup__gallery-item {
        position: relative;
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: default;
        aspect-ratio: auto;
        min-height: 0;
        overflow: visible;
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.4s var(--ease), transform 0.52s var(--ease-soft);
    }

    .project-popup__gallery-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .project-popup__gallery-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .project-popup__sheet {
        width: 94vw;
        max-width: 94vw;
        height: min(88vh, 860px);
        max-height: 88vh;
    }

    .project-popup__body {
        grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
        gap: 24px;
        padding: 28px 24px;
    }

    .project-popup__copy {
        padding-right: 0;
    }

    .project-popup__copy-inner {
        max-width: none;
    }
}

@media (min-width: 1100px) and (max-width: 1439px) {
    .project-popup__sheet {
        width: 94vw;
        max-width: 94vw;
        height: min(88vh, 860px);
        max-height: 88vh;
    }

    .project-popup__body {
        grid-template-columns: minmax(280px, 0.32fr) minmax(0, 0.68fr);
        gap: 30px;
        padding: 36px 32px;
    }

    .project-popup__copy {
        padding-right: 10px;
    }

    .project-popup__copy-inner {
        max-width: 500px;
        padding-bottom: 48px;
    }
}

@media (min-width: 1440px) {
    .project-popup__sheet {
        width: 90vw;
        max-width: 1600px;
        height: min(88vh, 860px);
        max-height: 88vh;
    }

    .project-popup__body {
        grid-template-columns: minmax(280px, 0.3fr) minmax(0, 0.7fr);
        gap: 30px;
        padding: 36px 32px;
    }

    .project-popup__copy {
        padding-right: 10px;
    }

    .project-popup__copy-inner {
        max-width: 500px;
        padding-bottom: 48px;
    }
}

body.is-intro .info-bar__industry {
    visibility: hidden;
}

/* ── Privacy Page ── */
.privacy-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px 120px;
    font-family: var(--font, 'Rinter', sans-serif);
}

.privacy-back {
    display: inline-block;
    margin-bottom: 40px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

.privacy-back:hover {
    color: #000;
}

.privacy-page h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.privacy-date {
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 48px;
}

.privacy-page section {
    margin-bottom: 36px;
}

.privacy-page h2 {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

.privacy-page p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 12px;
}

.privacy-page a {
    color: #000;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {

    /* Image list container — add horizontal breathing room */
    .modal-images,
    .modal-image-panel,
    .project-popup__images {
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    /* Each image — fit within the padded container, never crop */
    .modal-images img,
    .modal-image-panel img,
    .project-popup__images img {
        width: 100%;
        height: auto;
        object-fit: contain;
        /* never crops */
        display: block;
        border-radius: 12px;
        margin-bottom: 10px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
