/* ============================================
   RUNTOE FONT
   Download RUNTOE from your font source and
   place RUNTOE.woff2 + RUNTOE.woff in ./fonts/
   ============================================ */



/* ============================================
   BASE
   ============================================ */
:root {
    --font-title:  'Georgia', serif;
    --font-body:   'Work Sans', sans-serif;
    --white:       #ffffff;
    --white-dim:   #ffffff;
    --white-ghost: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   FRAME — thin white border around viewport
   ============================================ */
.frame {
    position: fixed;
    inset: 12px;
    z-index: 9999;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 9998;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease;
}

body::after {
    bottom: 0;
    background: linear-gradient(to top, #000 50%, transparent 100%);
}

body.at-hero-top::after {
    opacity: 0;
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 52px;

    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}


.nav-logo {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.75));
}

/* First name sits left, last name sits right — equal flex so logo stays centred */
.nav-firstname,
.nav-lastname {
    flex: 1;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.nav-firstname { padding-left: 0; }
.nav-lastname  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
}

/* ---- Language switcher ---- */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.25s ease;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.lang-btn.active,
.lang-btn:hover {
    color: rgba(255, 255, 255, 1);
}

.lang-dot {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.6rem;
    line-height: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 44px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION STACKING
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background: #0a0a0a; /* Fallback color */
}

/* Both elements fill the screen and share a center origin for the zoom */
.hero-still,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

.hero-still {
    z-index: 1;
}

/* Video sits on top (z-index 2) */
.hero-video {
    z-index: 2;
    display: block;
}

/* ============================================
   REMAINING CSS (NAV, OVERLAY, CONTENT)
   ============================================ */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3; /* Above video, below all text/nav */
    background: rgba(0, 0, 0, 0.30);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    bottom: 26vh;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 40px;
    z-index: 10;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* TITLE */
.hero-title {
    font-family: var(--font-title);
    font-weight: normal;
    font-size: clamp(72px, 13vw, 180px);
    letter-spacing: 0.04em;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
    display: flex;
    justify-content: center;
    gap: 1.30em;
}

/* Each word animates independently */
.word-get,
.word-lost {
    display: inline-block;
    opacity: 0;
    will-change: opacity, transform;
}

.hero-title.animate .word-get {
    animation: fadeUp 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title.animate .word-lost {
    animation: fadeUp 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* NAME */
.hero-name {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: clamp(11px, 1.2vw, 16px);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 18px;
    opacity: 0;
    will-change: opacity, transform;
}

.hero-name.animate {
    animation: fadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle.animate {
    animation: fadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* SUBTITLE */
.hero-subtitle {
    margin-top: 10px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.5;
    letter-spacing: 0.03em;
    word-spacing: 0.1em;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 2px 18px rgba(60, 180, 175, 0.65), 0 2px 12px rgba(0, 0, 0, 0.55);
    opacity: 0;
}

/* ============================================
   SCROLL HINT
   ============================================ */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    z-index: 10;
}

.scroll-hint.animate {
    animation: fadeIn 1.5s ease forwards;
}

.scroll-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.184);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollPulse 2.4s ease-in-out infinite;
}

.scroll-chevrons {
    width: 22px;
    height: auto;
    display: block;
}

@keyframes scrollPulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255,255,255,0.18); opacity: 1; }
    50%  { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(255,255,255,0);  opacity: 0.75; }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255,255,255,0.18); opacity: 1; }
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section-about,
.section-contact {
    padding: 120px 52px;
}

.section-title {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
}

/* ============================================
   THE WORK SECTION
   ============================================ */
.section-work {
    padding: 120px 52px 160px;
}

.work-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
    gap: 20px;
}

.work-label {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.work-title {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: clamp(18px, 2.2vw, 34px);
    line-height: 1.55;
    letter-spacing: 0.04em;
    color: var(--white);
    max-width: 700px;
}

.work-grid {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.work-item {
    flex: 1;
    position: relative;
    aspect-ratio: 3/4;
    background-color: #111;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(60, 60, 60, 0.777);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    transition: background 0.4s ease;
}

.work-item:hover {
    border-color: rgba(255,255,255,1);
    transform: scale(1.02);
}

.work-item:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
}

/* Alternating stagger — 2nd and 4th drop down */
.work-item:nth-child(2) { margin-top: 80px; }
.work-item:nth-child(4) { margin-top: 80px; }

.work-item-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    z-index: 1;
}

/* ============================================
   ABOUT
   ============================================ */
.about-inner {
    max-width: 640px;
}

.section-about .section-title {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--white-ghost);
    padding-bottom: 24px;
}

.about-text {
    font-weight: 300;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 2;
    letter-spacing: 0.04em;
    color: var(--white-dim);
}

.about-text p {
    margin: 0 0 1.3em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-intro {
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 21px) !important;
    color: var(--white) !important;
    letter-spacing: 0.06em;
    margin-bottom: 1.6em !important;
}

.about-quote {
    text-align: center;
    font-style: italic;
    font-size: clamp(14px, 1.35vw, 18px) !important;
    color: var(--white) !important;
    letter-spacing: 0.1em;
    margin: 2em 0 !important;
    opacity: 0.85;
}

.about-email-line {
    margin-top: 0.4em !important;
}

.about-email-line a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}

.about-email-line a:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

.about-follow-label {
    font-weight: 300;
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 0.04em;
    color: var(--white-dim);
    margin-top: 2.4em;
    margin-bottom: 1.2em;
}

.about-socials {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.about-social-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: clamp(12px, 1vw, 14px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.about-social-item:hover {
    color: var(--white);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-contact .section-title {
    border-bottom: 1px solid var(--white-ghost);
    padding-bottom: 24px;
}

.contact-email {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 0.04em;
    color: var(--white-dim);
    text-decoration: none;
}

/* NAV SOCIAL ICONS */
.nav-firstname {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-firstname-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    padding-right: 20px;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.nav-social-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* CONTACT SECTION SOCIAL ICONS */
.contact-follow-label {
    font-weight: 300;
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 0.04em;
    color: var(--white-dim);
    margin: 0;
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: clamp(12px, 1vw, 14px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.contact-social-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 0 52px 36px;
    text-align: center;
}

.site-footer-text {
    border-top: 1px solid var(--white-ghost);
    padding-top: 28px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* MOBILE MENU SOCIAL */
.mobile-social-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.mobile-social-link:hover {
    opacity: 1;
}

.mobile-menu-email {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--white);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.mobile-menu-email:hover {
    opacity: 1;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.loader-logo {
    width: 72px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    animation: loaderFadeInOut 2s ease-in-out forwards;
}

.loader-presents {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    opacity: 0;
    animation: loaderFadeInOut 2s ease-in-out forwards;
}

@keyframes loaderFadeInOut {
    0%   { opacity: 0; }
    30%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
    .nav {
        padding: 30px 40px;
    }

    /* Hero — iPad Pro portrait: higher position, wider gap, bigger subtitle */
    .hero-content {
        bottom: 36vh;
    }

    .hero-title {
        gap: 2.5em;
    }

    .hero-subtitle {
        font-size: clamp(14px, 1.6vw, 18px);
        white-space: normal;
        text-align: center;
    }

    .section-work {
        padding: 100px 40px 130px;
    }

    .section-about,
    .section-contact {
        padding: 100px 40px;
    }

    /* Soften the stagger a bit */
    .work-item:nth-child(2),
    .work-item:nth-child(4) {
        margin-top: 50px;
    }
}

/* ============================================
   HAMBURGER BUTTON
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 10001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
    .frame {
        inset: 8px;
    }

    /* Nav — logo centred, hamburger right */
    .nav {
        padding: 24px 28px;
    }

    .nav-firstname {
        display: none;
    }

    .nav-lastname > span:first-child {
        display: none;
    }

    .nav-lang {
        display: none;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        margin-top: 10px;
    }

    /* Hero — iPad: row layout, bigger gap, pushed higher */
    .hero-content {
        bottom: 38vh;
        padding: 0 28px;
    }

    .hero-title {
        gap: 2.8em;
    }

    .hero-subtitle {
        padding-left: 0;
        text-align: center;
        white-space: normal;
        font-size: clamp(13px, 1.8vw, 17px);
    }

    .scroll-hint {
        bottom: 28px;
    }

    /* Work */
    .section-work {
        padding: 80px 24px 100px;
    }

    .work-header {
        margin-bottom: 48px;
        gap: 14px;
    }

    .work-grid {
        flex-wrap: wrap;
        gap: 8px;
    }

    .work-item {
        flex: 0 0 calc(50% - 4px);
    }

    /* Remove vertical stagger — too cramped */
    .work-item:nth-child(2),
    .work-item:nth-child(4) {
        margin-top: 0;
    }

    /* Sections */
    .section-about,
    .section-contact {
        padding: 80px 24px;
    }
}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
    .nav {
        padding: 20px 20px;
    }

    /* Mobile: row layout, smaller font so a slight gap fits */
    .hero-title {
        font-size: clamp(72px, 19vw, 100px);
        gap: 0.15em;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    /* Single-column work grid on very small screens */
    .work-item {
        flex: 0 0 100%;
    }

    .section-work {
        padding: 70px 20px 90px;
    }

    .section-about,
    .section-contact {
        padding: 70px 20px;
    }
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 44px 60px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.mobile-lang-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}

.mobile-menu-link {
    font-family: var(--font-title);
    font-weight: lighter;
    font-size: clamp(26px, 7vw, 38px);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 0.03em;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--white);
}

.mobile-menu-close {
    position: absolute;
    top: 28px;
    right: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    padding: 4px;
    opacity: 0.5;
    z-index: 10002;
    transition: opacity 0.2s ease;
}

.mobile-menu-close:hover {
    opacity: 1;
}
