/* =========================================================
   LumaForge — Editorial B&W
   ========================================================= */

:root {
    --bg: #f4f2ee;
    --ink: #0a0a0a;
    --ink-2: #1a1a1a;
    --muted: #6b6b6b;
    --line: rgba(10, 10, 10, 0.14);
    --paper: #ffffff;
    --accent: #0a0a0a;
    --ease: cubic-bezier(.7, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --serif: 'Fraunces', 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, system-ui, sans-serif;
}

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

html,
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: none;
}

em {
    font-style: italic;
    font-family: var(--serif);
    font-weight: 400;
}

::selection {
    background: var(--ink);
    color: var(--bg);
}

/* Custom cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 70px;
    height: 70px;
    background: var(--ink);
}

.cursor.hover~.cursor-dot {
    opacity: 0;
}

@media (max-width:900px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-dot {
        display: none;
    }

    button,
    a {
        cursor: pointer;
    }
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    transition: transform 1.1s var(--ease) .2s;
}

.loader.done {
    transform: translateY(-101%);
}

.loader__inner {
    font-size: clamp(80px, 18vw, 260px);
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    letter-spacing: -.04em;
}

.loader__pct {
    font-size: .25em;
    margin-top: .3em;
    margin-left: .05em;
}

.loader__bar {
    position: absolute;
    bottom: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(255, 255, 255, .2);
}

.loader__bar span {
    display: block;
    height: 100%;
    background: var(--bg);
    width: 0;
    transition: width .1s linear;
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(20px, 4vw, 60px);
    mix-blend-mode: difference;
    color: #fff;
    transition: transform .6s var(--ease);
}

.nav.hide {
    transform: translateY(-110%);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.logo-mark {
    display: inline-block;
    animation: spin 12s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.logo-mark.big {
    font-size: clamp(60px, 10vw, 140px);
    animation-duration: 24s;
}

.nav__links {
    display: flex;
    gap: 36px;
    font-size: 14px;
}

.nav__links a {
    position: relative;
    padding: 6px 0;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width .5s var(--ease-out);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease);
}

.nav__cta .arrow {
    transition: transform .4s var(--ease);
}

.nav__cta:hover {
    background: #fff;
    color: #000;
}

.nav__cta:hover .arrow {
    transform: translateX(4px);
}

.nav__burger {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    transition: transform .4s var(--ease), opacity .3s;
}

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

.nav__burger.open span:nth-child(2) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--bg);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-family: var(--serif);
    font-size: 48px;
    transform: translateY(-100%);
    transition: transform .8s var(--ease);
}

.mobile-menu.open {
    transform: translateY(0);
}

@media(max-width:900px) {

    .nav__links,
    .nav__cta {
        display: none;
    }

    .nav__burger {
        display: flex;
    }
}

/* MAIN */
main {
    position: relative;
}

section {
    padding: clamp(90px, 12vh, 150px) clamp(20px, 4vw, 60px);
    position: relative;
}

/* HERO */
.hero {
    min-height: 100vh;
    padding-top: clamp(140px, 18vh, 200px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hero__meta {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__meta .dot {
    font-size: 6px;
    color: var(--ink);
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(60px, 14vw, 220px);
    line-height: .92;
    letter-spacing: -.04em;
    font-weight: 300;
    margin: 6vh 0;
}

.hero__title .line {
    display: block;
    overflow: hidden;
}

.hero__title .word {
    display: block;
    transform: translateY(110%);
}

.hero__title em {
    font-weight: 400;
}

.hero__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.hero__lede {
    max-width: 480px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.5;
    color: var(--ink-2);
}

.hero__scroll {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--muted);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}

.scroll-line span {
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateX(-100%);
    animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Marquee */
.marquee {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 24px 0;
    margin-left: calc(-1 * clamp(20px, 4vw, 60px));
    margin-right: calc(-1 * clamp(20px, 4vw, 60px));
}

.marquee__track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 56px);
    font-style: italic;
    font-weight: 400;
    animation: marquee 30s linear infinite;
}

.marquee__track span {
    flex-shrink: 0;
}

@keyframes marquee {
    to {
        transform: translateX(-33.333%);
    }
}

/* INTRO */
.intro {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    align-items: start;
}

.intro__num {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.intro__num span {
    display: block;
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.intro__text {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 56px);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -.02em;
}

@media(max-width:780px) {
    .intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Section heads */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    flex-wrap: wrap;
}

.section-num {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -.03em;
    font-weight: 300;
    max-width: 900px;
}

/* WORK / Projects */
.projects {
    display: flex;
    flex-direction: column;
}

.project {
    display: grid;
    grid-template-columns: 80px 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    position: relative;
    cursor: none;
    transition: padding .5s var(--ease);
}

.project:last-child {
    border-bottom: 1px solid var(--line);
}

.project__index {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--muted);
}

.project__media {
    height: 140px;
    background: var(--paper);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: transform .8s var(--ease);
}

.project__visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Visual variants */
.m-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0/40px 40px,
        linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0/40px 40px;
}

.m-orb {
    width: 80px;
    height: 80px;
    background: var(--ink);
    border-radius: 50%;
    animation: orb 4s ease-in-out infinite;
}

@keyframes orb {
    50% {
        transform: translateX(40px) scale(.8);
    }
}

.c-card {
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--bg);
    border: 1px solid var(--ink);
    left: 10%;
    top: 20%;
    transition: transform .8s var(--ease);
}

.c-card--2 {
    left: 18%;
    top: 24%;
    background: var(--paper);
}

.c-card--3 {
    left: 26%;
    top: 28%;
    background: var(--ink);
}

.f-line {
    position: absolute;
    left: 15%;
    right: 15%;
    height: 1px;
    background: var(--ink);
}

.f-line:nth-child(1) {
    top: 35%;
    width: 70%;
}

.f-line:nth-child(2) {
    top: 50%;
    width: 50%;
}

.f-line:nth-child(3) {
    top: 65%;
    width: 60%;
}

.f-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--ink);
    border-radius: 50%;
    top: 48%;
    left: 62%;
    animation: fdot 2s ease-in-out infinite;
}

@keyframes fdot {
    50% {
        transform: translateY(15px);
    }
}

.s-bar {
    position: absolute;
    bottom: 25%;
    width: 14%;
    background: var(--ink);
}

.s-bar:nth-child(1) {
    left: 20%;
    height: 30%;
    animation: sbar 2s ease-in-out infinite;
}

.s-bar:nth-child(2) {
    left: 36%;
    height: 50%;
    animation: sbar 2s ease-in-out .2s infinite;
}

.s-bar:nth-child(3) {
    left: 52%;
    height: 40%;
    animation: sbar 2s ease-in-out .4s infinite;
}

.s-bar:nth-child(4) {
    left: 68%;
    height: 60%;
    animation: sbar 2s ease-in-out .6s infinite;
}

@keyframes sbar {
    50% {
        transform: scaleY(.6);
        transform-origin: bottom;
    }
}

.project:hover .project__media {
    transform: scale(1.02);
}

.project:hover .c-card {
    transform: translateX(8px);
}

.project:hover .c-card--2 {
    transform: translateX(-4px);
}

.project:hover .c-card--3 {
    transform: translateX(12px);
}

.project__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.project__info h3 {
    font-family: var(--serif);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 400;
    letter-spacing: -.02em;
}

.project__tag {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.project__desc {
    font-size: 14px;
    color: var(--ink-2);
    max-width: 340px;
    line-height: 1.5;
    margin-top: 4px;
}

.project__year {
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--serif);
    font-style: italic;
    color: var(--muted);
}

@media(max-width:780px) {
    .project {
        grid-template-columns: 40px 1fr;
        gap: 20px;
    }

    .project__media {
        display: none;
    }
}

/* STATEMENT */
.statement {
    padding-top: clamp(120px, 16vh, 200px) !important;
    padding-bottom: clamp(120px, 16vh, 200px) !important;
}

.statement__text {
    font-family: var(--serif);
    font-size: clamp(60px, 12vw, 180px);
    line-height: .9;
    font-weight: 300;
    letter-spacing: -.04em;
}

.statement__text .line {
    display: block;
    overflow: hidden;
}

.statement__text .line span {
    display: block;
}

/* PROCESS */
.process__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.process__item {
    padding: 40px 30px 60px;
    border-right: 1px solid var(--line);
    position: relative;
    transition: background .5s var(--ease), color .5s var(--ease);
}

.process__item:last-child {
    border-right: none;
}

.process__num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--muted);
}

.process__item h3 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    margin: 80px 0 16px;
    letter-spacing: -.02em;
}

.process__item p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
}

.process__item:hover {
    background: var(--ink);
    color: var(--bg);
}

.process__item:hover .process__num,
.process__item:hover p {
    color: rgba(255, 255, 255, .7);
}

@media(max-width:900px) {
    .process__list {
        grid-template-columns: 1fr 1fr;
    }

    .process__item:nth-child(2) {
        border-right: none;
    }

    .process__item:nth-child(1),
    .process__item:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }
}

@media(max-width:560px) {
    .process__list {
        grid-template-columns: 1fr;
    }

    .process__item {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
}

/* STUDIO */
.studio__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.studio__left .section-num {
    display: block;
    margin-bottom: 24px;
}

.studio__right p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 32px;
    color: var(--ink-2);
}

.studio__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--serif);
    font-size: 20px;
}

.studio__list li {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.studio__list span {
    color: var(--muted);
}

@media(max-width:780px) {
    .studio__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* QUOTE */
.quote {
    padding-top: clamp(90px, 12vh, 150px) !important;
    padding-bottom: clamp(90px, 12vh, 150px) !important;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.quote blockquote {
    max-width: 1000px;
    margin: 0 auto;
}

.quote p {
    font-family: var(--serif);
    font-size: clamp(28px, 4.5vw, 64px);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -.02em;
}

.quote cite {
    display: block;
    margin-top: 32px;
    font-style: normal;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* CTA */
.cta {
    text-align: center;
    padding-top: clamp(120px, 16vh, 200px) !important;
    padding-bottom: clamp(90px, 12vh, 150px) !important;
}

.cta__eyebrow {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px;
}

.cta__title {
    font-family: var(--serif);
    font-size: clamp(56px, 11vw, 180px);
    line-height: .9;
    letter-spacing: -.04em;
    font-weight: 300;
    margin-bottom: 60px;
}

.cta__title .line {
    display: block;
    overflow: hidden;
}

.cta__title .line span {
    display: block;
}

.cta__btn {
    position: relative;
    display: inline-block;
    padding: 24px 50px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 28px);
    font-style: italic;
    font-weight: 400;
    isolation: isolate;
}

.cta__btn-bg {
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform .6s var(--ease-out);
    z-index: -1;
    border-radius: inherit;
}

.cta__btn-text {
    position: relative;
    transition: color .4s var(--ease) .1s;
    display: inline-block;
}

.cta__btn:hover .cta__btn-bg {
    transform: translateY(0);
}

.cta__btn:hover .cta__btn-text {
    color: var(--bg);
}

.cta__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 120px auto 0;
    border-top: 1px solid var(--line);
    padding-top: 30px;
    text-align: left;
}

.cta__meta span {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.cta__meta p {
    font-family: var(--serif);
    font-size: 18px;
}

.cta__meta a {
    border-bottom: 1px solid var(--line);
}

@media(max-width:680px) {
    .cta__meta {
        grid-template-columns: 1fr;
    }
}

/* FOOTER */
.footer {
    padding: 60px clamp(20px, 4vw, 60px) 30px;
    border-top: 1px solid var(--line);
}

.footer__top {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer__big {
    font-family: var(--serif);
    font-size: clamp(80px, 16vw, 260px);
    line-height: .9;
    font-weight: 300;
    letter-spacing: -.04em;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* Reveal utilities */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].in {
    opacity: 1;
    transform: none;
}

.reveal-text {
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
}

.reveal-text.in {
    opacity: 1;
}

[data-process] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

[data-process].in {
    opacity: 1;
    transform: none;
}

[data-project] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-project].in {
    opacity: 1;
    transform: none;
}