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

:root {
    --bg:     #0a0a0a;
    --ink:    #ffffff;
    --muted:  rgba(255, 255, 255, 0.55);
    --line:   rgba(255, 255, 255, 0.12);
    --lime:   #c9ff2d;
    --lime-deep: #a8dd15;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (hover: none), (pointer: coarse) {
    html, body { cursor: auto; }
}

.back-link {
    position: fixed;
    bottom: 4.5rem;
    left: 0.75rem;
    z-index: 1000;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    opacity: 0.85;
    cursor: none;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.back-link:hover { opacity: 1; transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    will-change: transform;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--lime);
    border-radius: 50%;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(201, 255, 45, 0.6);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor-ring.is-hover {
    width: 60px; height: 60px;
    border-color: var(--lime);
}
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================================
   LOADER — Clapperboard
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.clapper {
    position: relative;
    width: min(420px, 78vw);
    height: min(260px, 55vw);
    will-change: transform;
}

.clapper__arm {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 30%;
    background: var(--ink);
    transform-origin: 6% 100%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-top: 4px;
    will-change: transform;
}
.clapper__stripes {
    display: flex;
    width: 100%;
    height: 65%;
    overflow: hidden;
}
.clapper__stripes span {
    flex: 1;
    transform: skewX(-30deg);
    transform-origin: bottom;
}
.clapper__stripes span:nth-child(odd) { background: var(--ink); }
.clapper__stripes span:nth-child(even) { background: var(--bg); }

.clapper__body {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    border: 2px solid var(--ink);
    padding: 1.25rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    letter-spacing: 0.1em;
    gap: 0.2rem;
}
.clapper__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 0.35rem;
    font-size: 0.72rem;
}
.clapper__row:last-child { border-bottom: none; }
.clapper__row span { color: rgba(255, 255, 255, 0.5); }
.clapper__row b { color: var(--lime); font-weight: 600; }

.loader__countdown {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 9rem);
    color: var(--lime);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(201, 255, 45, 0.3);
}

.loader__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--muted);
}

/* =========================================================
   REEL SECTION
   ========================================================= */
.reel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    background: var(--bg);
}

.reel__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: saturate(1.1) contrast(1.05) brightness(0.7);
}

.reel__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 80%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.3) 30%, rgba(10, 10, 10, 0.85) 100%);
    pointer-events: none;
}

/* ---------- Top nav ---------- */
.topnav {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(10px);
}
.topnav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    will-change: transform;
    cursor: none;
}
.topnav__logo-mark { width: 36px; height: 36px; }
.topnav__logo-mark svg {
    width: 100%; height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.topnav__logo:hover .topnav__logo-mark svg { transform: rotate(360deg); }

.topnav__links {
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
}
.topnav__links a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0;
    cursor: none;
    will-change: transform;
}
.topnav__links a.is-active { color: var(--lime); }
.topnav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.topnav__links a.is-active::after,
.topnav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.topnav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.topnav__mute {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--ink);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    will-change: transform;
    transition: background 0.3s ease;
}
.topnav__mute:hover { background: rgba(255, 255, 255, 0.18); }
.topnav__mute svg { width: 16px; height: 16px; }

.topnav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lime);
    color: var(--bg);
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: none;
    will-change: transform;
    transition: background 0.3s;
}
.topnav__cta svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.topnav__cta:hover { background: var(--lime-deep); }
.topnav__cta:hover svg { transform: translateX(3px); }

/* ---------- Rails ---------- */
.rail {
    position: absolute;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.rail > * { pointer-events: auto; }
.rail--left {
    top: 6rem; left: 0.75rem; bottom: 5rem;
    gap: 2rem;
}
.rail--right {
    top: 6rem; right: 0.75rem; bottom: 5rem;
    gap: 1.5rem;
}

.rail__dots {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    gap: 4px;
}
.rail__dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink);
    cursor: none;
    will-change: transform;
    transition: background 0.3s ease;
}
.rail__dots span:hover { background: var(--lime); }

.rail__phone {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    font-family: 'JetBrains Mono', monospace;
    cursor: none;
    transition: color 0.3s ease;
}
.rail__phone:hover { color: var(--lime); }

.rail__scroll, .rail__follow {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--muted);
}
.rail__follow { margin-top: 0; }
.rail__scroll-label, .rail__follow-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.rail__scroll-line, .rail__follow-line {
    width: 1px;
    height: 70px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
    display: block;
    transform-origin: top;
}
.rail__scroll-arrow { font-size: 0.8rem; opacity: 0.6; }

.rail__social {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    align-items: center;
}
.rail__social-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: none;
    will-change: transform;
    transition: background 0.3s ease, color 0.3s ease;
}
.rail__social-icon svg { width: 15px; height: 15px; }
.rail__social-icon:hover { background: var(--lime); color: var(--bg); }

/* ---------- Hero content ---------- */
.hero {
    position: absolute;
    left: 5rem;
    top: 6rem;
    right: 5rem;
    bottom: 5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    pointer-events: none;
}
.hero > * { pointer-events: auto; }

.hero__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    padding-bottom: 0.4rem;
    max-width: max-content;
    cursor: none;
    will-change: transform;
}
.hero__eyebrow-text {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 0.2rem;
}
.hero__eyebrow-arrow {
    display: inline-block;
    font-size: 0.85em;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero__eyebrow:hover .hero__eyebrow-arrow {
    transform: translate(4px, -4px) rotate(3deg);
}

.hero__title {
    font-weight: 800;
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin: auto 0;
    max-width: 780px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}
.hero__char {
    display: inline-block;
    will-change: transform, color;
    transition: color 0.3s ease;
}
.hero__char.is-space { width: 0.25em; }

.hero__play {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--ink);
    max-width: max-content;
    cursor: none;
    will-change: transform;
}
.hero__play-scribble { width: 70px; height: 52px; }
.hero__play-scribble path {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
}
.hero__play-btn {
    position: relative;
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero__play-btn > svg:first-child {
    width: 100%; height: 100%;
    transition: transform 0.3s ease;
}
.hero__play-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}
.hero__play:hover .hero__play-btn > svg:first-child { transform: scale(1.08); }
.hero__play-label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.1;
}

/* Floating stat chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.chip {
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--ink);
    backdrop-filter: blur(10px);
    cursor: none;
    will-change: transform;
    transition: background 0.3s, border-color 0.3s;
}
.chip b { color: var(--lime); margin-right: 0.3rem; font-weight: 700; }
.chip:hover { background: rgba(201, 255, 45, 0.1); border-color: rgba(201, 255, 45, 0.4); }

/* ---------- Marquee ---------- */
.marquee {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 10;
    background: var(--lime);
    color: var(--bg);
    padding: 1.1rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; gap: 3rem; padding: 0 1.5rem; align-items: center; }
.marquee__item {
    font-size: clamp(1rem, 1.7vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: none;
}

/* ---------- Initial hidden states ---------- */
[data-magnetic], [data-rail], [data-social], [data-eyebrow],
[data-title-line] .hero__char, [data-play], [data-chips] {
    opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .topnav__links { display: none; }
    .hero { left: 4rem; right: 3.5rem; top: 5rem; }
}
@media (max-width: 768px) {
    .rail--right .rail__follow { display: none; }
    .rail--left .rail__phone { display: none; }
    .rail__social { gap: 0.4rem; }
    .rail__social-icon { width: 28px; height: 28px; }
    .hero { left: 3rem; right: 3rem; top: 5rem; bottom: 4.5rem; }
    .hero__title { font-size: clamp(2.3rem, 11vw, 6rem); }
    .topnav { padding: 0.75rem 1rem; gap: 0.75rem; }
    .topnav__logo-text { display: none; }
    .chips { gap: 0.4rem; }
    .chip { font-size: 0.65rem; padding: 0.3rem 0.7rem; }
    .clapper__body { font-size: 0.65rem; padding: 1rem; }
    .clapper__row { font-size: 0.6rem; }
}
@media (max-width: 480px) {
    .rail { gap: 1rem; }
    .rail--left { top: 5rem; }
    .rail--right { top: 5rem; }
    .rail__scroll, .rail__follow, .rail__dots { display: none; }
    .hero { left: 1.25rem; right: 1.25rem; }
    .topnav__mute { width: 32px; height: 32px; }
    .topnav__cta { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}
