/* =========================================================
   VION Society — Main Stylesheet
   Typography: vh-based fluid scaling so text is always
   proportional to the slide height (each slide = 100vh).
   Font: Helvetica Neue Bold / Regular / Thin / Italic
   ========================================================= */

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

:root {
    --font-hv: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif;
    --vion-black:  #000000;
    --vion-white:  #ffffff;
    --vion-accent: #22c55e;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Padding uses vh so it scales with the slide height */
    --pad-x:       8vw;
    --pad-top:     8vh;
    --body-indent: 7vw;

    /* ── Fluid type scale (vh-based, clamped) ─────────────
       Each slide IS the viewport, so sizing against vh keeps
       text proportional regardless of screen size/orientation.
       Clamp prevents extremes on tiny or very large screens.  */
    --fs-hero-title:  clamp(44px, 10vh, 140px);    /* "VION" fallback */
    --fs-hero-tag:    clamp(9px,  1.2vh, 14px);     /* "BEYOND DESTINATION" */
    --fs-title:       clamp(18px, 3.4vh, 38px);     /* section headings */
    --fs-body:        clamp(12px, 1.55vh, 17px);    /* body paragraphs */
    --fs-label:       clamp(11px, 1.35vh, 15px);    /* bold inline labels */
    --fs-list:        clamp(10px, 1.25vh, 14px);    /* client list items */
    --fs-caption:     clamp(9px,  1.1vh,  13px);    /* italic bottom caption */
    --fs-subtitle:    clamp(10px, 1.2vh,  13px);    /* gallery "click to view" */
    --fs-vid-title:   clamp(10px, 1.2vh,  13px);    /* video card titles */
    --fs-vid-link:    clamp(9px,  1.1vh,  12px);    /* video card links */
    --fs-corner:      clamp(10px, 1.3vh,  14px);    /* "Our First Hello." */
    --fs-closing:     clamp(14px, 2.2vh,  24px);    /* closing message */
    --fs-contact:     clamp(10px, 1.25vh, 14px);    /* contact lines */
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--vion-black);
    color: var(--vion-white);
    font-family: var(--font-hv);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Full-Page Sections
   ========================================================= */

.vion-section {
    position: relative;
    overflow: hidden;
}

.vion-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 1.4s var(--ease-out);
    will-change: transform;
}

.fp-section.active .vion-bg {
    transform: scale(1);
}

.vion-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* =========================================================
   Content Wrappers
   ========================================================= */

/* Hero — centred */
.vion-content--hero {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--pad-top) var(--pad-x);
}

/* Text slides (2, 3, 4, 6) — title anchored top-left */
.vion-content--text {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--pad-top) var(--pad-x) 6vh var(--pad-x);
    justify-content: flex-start;
    overflow: hidden;
}

/* Video grid slide (5) */
.vion-content--grid {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--pad-top) var(--pad-x) 5vh var(--pad-x);
    justify-content: flex-start;
    overflow: hidden;
}

/* Contact slide (7) — closing centred, info bottom-left */
.vion-content--contact {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--pad-top) var(--pad-x);
}

/* =========================================================
   Slide 1 — Hero
   ========================================================= */

.vion-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vion-logo-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    filter: brightness(1.05);
    user-select: none;
    pointer-events: none;
    /* Logo width stays proportional to viewport width */
    max-width: clamp(200px, 32vw, 500px);
}

/* Text fallback when no logo is set */
.vion-hero-title {
    font-family: var(--font-hv);
    font-size: var(--fs-hero-title);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--vion-white);
    margin-bottom: 1.2vh;
}

.vion-hero-tagline {
    font-family: var(--font-hv);
    font-size: var(--fs-hero-tag);
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

/* Corner label — bottom-right */
.vion-corner-label {
    position: absolute;
    bottom: 4.5vh;
    right: var(--pad-x);
    font-family: var(--font-hv);
    font-size: var(--fs-corner);
    font-weight: 700;
    color: var(--vion-white);
    z-index: 20;
}

/* Scroll chevron */
.vion-scroll-hint {
    position: absolute;
    bottom: 4.5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.vion-scroll-hint span {
    display: block;
    width: 1.4vh;
    height: 1.4vh;
    border-right: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) translate(0,0); }
    50%       { opacity: 0.8; transform: rotate(45deg) translate(5px,5px); }
}

/* =========================================================
   Text Slides — Slides 2, 3, 4, 6
   ========================================================= */

/* Section heading — Bold, top-left */
.vion-section-title {
    font-family: var(--font-hv);
    font-size: var(--fs-title);
    font-weight: 700;
    color: var(--vion-white);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 3vh;
}

/* Body text wrapper — indented from the title */
.vion-body-wrap {
    padding-left: var(--body-indent);
    max-width: 75vw;
}

/* Body paragraph — Regular */
.vion-body-text {
    font-family: var(--font-hv);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.82;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.2vh;
}

.vion-body-text:last-child { margin-bottom: 0; }

/* Gap between sections on slide 6 */
.vion-section-gap { margin-top: 5vh; }

/* Bold inline label */
.vion-bold-label {
    font-family: var(--font-hv);
    font-size: var(--fs-label);
    font-weight: 700;
    color: var(--vion-white);
    margin-bottom: 1vh;
}

/* Client list — Thin */
.vion-client-list {
    list-style: none;
    padding-left: 1.5vw;
}

.vion-client-list li {
    font-family: var(--font-hv);
    font-size: var(--fs-list);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

/* Bottom italic caption (Slide 4) */
.vion-bottom-caption {
    position: absolute;
    bottom: 4.5vh;
    right: var(--pad-x);
    font-family: var(--font-hv);
    font-size: var(--fs-caption);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.48);
    z-index: 20;
    max-width: 38vw;
    text-align: right;
    line-height: 1.6;
}

/* =========================================================
   Slide 5 — Video Gallery
   ========================================================= */

.vion-gallery-header {
    margin-bottom: 3.5vh;
}

/* Gallery section title inherits --fs-title from above */

.vion-gallery-subtitle {
    font-family: var(--font-hv);
    font-size: var(--fs-subtitle);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.6vh;
    letter-spacing: 0.01em;
}

.vion-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* Gap scales with viewport — wider on large screens */
    gap: clamp(14px, 2.5vh, 36px) clamp(16px, 3vw, 52px);
    max-width: 78vw;
    width: 100%;
}

.vion-video-card {
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
}

.vion-video-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #181818;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vion-video-thumb:hover {
    transform: scale(1.025);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.vion-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vion-video-thumb--blank { background: #ffffff; }

.vion-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.28s ease;
    opacity: 0;
}

.vion-video-thumb:hover .vion-play-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.vion-play-overlay svg {
    width: 2.8vh;
    height: 2.8vh;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Video card title — Bold */
.vion-video-title {
    font-family: var(--font-hv);
    font-size: var(--fs-vid-title);
    font-weight: 700;
    color: var(--vion-white);
    line-height: 1.35;
}

/* Video link — accent green */
.vion-video-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-hv);
    font-size: var(--fs-vid-link);
    font-weight: 400;
    color: var(--vion-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.vion-video-link:hover { opacity: 0.7; text-decoration: underline; }

.vion-video-link svg {
    width: 1.2vh;
    height: 1.2vh;
    flex-shrink: 0;
}

/* =========================================================
   Slide 7 — Contact
   ========================================================= */

.vion-closing-text {
    font-family: var(--font-hv);
    font-size: var(--fs-closing);
    font-weight: 400;
    color: var(--vion-white);
    letter-spacing: 0.005em;
    text-align: center;
}

.vion-contact-block {
    position: absolute;
    bottom: 4.5vh;
    left: var(--pad-x);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.vion-social-row {
    display: flex;
    gap: 0.7vw;
    margin-bottom: 1vh;
}

.vion-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2vh;
    height: 2.2vh;
    color: var(--vion-white);
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.2s;
}

.vion-social-icon:hover { opacity: 0.4; }

.vion-social-icon svg {
    width: 100%;
    height: 100%;
}

/* Contact lines — Thin */
.vion-contact-line {
    font-family: var(--font-hv);
    font-size: var(--fs-contact);
    font-weight: 100;
    color: var(--vion-white);
    line-height: 1.65;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vion-contact-line svg {
    width: 1.3vh;
    height: 1.3vh;
    flex-shrink: 0;
}

/* =========================================================
   Navigation Dots
   ========================================================= */

#vion-nav-dots {
    position: fixed;
    right: 1.5vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

#vion-nav-dots ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2vh;
}

#vion-nav-dots button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5vh 0.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vion-nav-dots button span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.3s, transform 0.3s;
}

#vion-nav-dots button.active span,
#vion-nav-dots button:hover span {
    background: #fff;
    transform: scale(1.6);
}

/* =========================================================
   Entrance Animations
   ========================================================= */

.animate-in,
.animate-in-delay,
.animate-in-delay2 {
    opacity: 0;
    transform: translateY(2.5vh);
    transition: opacity 0.9s var(--ease-out),
                transform 0.9s var(--ease-out);
}

.fp-section.active .animate-in        { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.fp-section.active .animate-in-delay  { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }
.fp-section.active .animate-in-delay2 { opacity: 1; transform: translateY(0); transition-delay: 0.48s; }

/* =========================================================
   fullPage.js overrides
   ========================================================= */

#fp-nav       { display: none !important; }
.fp-watermark { display: none !important; }

/* =========================================================
   Responsive — Portrait / narrow screens
   Override grid to 2-col and loosen padding on very small heights
   ========================================================= */

/* Landscape phone / small tablet */
@media (max-width: 768px) {
    :root {
        --pad-x:       6vw;
        --pad-top:     7vh;
        --body-indent: 5vw;
    }

    .vion-body-wrap { max-width: 90vw; }

    .vion-video-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90vw;
        gap: 2vh 3vw;
    }

    .vion-bottom-caption { max-width: 50vw; }
}

/* Portrait phone */
@media (max-width: 480px) {
    :root {
        --pad-x:       5vw;
        --pad-top:     6vh;
        --body-indent: 3vw;
    }

    .vion-video-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 96vw;
        gap: 1.8vh 2.5vw;
    }

    .vion-bottom-caption { display: none; }
    .vion-body-wrap { max-width: 95vw; }
}

/* Very low viewport height (landscape phone) */
@media (max-height: 500px) {
    :root {
        --pad-top: 5vh;
        /* Allow slightly tighter floors on very short screens */
        --fs-title:   clamp(15px, 3.2vh, 30px);
        --fs-body:    clamp(11px, 1.5vh, 15px);
        --fs-closing: clamp(13px, 2vh, 20px);
    }

    .vion-section-gap { margin-top: 3vh; }

    .vion-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5vh 2vw;
    }
}

/* Very small screen (360px and below) */
@media (max-width: 360px) {
    .vion-video-grid { gap: 1.5vh 2vw; }
}
