/* ============================================
   FONT FACE DECLARATIONS
   ============================================ */
@font-face {
    font-family: 'Test American Grotesk';
    src: url('TestAmericanGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Test American Grotesk';
    src: url('TestAmericanGrotesk-Thin.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-link-hover: rgba(255, 255, 255, 0.7);
    --font-size-desktop: 38px;
    --font-size-mobile: 14px;
    --spacing-desktop: 23px;
    --spacing-mobile: 15px;
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Test American Grotesk', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
    font-size: var(--font-size-desktop);
    font-weight: normal;
    text-transform: lowercase;
    padding: var(--spacing-desktop);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    text-transform: lowercase;
}

p {
    margin-bottom: 0;
}

.good-day-text {
    font-style: normal !important;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity var(--transition-speed) var(--transition-ease);
    cursor: pointer;
}

a:hover,
a:focus {
    opacity: 0.7;
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

/* Good day typed logo on info, contact – mobile only (hidden on desktop) */
.page-wordmark-wrap {
    display: none !important;
}

@media screen and (min-width: 769px) {
    .page-wordmark-wrap {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */
.home-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

html:has(.home-page) {
    overflow: hidden;
}

/* Mobile scroll flow: hidden on desktop */
.mobile-scroll-flow,
.mobile-footer,
.mobile-flow-wordmark-wrap {
    display: none;
}

/* Splash / title page */
.title-page {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background: #000000;
}

.title-page.title-page-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.title-page-logo {
    position: relative;
    z-index: 3;
    max-width: 140px;
    width: 40%;
    height: auto;
    display: block;
    pointer-events: none;
}

.home-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 24px;
}

.home-page .bottom-left,
.home-page .bottom-right-nav {
    position: static;
}

.bottom-left {
    position: absolute;
    bottom: var(--spacing-desktop);
    left: var(--spacing-desktop);
}

.bottom-left p {
    margin: 0;
}

.slogan-italic {
    font-size: 0.6em;
    color: var(--color-text);
    font-weight: normal;
    font-style: normal !important;
}

.bottom-right-nav {
    position: absolute;
    bottom: var(--spacing-desktop);
    right: var(--spacing-desktop);
    display: flex;
    gap: 30px;
    font-size: 0.6em;
}


/* Home page: two-channel media flush to top */
.home-page .media-channels {
    margin-top: calc(-1 * var(--spacing-desktop));
}

.media-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 calc(-1 * var(--spacing-desktop));
    flex: 1;
    min-height: 0;
}

.media-channel {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.media-channel-video .channel-video-front {
    z-index: 1;
}
.media-channel-video .channel-video-back {
    z-index: 0;
}
.media-channel-video .channel-video,
.media-channel-photo .channel-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-channel-photo .channel-photo {
    object-fit: contain;
    object-position: center center;
}

/* ============================================
   WHY PAGE STYLES
   ============================================ */
.why-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: calc(100% - calc(var(--spacing-desktop) * 2));
    padding: 0 var(--spacing-desktop);
    box-sizing: border-box;
}

.page-title-italic {
    font-size: var(--font-size-desktop);
    margin-bottom: 40px;
}

.why-content p {
    margin-bottom: 30px;
    line-height: 1.4;
}

.why-content p:last-child {
    margin-bottom: 0;
}

.underline-text {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: center;
}

.contact-person {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-title {
    font-size: var(--font-size-desktop);
    margin: 0;
}

.contact-person a {
    font-size: var(--font-size-desktop);
}

/* ============================================
   LOGO STYLES
   ============================================ */
.logo-center {
    width: 28px;
    min-width: 0;
    max-width: 28px;
    height: auto;
    display: block;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

.logo-center:hover {
    opacity: 0.8;
}

.logo-link {
    position: absolute;
    bottom: var(--spacing-desktop);
    right: 53px;
    display: block;
}

.logo-bottom-right {
    width: 120px;
    min-width: 0;
    max-width: 120px;
    height: auto;
    display: block;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

.logo-bottom-right:hover {
    opacity: 0.8;
}

.why-page .logo-link {
    right: 45px;
}

.why-page .logo-bottom-right {
    width: 24px;
    max-width: 24px;
}

/* ============================================
   BACK BUTTON STYLES
   ============================================ */
.back-button,
.back-button-top {
    position: absolute;
    top: var(--spacing-desktop);
    right: 53px;
    z-index: 10;
}

.back-button a,
.back-button-top a {
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
    line-height: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Animations removed to prevent layout shift on page load */

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
/* Small favicon at top on mobile (home + info) */
.mobile-top-logo {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-top-logo {
        display: block;
        position: absolute;
        top: var(--spacing-mobile);
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: auto;
        z-index: 5;
    }

    /* Mobile scroll flow: hide desktop home content, show single-page flow */
    .home-page .title-page,
    .home-page .media-channels,
    .home-page .home-footer,
    .home-page .mobile-top-logo {
        display: none !important;
    }

    .mobile-scroll-flow {
        display: block;
        position: fixed;
        inset: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        z-index: 1;
    }

    .mobile-scroll-flow .scroll-section {
        min-height: 100vh;
        height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        position: relative;
    }

    .scroll-section-video:first-of-type {
        scroll-snap-stop: normal;
    }

    .scroll-section-splash {
        background: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-splash-logo {
        max-width: 140px;
        width: 40%;
        height: auto;
    }

    .scroll-section-video {
        background: var(--color-bg);
    }

    .mobile-flow-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .scroll-section-video .desktop-flow-video {
        display: none;
    }

    .scroll-section-info {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-mobile);
    }

    .mobile-info-content {
        max-width: 100%;
        font-size: var(--font-size-mobile);
    }

    .mobile-info-content p {
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .mobile-info-content p:last-child {
        margin-bottom: 0;
    }

    .scroll-section-photos {
        background: var(--color-bg);
        padding: 0;
    }

    .mobile-photos-channels {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 4px;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
    }

    .mobile-photo-channel {
        position: relative;
        overflow: hidden;
        min-height: 0;
    }

    .mobile-photo-channel .mobile-flow-photo {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

    .mobile-flow-wordmark-wrap {
        display: block;
        position: fixed;
        top: var(--spacing-mobile);
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
    }

    .mobile-flow-wordmark-wrap .mobile-flow-wordmark {
        height: 12px;
        width: auto;
        object-fit: contain;
    }

    .page-wordmark-wrap {
        display: block !important;
        position: fixed;
        top: var(--spacing-mobile);
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
    }

    .page-wordmark-wrap .page-wordmark {
        height: 12px;
        width: auto;
        object-fit: contain;
    }

    .mobile-flow-wordmark-wrap.hidden-on-splash {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-flow-wordmark-wrap:not(.hidden-on-splash) {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .scroll-section-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-mobile);
    }

    .mobile-contact-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
        font-size: var(--font-size-mobile);
        padding: 0 var(--spacing-mobile);
    }

    .mobile-contact-content .contact-person {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-contact-content .contact-title {
        font-size: var(--font-size-mobile);
        margin: 0;
    }

    .mobile-contact-content .logo-center {
        width: 12px;
    }

    .mobile-footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: var(--spacing-mobile) var(--spacing-mobile) max(8px, env(safe-area-inset-bottom));
        z-index: 10;
        pointer-events: none;
    }

    .mobile-footer .bottom-left,
    .mobile-footer .bottom-right-nav {
        position: static;
        pointer-events: auto;
    }

    .mobile-footer.hidden-on-splash {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-footer:not(.hidden-on-splash) {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body {
        font-size: var(--font-size-mobile);
        padding: var(--spacing-mobile);
    }

    .bottom-left {
        bottom: 40px;
        left: var(--spacing-mobile);
    }

    .slogan-italic {
        font-size: 0.6em;
        font-style: normal;
    }

    .bottom-right-nav {
        bottom: 40px;
        right: var(--spacing-mobile);
        gap: 20px;
        font-size: 0.6em;
    }

    .home-page .media-channels {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 4px;
        min-height: 0;
        margin: 0 calc(-1 * var(--spacing-mobile));
        margin-top: calc(-1 * var(--spacing-mobile));
        /* Cap height so footer (slogan + nav) stays visible without scroll */
        max-height: calc(100vh - 72px);
    }

    .home-page .media-channel {
        min-height: 0;
    }

    .home-page .media-channels {
        margin-bottom: 0;
    }

    .home-page .home-footer {
        margin-top: 0;
        padding-top: 8px;
    }

    .why-container {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        padding: 0 var(--spacing-mobile);
        font-size: var(--font-size-mobile);
        max-width: calc(100% - calc(var(--spacing-mobile) * 2));
    }

    .page-title-italic {
        font-size: var(--font-size-mobile);
        margin-bottom: 20px;
    }

    .why-content p {
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .contact-grid {
        flex-direction: column;
        gap: 30px;
        font-size: var(--font-size-mobile);
        left: var(--spacing-mobile);
        right: var(--spacing-mobile);
        transform: translateY(-50%);
        width: calc(100% - calc(var(--spacing-mobile) * 2));
        max-width: calc(100% - calc(var(--spacing-mobile) * 2));
    }

    .contact-title,
    .contact-person a {
        font-size: var(--font-size-mobile);
    }

    .logo-center {
        width: 12px;
    }

    .logo-link {
        bottom: var(--spacing-mobile);
        right: 30px;
    }

    .logo-bottom-right {
        width: 10px;
    }

    .why-page .logo-link {
        right: 45px;
    }

    .why-page .logo-bottom-right {
        width: 10px;
    }

    .back-button,
    .back-button-top {
        top: var(--spacing-mobile);
        right: 30px;
    }

    .back-button a,
    .back-button-top a {
        font-size: 18px;
    }
}

/* ============================================
   DESKTOP SCROLL FLOW (same as mobile: splash → video → info → photos → contact)
   ============================================ */
@media screen and (min-width: 769px) {
    .home-page .title-page,
    .home-page .media-channels,
    .home-page .home-footer,
    .home-page .mobile-top-logo {
        display: none !important;
    }

    .mobile-scroll-flow {
        display: block;
        position: fixed;
        inset: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        z-index: 1;
    }

    .mobile-scroll-flow .scroll-section {
        min-height: 100vh;
        height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        position: relative;
    }

    .scroll-section-splash {
        background: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-scroll-flow .mobile-splash-logo {
        max-width: 200px;
        width: 30%;
        height: auto;
    }

    .scroll-section-video {
        background: var(--color-bg);
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px;
    }

    .scroll-section-video .mobile-flow-video {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    .scroll-section-video .desktop-flow-video {
        display: block;
    }

    .scroll-section-info {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-desktop);
    }

    .mobile-scroll-flow .mobile-info-content {
        width: 100%;
        max-width: none;
        font-size: var(--font-size-desktop);
        text-align: left;
        line-height: 1.4;
    }

    .mobile-scroll-flow .mobile-info-content p {
        margin-bottom: 32px;
    }

    .mobile-scroll-flow .mobile-info-content p:last-child {
        margin-bottom: 0;
    }

    .scroll-section-photos {
        background: var(--color-bg);
        padding: 0;
        display: block;
    }

    .mobile-scroll-flow .mobile-photos-channels {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 4px;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
    }

    .mobile-scroll-flow .mobile-photo-channel {
        position: relative;
        overflow: hidden;
        min-height: 0;
    }

    .mobile-scroll-flow .mobile-photo-channel .mobile-flow-photo {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

    .scroll-section-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-desktop);
        width: 100%;
    }

    .mobile-scroll-flow .mobile-contact-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 60px;
        width: max-content;
        max-width: 100%;
        font-size: var(--font-size-desktop);
        text-align: center;
    }

    .mobile-scroll-flow .mobile-contact-content .contact-person {
        align-items: center;
        text-align: center;
    }

    .mobile-scroll-flow .mobile-contact-content .logo-center {
        width: 28px;
        flex-shrink: 0;
        display: block;
    }

    .mobile-footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: var(--spacing-desktop);
        z-index: 10;
    }

    .mobile-footer.hidden-on-splash {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-footer:not(.hidden-on-splash) {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-footer .bottom-left,
    .mobile-footer .bottom-right-nav {
        position: static;
    }

    .mobile-flow-wordmark-wrap {
        display: block;
        position: fixed;
        top: calc(var(--spacing-desktop) - 10px);
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
    }

    .mobile-flow-wordmark-wrap .mobile-flow-wordmark {
        height: 0.6em;
        width: auto;
        object-fit: contain;
    }

    .mobile-flow-wordmark-wrap.hidden-on-splash {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-flow-wordmark-wrap:not(.hidden-on-splash) {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
