/* ── VeKtoR — main & index — Editorial Brutalist ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,100..900;1,100..900&family=UnifrakturMaguntia&display=swap');

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Variables ───────────────────────────────────────────────────── */
:root {
    --main:    #FF4B33;
    --adiacent:#2222CC;
    --dark:    #101010;
    --light:   #F5F5F5;
    --gray:    #D9D9D9;
}

/* ── Grain overlay ───────────────────────────────────────────────── */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* ── Base ────────────────────────────────────────────────────────── */
html, body {
    background-color: var(--dark);
    color: var(--light);
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    font-family: "Funnel Sans", sans-serif;
}

p, a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1;
    user-select: none;
}

.container {
    position: relative;
    width: 100%;
    will-change: transform, opacity;
    z-index: 0;
    display: flex;
    flex-direction: column;
}

/* ── Navigation ──────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 1.25em 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: color 1s ease, mix-blend-mode 1s ease;
}

nav p {
    padding: 0.75em 1em;
    cursor: pointer;
    letter-spacing: 0.12em;
}

nav.on-accent {
    color: var(--dark);
    mix-blend-mode: normal;
}

.nav-item a {
    font-size: 1em;
    cursor: pointer;
    color: inherit;
    letter-spacing: 0.1em;
}

/* ── Menu Overlay ────────────────────────────────────────────────── */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--dark);
    color: var(--gray);
    z-index: 999;
    will-change: clip-path;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

/* Subtle grid lines on menu overlay */
.menu-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.menu-content {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    will-change: transform, opacity;
}

.menu-col {
    max-width: 10em;
}

.menu-col p {
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.menu-col:nth-child(2) {
    text-align: right;
}

.menu-img {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    will-change: transform, opacity;
    opacity: 0.8;
}

.menu-links-wrapper {
    position: absolute;
    left: 0;
    bottom: 0;
    width: max-content;
    padding: 1.5em 2em;
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
    will-change: transform;
}

.menu-link {
    position: relative;
    will-change: transform;
    overflow: hidden;
}

.menu-link a {
    position: relative;
    color: var(--light);
    font-size: 9em;
    letter-spacing: -0.03em;
    font-weight: 900;
    display: inline-block;
    overflow: hidden;
    line-height: 1;
    font-family: "Funnel Sans", sans-serif;
}

.menu-link a span {
    position: relative;
    display: inline-block;
}

.menu-link a span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--main);
}

.menu-link a span .char {
    position: relative;
    display: inline-block;
    will-change: transform;
}

.link-highlighter {
    position: absolute;
    bottom: 1.25em;
    left: 0;
    width: 400px;
    height: 3px;
    background-color: var(--main);
    will-change: transform, width;
}

.char, div[class*="char"] {
    position: relative;
    display: inline-block;
    will-change: font-weight, font-variation-settings;
    font-family: "Funnel Sans", sans-serif;
}

h1 {
    font-family: "UnifrakturMaguntia", cursive;
}

h2 {
    font-family: "Funnel Sans", sans-serif;
    font-size: 4em;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

p, a p {
    font-size: 1em;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
}

/* ── Loader ──────────────────────────────────────────────────────── */
.loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    z-index: 1006;
    pointer-events: none;
}

.loader-clip {
    position: absolute;
    width: 100vw;
    height: 33.3vh;
    height: 33.3svh;
    overflow: clip;
    z-index: 10000;
}

.clip-top {
    top: 0;
    clip-path: inset(0 0 0 0);
    background-color: var(--light);
}

.clip-bottom {
    bottom: 0;
    clip-path: inset(0 0 0 0);
    background-color: var(--light);
}

.clip-center {
    overflow: hidden;
    position: absolute;
    z-index: 1006;
    top: 33.3vh;
    height: 33.4vh;
    top: 33.3svh;
    height: 33.4svh;
    width: 100vw;
}

.marquee {
    position: absolute;
    top: 200%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 200vw;
    color: var(--light);
    mix-blend-mode: difference;
    font-size: 16vw;
}

.marquee-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Funnel Sans", sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* ── Warn / loader overlay ───────────────────────────────────────── */
.warn {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    z-index: 1005;
    font-family: "Funnel Sans", sans-serif;
    text-transform: uppercase;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    font-size: 1em;
    background-color: var(--dark);
}

/* Warn accent line at top */
.warn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main);
}

.warn .warn-footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1.5em 2em;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.warn-text {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35em;
}

.warn-text p {
    letter-spacing: 0.12em;
    color: var(--gray);
}

.warn-toggle {
    display: flex;
    align-items: center;
    gap: 1em;
}

/* Toggle switch */
.switch {
    width: 3.5em;
    height: 2em;
    --toggle-diameter: 1.5em;
    --button-toggle-offset: calc((2em - var(--toggle-diameter)) / 2);
    --toggle-shadow-offset: 10px;
    --toggle-wider: 3em;
}

.slider {
    display: inline-block;
    width: 3.5em;
    height: 2em;
    background-color: rgba(255,255,255,0.12);
    border-radius: 0;
    position: relative;
    transition: 0.3s all ease-in-out;
    border: 1px solid rgba(255,255,255,0.15);
}

.slider::after {
    content: "";
    display: inline-block;
    width: var(--toggle-diameter);
    height: var(--toggle-diameter);
    background-color: var(--light);
    border-radius: 0;
    position: absolute;
    top: var(--button-toggle-offset);
    left: var(--button-toggle-offset);
    box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0,0,0,0.2);
    transition: 0.3s all ease-in-out;
}

.switch input[type="checkbox"]:checked + .slider {
    background-color: var(--main);
    border-color: var(--main);
}

.switch input[type="checkbox"]:checked + .slider::after {
    left: calc(3.5em - var(--toggle-diameter) - var(--button-toggle-offset));
    box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0,0,0,0.2);
}

.switch input[type="checkbox"] {
    display: none;
}

.switch input[type="checkbox"]:active + .slider::after {
    width: var(--toggle-wider);
}

.switch input[type="checkbox"]:checked:active + .slider::after {
    left: calc(3.5em - var(--toggle-wider) - var(--button-toggle-offset));
}

@media (hover: none) and (pointer: coarse) {
    .switch input[type="checkbox"]:active + .slider::after { width: var(--toggle-wider); }
    .switch input[type="checkbox"]:checked:active + .slider::after {
        left: calc(3.5em - var(--toggle-wider) - var(--button-toggle-offset));
    }
}

.warn-footer h6 {
    font-size: 0.7em;
    line-height: 1;
    color: var(--main);
    display: none;
    text-transform: lowercase;
    letter-spacing: 0.08em;
}

.warn-footer h6.show {
    display: flex;
    opacity: 0;
    visibility: hidden;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; visibility: visible; }
}

/* Continue button */
.continue-button {
    height: 3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--light);
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    padding: 0 1.75em;
    font-family: "Funnel Sans", sans-serif;
    overflow: hidden;
    transition: color 0.35s ease, border-color 0.35s ease;
}

.continue-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
    z-index: 0;
}

.continue-button:hover::before { transform: scaleX(1); }

.continue-button:hover { border-color: var(--main); color: var(--light); }

.continue-button .svgIcon,
.continue-button span { position: relative; z-index: 1; }

.continue-button .svgIcon { transition: transform 0.4s ease; }
.continue-button:hover .svgIcon { transform: translateX(4px); }

.svgIcon {
    height: 1.25em;
    transition-duration: .4s;
}

.svgIcon path { fill: currentColor; }

.continue-button:active { transform: scale(0.98); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero #glassTexture {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background-color: var(--main);
    height: 100vh;
    width: 100%;
    font-size: 8em;
    font-family: "UnifrakturMaguntia", cursive;
    letter-spacing: -0.02em;
}

.hero-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--dark);
}

.hero-content h2 {
    width: 55%;
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-content > p {
    font-size: 0.65em;
    letter-spacing: 0.18em;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
    align-self: flex-end;
}

/* ── About blurb section ─────────────────────────────────────────── */
.about {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--dark);
    color: var(--gray);
    width: 100%;
    min-height: 100svh;
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

/* Section number */
.about::before {
    content: "02";
    position: absolute;
    top: 2em;
    left: 2em;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--main);
    text-transform: uppercase;
}

.about-left {
    padding: 6em 2em 4em;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3em;
}

.about-left p {
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
    font-weight: 400;
    text-transform: none;
    line-height: 1.65;
    color: var(--gray);
    letter-spacing: 0;
    width: 100%;
}

.about-right {
    padding: 6em 2em 4em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 2em;
}

.about-right-label {
    font-size: 0.65em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.about-right-heading {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--light);
}

.about-right-heading span {
    color: var(--main);
    font-style: italic;
    display: block;
}

/* The btn element — keep class name for JS, redesign visually */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    height: 3em;
    padding: 0 2em;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--light);
    font-family: "Funnel Sans", sans-serif;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, color 0.35s ease;
    width: auto;
    border-radius: 0;
    align-self: flex-start;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
    z-index: 0;
}

.btn:hover::before { transform: scaleX(1); }
.btn:hover { border-color: var(--main); }
.btn > * { position: relative; z-index: 1; }
.btn .svgIcon { transition: transform 0.4s ease; }
.btn:hover .svgIcon { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

/* ── Pavilions ───────────────────────────────────────────────────── */
.pavilions {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2em 0 1em 0;
    background-color: var(--light);
    color: var(--dark);
    gap: 0;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Section label */
.pavilions::before {
    content: "03 — Spotlight";
    position: absolute;
    top: 1em;
    left: 2em;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.3);
}

.pavilion-container {
    position: relative;
    width: 125%;
    height: 220px;
    display: flex;
    overflow: hidden;
    will-change: transform;
    margin-bottom: 1em;
}

.pavilion {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 0;
    will-change: transform;
    gap: 1em;
}

.pavilion .item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pavilion .item:last-child { border-right: none; }

.pavilion .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(20%);
}

.pavilion .item:hover img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

#pavilion-1 .pavilion,
#pavilion-3 .pavilion {
    left: -15%;
}

.item.with-text {
    flex: 1.5;
    background: var(--light);
    color: var(--dark);
}

.item h3 {
    text-transform: uppercase;
    font-size: clamp(2.5rem, 4vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--dark);
    line-height: 1;
}

/* ── Footer / Physics ────────────────────────────────────────────── */
.footer {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background-color: var(--adiacent);
    color: var(--gray);
    padding: 2em;
    overflow: hidden;
}

.footer h2 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    width: 60%;
}

.footer h2 span {
    color: var(--main);
    font-style: italic;
}

.footer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.footer-content * { pointer-events: auto; }

.object-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.object {
    position: relative;
    width: max-content;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--light);
    color: var(--dark);
    padding: 3em;
    border-radius: 0;
    cursor: grab;
    user-select: none;
    pointer-events: auto;
    z-index: 2;
    opacity: 0;
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.object p {
    margin: 0;
    pointer-events: none;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.object.physics-ready { position: absolute; }
.object:active { cursor: grabbing; }

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 0px; }

/* ── Lenis ───────────────────────────────────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 979px) {
    .menu-content { top: 25%; }
    .menu-img, .link-highlighter { display: none; }
    .menu-links-wrapper { flex-direction: column; gap: 0; }
    .menu-link a { font-size: 4em; letter-spacing: 0; }

    .hero-content { align-items: flex-start; flex-direction: column-reverse; gap: 1em; }
    .hero-content h2 { width: 100%; }

    .about { grid-template-columns: 1fr; }
    .about-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 5em 2em 3em; }
    .about-right { padding: 3em 2em 4em; }

    .pavilion-container { width: 250%; height: 150px; }
    #pavilion-2 .pavilion { left: -35%; }
    .item.with-text { flex: 1; }
    .item h3 { font-size: 2em; }

    .footer h2 { width: 75%; font-size: 2em; }
    .object { font-size: 0.8em; padding: 0.5em 1em; }
}

@media (max-width: 767px) {
    .menu-link a { font-size: 2em; }
    .warn-text p { font-size: 0.85em; width: 40vw; }
    .warn-text h6 { font-size: 0.7em; width: 40vw; }
    .switch { margin: 0; }
    h2 { font-size: 3em; }
    .footer h2 { width: 90%; font-size: 1.5em; }
    .item h3 { font-size: 1.2em; }
}

@media (max-width: 480px) {
    .warn-text p { font-size: 0.75em; }
    .warn-text h6 { font-size: 0.65em; }
    h2 { font-size: 2em; }
}