/* ============================================================
   TX-6 — CSS
   Fonts: Satoshi (local / system fallback) + IBM Plex Mono
   ============================================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* ─── Typography helpers ─────────────────────────────────── */
.font-satoshi {
    font-family: "Satoshi", system-ui, sans-serif;
}

.font-mono {
    font-family: "IBM Plex Mono", "IBMPlexMono-Light", system-ui, monospace;
    font-weight: 300;
    letter-spacing: -0.04em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100px;
    padding: 16px;
    padding-top: 32px;
    z-index: 100;
}

/* ── Center label (layer 1) ── */
.nav-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Satoshi", system-ui, sans-serif;
    font-weight: 300;
    font-variation-settings: "wght" 300;
    font-size: 24px;
    line-height: 30px;
    color: #ffffff;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* ── Left group (layer 2) — flex-1, items left ── */
.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 42px;
    padding: 16px;
    position: relative;
    z-index: 10;
}

.nav-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-work-svg {
    height: 6vh;
    width: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-work-svg:hover {
    filter: invert(0.5);
    transform: scale(0.99);
}

.nav-tx6-svg {
    height: 10vh;
    width: auto;
    display: block;
    margin-bottom: 5px;
}

/* ── Right group (layer 3) — flex-1, items right ── */
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
}

.nav-blender-rhino {
    height: 5vh;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: visible;
    align-content: flex-end;
    padding: 16px;
    /* let image overflow below if taller than viewport */
}

/* H1 — behind the image, 50px from top */
.hero-title {
    position: absolute;
    top: 50px;
    left: 49%;
    transform: translateX(-50%);
    z-index: 0;
    /* behind the image */

    font-family: "Satoshi", system-ui, sans-serif;
    font-weight: 500;
    font-variation-settings: "wght" 500;
    font-size: clamp(120px, 20.83vw, 250px);
    line-height: 1.2;
    white-space: nowrap;

    /* gradient text */
}

/* Hero image — fills full width, positioned absolute */
.hero-image {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    /* in front of h1 */
    display: block;
}

/* Hero content row — 700px or 70vh, baseline, split left/right */
.hero-content {
    position: relative;
    width: 100%;
    height: 50vh;
    z-index: 2;
    /* above image */

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px 16px 32px;
    overflow: hidden;
    padding-bottom: 10%;
}

.wrapall {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.rectangle {
    width: 6px;
    height: 12px;
    background-color: #ff9f0f;
}

.hero-text-left,
.hero-text-right {
    font-family: "IBM Plex Mono", "IBMPlexMono-Light", system-ui, monospace;
    font-weight: 300;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.04em;
    color: #ffffff;
    width: 282px;
    flex-shrink: 0;
}

.hero-text-right {
    text-align: right;
}

/* ============================================================
   INFO SECTION
   ============================================================ */
.info-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    overflow: hidden;
    padding-top: 20%;
}

/* ── Text block (label + description) ── */
.info-text-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 32px;
}

.info-label {
    font-family: "IBM Plex Mono", "IBMPlexMono-Light", system-ui, monospace;
    font-weight: 400;
    font-size: 32px;
    line-height: 30px;
    letter-spacing: -0.04em;
    color: #989898;
    width: 282px;
}

.info-desc {
    font-family: "IBM Plex Mono", "IBMPlexMono-Light", system-ui, monospace;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 28px;
    letter-spacing: -0.04em;
    color: #ffffff;
    width: 600px;
    padding-bottom: 1%;
}

.boxbtn {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    width: 180px;
    height: 50px;
    gap: 10px;
}


.boxbtn img {
    width: 43px;
    height: auto;
}

/* ── Front row (image + text side-by-side) ── */
.front-row {
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 5%;
    height: fit-content;
}

/* Left image — fixed 701×1249 px */
.front-image-wrap {
    flex-shrink: 0;
    width: 45vw;
    height: fit-content;
    overflow: visible;
}

.front-image {
    width: 70vw;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Right text panel */
.front-text-wrap {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 25%;
}

.front-text {
    font-family: "IBM Plex Mono", "IBMPlexMono-Light", system-ui, monospace;
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
    color: #ffffff;
    text-align: center;
    width: 300px;
    flex-shrink: 0;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
    background-color: #000;
}

.video-title {
    font-family: "IBM Plex Mono", "IBMPlexMono-Light", system-ui, monospace;
    font-weight: 300;
    font-size: 28px;
    line-height: 30px;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.main-video {
    width: 100%;
    flex: 1;
    object-fit: cover;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* ============================================================
   IMAGE SEQUENCE SECTION
   ============================================================ */
.seq-section {
    width: 100%;
    height: 100vh;
    background-color: #000;
}

.seq-canvas {
    /* The canvas stays centered & fills the viewport while pinned */
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: contain;
    will-change: transform;
    transform: translateZ(0);
}

.render-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 16px;
    background-color: #000;
}

.render-title {
    font-family: "IBM Plex Mono", "IBMPlexMono-Light", system-ui, monospace;
    font-weight: 300;
    font-size: 28px;
    line-height: 30px;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 20px;
    margin-top: 0;
    /* text-transform: lowercase; */
}

.renderwrapper {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    /* touching */
    padding: 16px 0;
}

.renderwrapper img {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1 / 1;
    /* Force square aspect ratio */
    height: auto;
    object-fit: cover;
    border-top: 1px solid #ffffff8d;
    border-bottom: 1px solid #ffffff8d;
    border-left: 1px solid #ffffff8d;
}

.renderwrapper img:last-child {
    border-right: 1px solid #ffffff8d;
}

/* ============================================================
   HERO TITLE — split spans for GSAP stagger
   ============================================================ */
.hero-title {
    display: inline-block;
    /* allow h1 to wrap spans inline */
}

.title-tx,
.title-dash6 {
    display: inline-block;
    background-image: linear-gradient(124.11deg in oklab,
            oklab(100% 0 0) 16.77%,
            oklab(65.2% 0 0) 51.25%,
            oklab(100% 0 0) 85.73%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}



/* ============================================================
   MOBILE RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Tablet: 1024px ── */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(80px, 14vw, 180px);
    }

    .info-desc {
        width: 90%;
        font-size: 1rem;
    }

    .front-text {
        font-size: 16px;
        width: 220px;
    }

    .front-image {
        width: 55vw;
    }

}

/* ── Mobile: 768px ── */
@media (max-width: 768px) {

    /* Navbar — hide tx6-svg and blender-rhino, keep work + brand */
    .nav-tx6-svg,
    .nav-right {
        display: none;
    }

    .navbar {
        height: 64px;
        padding: 12px 16px;
        padding-top: 20px;
    }

    .nav-brand {
        font-size: 14px;
    }

    .nav-work-svg {
        height: 4.5vh;
    }

    /* Hero Title */
    .hero-title {
        font-size: clamp(56px, 18vw, 120px);
        top: 60px;
    }

    .hero-image {
        top: 0%;
    }

    /* Hero content text — stack vertically, smaller font */
    .hero-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        padding-bottom: 150px;
        height: auto;
        justify-content: flex-end;
    }

    .hero-text-left,
    .hero-text-right {
        width: 100%;
        font-size: 12px;
        line-height: 16px;
    }

    .hero-text-right {
        text-align: left;
    }

    /* Info section */
    .info-text-block {
        padding: 16px;
    }

    .info-label {
        font-size: 24px;
    }

    .info-desc {
        width: 100%;
        font-size: 0.9rem;
        line-height: 22px;
    }

    /* Front row — stack vertically on mobile */
    .front-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .front-image-wrap {
        width: 100%;
    }

    .front-image {
        width: 100%;
    }

    .front-text-wrap {
        padding-bottom: 0;
        padding: 24px 16px;
        justify-content: flex-start;
    }

    .front-text {
        font-size: 14px;
        width: 100%;
        text-align: left;
    }

    /* Image Sequence reduction */
    .seq-section,
    .seq-canvas {
        height: 100vh;
    }

    /* Video section reduction */
    .video-section {
        height: 60vh;
        padding: 40px 16px;
    }

    .video-title {
        font-size: 20px;
        text-align: left;
    }

    /* Render section reduction */
    .render-section {
        height: 60vh;
        padding: 40px 12px;
    }

    .render-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

}

/* ── Small mobile: 480px ── */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(44px, 16vw, 80px);
    }

    .hero-image {
        top: 6%;
    }

    .renderwrapper {
        flex-direction: column;
        gap: 0;
    }

    .renderwrapper img {
        width: 100%;
        max-width: 100%;
        flex: none;
        border-left: 1px solid #ffffff8d;
        border-right: 1px solid #ffffff8d;
        border-bottom: none;
    }

    .renderwrapper img:last-child {
        border-bottom: 1px solid #ffffff8d;
    }

    .render-section {
        height: auto;
        padding-bottom: 40px;
    }

}

/* ───────────────────────────────────────────────
   PAGE LOADER
─────────────────────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.page-loader__inner {
    width: 200px;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.page-loader__bar {
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #b5b5b5;
    animation: loaderSlide 1.1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes loaderSlide {
    0% {
        left: -100%;
    }

    60% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

/* ============================================================
   FEATURES + PROCESS (added)
   One accent (#ff9f0f), mono for labels, Satoshi for headings.
   ============================================================ */
.features,
.process {
    width: 100%;
    padding: 120px 32px;
    background-color: #000;
}

.section-title {
    font-family: "IBM Plex Mono", system-ui, monospace;
    font-weight: 300;
    font-size: 28px;
    line-height: 30px;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
}

/* Features: 3-col grid, hairline top border per cell */
.feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
}

.feature-grid li {
    border-top: 1px solid #ffffff8d;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-no {
    font-family: "IBM Plex Mono", system-ui, monospace;
    font-size: 14px;
    color: #ff9f0f;
}

.feature-grid h3,
.process-list h3 {
    font-family: "Satoshi", system-ui, sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.feature-grid p,
.process-list p {
    font-family: "IBM Plex Mono", system-ui, monospace;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #b5b5b5;
    max-width: 36ch;
}

/* Process: single stacked list, number on the left (different layout from features) */
.process-list {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

.process-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 24px;
    row-gap: 8px;
    padding: 28px 0;
    border-top: 1px solid #ffffff8d;
}

.process-list li::before {
    content: counter(step, decimal-leading-zero);
    grid-row: span 2;
    font-family: "IBM Plex Mono", system-ui, monospace;
    font-size: 14px;
    color: #ff9f0f;
    padding-top: 10px;
}

.process-list li:last-child {
    border-bottom: 1px solid #ffffff8d;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .features,
    .process {
        padding: 72px 16px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 32px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-list li {
        grid-template-columns: 48px 1fr;
        column-gap: 12px;
    }
}

/* Page now ends on the renders, so give them room at the bottom */
.render-section {
    padding-bottom: 64px;
}

@media (prefers-reduced-motion: reduce) {
    .page-loader__bar {
        animation: none;
    }
}
