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

:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --accent: #e8185d;
    --nav-h: 78px;
    --side-pad: 25px;
}

body {
    background: var(--bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

html:not(.can-scroll) {
    overflow: hidden;
    height: 100%;
}

html {
    scroll-behavior: smooth;
}


/* ─── PRELOADER ─────────────────────────────── */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.8s;
}

#preloader.preloader-hidden {
    transform: translateY(-100%);
    visibility: hidden;
}

.preloader-content {
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 18vw, 15rem);
    line-height: 1;
    display: flex;
    align-items: baseline;
    letter-spacing: -0.04em;
}

.preloader-content .percent {
    font-size: 0.35em;
    color: var(--accent);
    margin-left: 0.05em;
}

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 var(--side-pad);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

/* Glassmorphism on scroll */
.navbar.scrolled {
    background:var(--bg);
}

/* ─── LOGO ───────────────────────────────────── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 60px;
    height: 38px;
    object-fit: contain;
}

/* ─── RIGHT SIDE ─────────────────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}



/* ─── CTA BUTTON ─────────────────────────────── */
.btn-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border: 2px solid var(--text);
    border-radius: 43px;
    background: transparent;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-connect:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-1px);
}

.btn-connect:active {
    transform: translateY(0);
}

/* ─── BURGER ─────────────────────────────────── */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6.5px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.burger span {
    display: block;
    height: 2.167px;
    border-radius: 2px;
    background: var(--text);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        width 0.25s ease;
}

.burger span:nth-child(1) {
    width: 100%;
}

.burger span:nth-child(2) {
    width: 100%;
}

.burger span:nth-child(3) {
    width: 66.7%;
}


/* Burger → X animation */
.burger.open span:nth-child(1) {
    transform: translateY(8.7px) rotate(45deg);
    width: 100%;
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.open span:nth-child(3) {
    transform: translateY(-8.7px) rotate(-45deg);
    width: 100%;
}

/* ─── MOBILE MENU ────────────────────────────── */
.mobile-menu {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    padding: 40px var(--side-pad) 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 99;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    display: block;
    font-size: clamp(3rem, 14vw, 120px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    line-height: 01;
}

.mobile-menu a:hover {
    color: var(--accent);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .menu-cta {
    margin-top: 32px;
    align-self: flex-start;
}

.hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100vw;
    height: 100vh;
    padding: var(--side-pad);
}

.cut {
    width: 100%;
    max-width: 1400px;
    height: 2px;
    position: relative;
    overflow: hidden;
    opacity: 1;
    z-index: 100;
}

.cut::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
}

.title{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

h1{
    user-select: none;
  margin: 0;
  padding: 0;
  width: auto;
  letter-spacing: 0.5rem;
  line-height: 0.8;
  display: block;
    font-weight: 900;
    font-size: clamp(3rem, 14vw, 260px);
    width: max-content;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
    text-transform: uppercase;
    color: var(--accent);
}

.outline{

  font-family: "Montserrat", sans-serif;
  color: var(--bg);
  
    text-shadow:
        0.01em 0 0 var(--text),
       -0.01em 0 0 var(--text),
        0 0.01em 0 var(--text),
        0 -0.01em 0 var(--text),

        0.01em 0.01em 0 var(--text),
       -0.01em -0.01em 0 var(--text),
        0.01em -0.01em 0 var(--text),
       -0.01em 0.01em 0 var(--text);
}


.navbar, .hero h1, .hero h2, .side-links {
    opacity: 0;
}

.phone_subtitle{
    display: none;
}

h2{
font-size: clamp(0.8rem, 1.1vw, 28px);
font-weight: 600;
text-transform: uppercase;
max-width: 0;
flex-shrink: 1;
min-width: 0;
overflow: hidden;
white-space: nowrap;
opacity: 0;
}

.side-links{
    display:flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    left: 0;
    padding:var(--side-pad);
    width: 100vw;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.side-links.scrolled {
    opacity: 0;
    pointer-events: none;
}

.side-links.scrolled .link-left {
    transform: translateX(-100px);
    opacity: 0;
}

.side-links.scrolled .link-right {
    transform: translateX(100px);
    opacity: 0;
}


.side-links.scrolled .link-right div {
    height: 0;
    transition-delay: 0s;
}

.link-left{
    gap: 2px;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.link-left a img{
    width: 38px;
    stroke: none;
}
.link-right{
    display: flex;
    align-items: center;
    writing-mode: vertical-rl;
    gap: 10px;
    text-transform: uppercase;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.link-right div{
    background-color: var(--text);
    height: 0;
    width: 1px;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.loaded .link-right div {
    height: 20px;
    transition-delay: 0.4s;
}

/* ─── START ANIMATIONS ───────────────────────── */

/* Animation trigger */
.loaded .hero h1 {
    animation: heroReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loaded .hero h2 {
    animation: h2Push 2s cubic-bezier(0.18, 1.4, 0.3, 1) forwards;
}

.loaded .cut {
    opacity: 1;
}

.loaded .cut::after {
    animation: lineSweep 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.9s;
}

.loaded .side-links {
    animation: sideLinksReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.52s;
}

.loaded .navbar {
    animation: navReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.52s;
}

/* Staggered Hero Delays */
.loaded .hero .title:nth-child(1) h1 { animation-delay: 0.3s; }
.loaded .hero .title:nth-child(3) h1 { animation-delay: 0.6s; }

/* The Push Effect - both h2 appear at the same time for impact */
.loaded .hero .title:nth-child(1) h2 { animation-delay: 1s; }
.loaded .hero .title:nth-child(3) h2 { animation-delay: 1s; }

.loaded .hero .phone_subtitle { 
    animation: h2Push 4s cubic-bezier(0.18, 1.4, 0.3, 1) forwards;
    animation-delay: 1s; 
}


@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes h2Push {
    0% {
        max-width: 0;
        opacity: 0;
        margin: 0;
    }
    100% {
        max-width: 600px;
        opacity: 1;
        margin: 0 1.5rem;
    }
}

@keyframes lineSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes navReveal {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sideLinksReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ─── SCROLLING RIBBON ───────────────────────── */

.ribbon-section {
    padding: 8rem 0 20rem 0;
    overflow: hidden;
    width: 100%;
    background: var(--bg);
}

.scrolling-ribbon {
    background-color: var(--accent);
    padding: 1.2rem 0;
    width: 150vw;
    margin-left: -25vw;
    transform: rotate(-3deg);
    display: flex;
    align-items: center;
    user-select: none;
    pointer-events: none;
}

.ribbon-content {
    display: flex;
    white-space: nowrap;
    animation: ribbonScroll 40s linear infinite;
}

.ribbon-content span {
    font-size: clamp(2rem, 6vw, 4.7rem);
    font-weight: 900;
    color: var(--bg);
    padding: 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@keyframes ribbonScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



/* ─── RESPONSIVE ─────────────────────────────── */

/* Large Screens - subtle gap adjustment */
@media (max-width: 1400px) {
    .hero { gap: 2rem; }
}

/* Tablet & Mobile Stack (Early trigger to prevent horizontal overflow) */
@media (max-width: 1024px) {
    .hero { gap: 0.5rem; padding: 0 2vw; }
    .title{ 
        flex-direction: column;
    }
    .title h2{
        display: none;
    }
    .cut{
        display: none;
    }
    .phone_subtitle{
        display: block;
    }

    
    @keyframes h2Push {
        0% { max-width: 0; opacity: 0; margin: 0; }
        100% { max-width: 85vw; opacity: 1; margin: 0.5rem 0; }
    }
}

/* Small adjustments for small mobile */
@media (max-width: 480px) {
    .hero { gap: 1rem; }
    :root { --side-pad: 20px; }
}
