@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Outfit:wght@300;400;600&family=Playfair+Display:ital,wght@1,500&display=swap');

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;

    /* Hide scrollbar (Firefox, IE, Edge) */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
    padding-bottom: 2.75rem;
}

* {
    cursor: none !important;
}

/* --- Custom dual cursor --- */
.cursor-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

::-webkit-scrollbar {
    display: none;
    width: 0;
}

#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    outline: none;
}

.cinematic-track {
    height: 900vh;
    pointer-events: none;
}

/* Multi-page: one-screen film area on the visit page (replaces the 900vh track) */
.film-spacer {
    height: 100vh;
    pointer-events: none;
}

/* Page transition veil — fades in on load, fades back over on internal nav */
.page-veil {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    animation: page-veil-in 0.3s ease-out;
    transition: opacity 0.25s ease;
}

@keyframes page-veil-in {
    from { opacity: 1; }
    to { opacity: 0; }
}

body.page-leave .page-veil {
    animation: none;
    opacity: 1;
    pointer-events: auto;
}

.cinematic-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 60px 40px 60px;
    box-sizing: border-box;
}

/* Stories-style progress on the last grid line */
.story-dashes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-dash {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.story-dash-fill {
    width: 100%;
    height: 0%;
    background: #ffffff;
    border-radius: 2px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 20;
    pointer-events: auto;
    padding: 20px 0;
}

.brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.55;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: color 0.3s, opacity 0.3s, border-color 0.3s;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 1;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.nav-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}

.btn-circle {
    display: inline-block;
    width: 6px;
    height: 6px;
    border: 1px solid #000000;
    border-radius: 50%;
    background: transparent;
}

.contact-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

.slide {
    position: absolute;
    bottom: 12%;
    pointer-events: none;
}

#slide-1 {
    left: 0;
    width: 100%;
}

#slide-1 .slide-title {
    margin-left: 60px;
}

#slide-1 .desc-row {
    position: relative;
    display: flex;
    width: 100%;
}

#slide-1 .col-1 {
    margin-left: 60px;
    width: calc(25vw - 60px);
    max-width: calc(25vw - 60px);
}

#slide-1 .col-2 {
    position: absolute;
    left: calc(25vw + 40px);
    width: calc(25vw - 60px);
    max-width: calc(25vw - 60px);
}

#slide-2 {
    left: 0;
    width: 100%;
}

#slide-2-img {
    position: fixed;
    top: 90px;
    left: 60px;
    width: calc(25vw - 60px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    opacity: 0;
}

#slide-2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#slide-2-img.active {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

#slide-2-img.active img {
    transform: scale(1);
}

#slide-2 .slide-title {
    margin-left: calc(25vw + 40px);
}

#slide-2 .slide-desc {
    margin-left: calc(50vw + 20px);
    width: calc(25vw - 60px);
    max-width: calc(25vw - 60px);
}

#slide-3 {
    left: calc(50vw + 20px);
    width: calc(25vw - 60px);
    max-width: calc(25vw - 60px);
}

#slide-3 .slide-title {
    white-space: nowrap;
}

#slide-4 {
    left: calc(25% + 40px);
    max-width: 600px;
}

.slide-title {
    font-family: 'Italiana', serif;
    font-size: 116px;
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff6ed;
}

.slide-desc {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
    color: #d1d5db;
    letter-spacing: 0.5px;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.4s;
}

.slide.active .slide-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Per-character title reveal */
.slide-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    filter: blur(12px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active .slide-title .char {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.slide.active {
    pointer-events: auto;
}

.grid-horizontal-line {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 5;
    pointer-events: none;
}

.grid-lines {
    position: fixed;
    top: 0;
    left: 40px;
    right: 40px;
    width: calc(100% - 80px);
    height: 100vh;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.grid-line {
    position: relative;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
}

.grid-line:nth-child(3) {
    margin-top: 70px;
    height: calc(100vh - 70px);
}

.grid-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}

.grid-dot.top { top: 10%; }
.grid-dot.bottom { top: 90%; }

/* After the 900vh film: hide slides + grid so the visit page can sit on top */
body.after-film .slide,
body.after-film .slide-image-mask,
body.after-film .grid-lines,
body.after-film .grid-horizontal-line {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

body.after-film .cursor-inner,
body.after-film .cursor-outer {
    opacity: 0;
}

/* --- Visit (after the cinematic track) --- */
#visit {
    position: relative;
    z-index: 2;
    background: #050302;
    color: #fff6ed;
    min-height: 100vh;
    padding: clamp(4.5rem, 10vw, 8rem) 60px 6rem;
}

#visit,
#visit *,
#sample-bar,
#sample-bar * {
    cursor: auto !important;
    user-select: text;
}

#visit input,
#visit button {
    cursor: text;
}

#visit button {
    cursor: pointer !important;
}

.visit-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 2.4rem;
}

@media (min-width: 860px) {
    .visit-inner {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }
}

.visit-eyebrow {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 246, 237, 0.5);
    margin-bottom: 1rem;
}

#visit h2 {
    font-family: 'Italiana', serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: 1px;
    color: #fff6ed;
}

.visit-copy {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 246, 237, 0.62);
    max-width: 34rem;
    margin-top: 1.2rem;
}

#visit form {
    display: grid;
    gap: 0.9rem;
}

#visit input {
    border: 0;
    border-bottom: 1px solid rgba(255, 246, 237, 0.35);
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #fff6ed;
    padding: 0.8rem 0;
}

#visit input::placeholder {
    color: rgba(255, 246, 237, 0.4);
}

#visit input:focus {
    outline: none;
    border-bottom-color: #fff6ed;
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding: 0 1.6rem;
    margin-top: 0.6rem;
    border-radius: 999px;
    border: 0;
    background: #ffffff;
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.visit-btn:hover {
    background: #f0f0f0;
}

#sample-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 80;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.85rem;
    background: #000000;
    color: rgba(255, 246, 237, 0.72);
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#sample-bar p {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sample-bar a {
    color: inherit;
    text-decoration: underline;
}

#sample-bar span {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

#sample-bar .pill {
    background: #fff;
    color: #111;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .slide-title {
        font-size: clamp(42px, 12vw, 72px);
    }

    .cinematic-container,
    #visit {
        padding-left: 24px;
        padding-right: 24px;
    }

    #slide-1 .slide-title,
    #slide-1 .col-1 {
        margin-left: 0;
    }

    #slide-1 .col-1,
    #slide-1 .col-2,
    #slide-2 .slide-desc,
    #slide-3 {
        width: min(72vw, 22rem);
        max-width: min(72vw, 22rem);
    }

    #slide-1 .col-2 {
        position: static;
        margin-top: 1rem;
    }

    #slide-2 .slide-title,
    #slide-2 .slide-desc,
    #slide-3,
    #slide-4 {
        margin-left: 0;
        left: 0;
    }

    #slide-2-img {
        left: 24px;
        width: min(42vw, 11rem);
    }

    .header-nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slide-title .char,
    .slide-desc,
    #slide-2-img,
    #slide-2-img img {
        transition: none;
    }
    .page-veil {
        animation: none;
        transition: none;
    }
}
