/* =============================
   TOKENS
============================= */
:root {
    --bg: #F5F3EE;
    --ink: #1A1917;
    --ink-muted: #7A7872;
    --accent: #E8490F;
    --white: #ffffff;
    --border: rgba(26, 25, 23, 0.12);
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'DM Sans', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img,
video {
    display: block;
    width: 100%;
}

.link-text a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
.link-text a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* =============================
   NAV
============================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4vw;
    transition: background 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(245, 243, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.04em;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-burger.open span:first-child {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-burger.open span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--ink);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* =============================
   BUTTON
============================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border: 1px solid var(--ink);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s;
    width: fit-content;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* =============================
   SECTION LABEL
============================= */
.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
}

/* =============================
   HERO
============================= */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4vw 5rem;

    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 4rem;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-right {
    display: flex;
    align-items: start;
    justify-content: flex-end;
    min-height: 300px;
}

.hero-video {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 4px;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
}

.hero-headline em {
    font-style: italic;
    color: var(--accent);
}

.hero-scroll-hint {
    position: absolute;
    right: 4vw;
    bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    writing-mode: vertical-rl;
}

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

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Mobile hero */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Video below text on mobile */
    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        justify-content: flex-start;
    }

    .hero-video {
        max-width: 100%;
    }

    .hero-scroll-hint {
        display: none;
    }
}

.hero {
    padding: 6rem 10vw;
}

/* =============================
   ANIMATIONS GRID
============================= */
.animations {
    padding: 8rem 4vw;
    border-top: 1px solid var(--border);
}

.anim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.anim-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    display: block;
}

.anim-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.anim-item:hover .anim-media {
    transform: scale(1.04);
}

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

/* Vertical 9x16 grid */
.anim-grid-vertical {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.anim-item-v {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 5;
    background: #1a1a1a;
    display: block;
}

.anim-item-v .anim-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.anim-item-v:hover .anim-media {
    transform: scale(1.04);
}

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

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

/* =============================
   FEATURED WORKS
============================= */
.featured {
    padding: 6rem 4vw;
    border-top: 1px solid var(--border);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.featured-item {
    display: block;
}

.featured-media-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
}

.featured-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.featured-item:hover .featured-media {
    transform: scale(1.03);
}

.featured-meta {
    margin-top: 1rem;
}

.featured-cat {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.35rem;
}

.featured-title {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
    line-height: 1.25;
    transition: color 0.2s;
}

.featured-item:hover .featured-title {
    color: var(--accent);
}

@media (max-width: 640px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* =============================
   WEB PROJECTS — ACCORDION
============================= */
.webprojects {
    padding: 6rem 4vw;
    border-top: 1px solid var(--border);
}

.accordion {
    margin-top: 1rem;
}

.acc-item {
    border-top: 1px solid var(--border);
}

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

.acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    transition: opacity 0.2s;
}

.acc-trigger:hover {
    opacity: 0.65;
}

.acc-trigger-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.acc-num {
    font-size: 0.75rem;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
    min-width: 2rem;
}

.acc-cat {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.3rem;
}

.acc-title {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
}

/* Plus/minus icon */
.acc-icon {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

.acc-icon::before,
.acc-icon::after {
    content: '';
    position: absolute;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.acc-icon::before {
    width: 18px;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.acc-icon::after {
    width: 1px;
    height: 18px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.acc-trigger[aria-expanded="true"] .acc-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Accordion body */
.acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
}

.acc-body.open {
    grid-template-rows: 1fr;
}

.acc-content {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 0;
    transition: padding-bottom 0.4s var(--ease);
}

.acc-body.open .acc-content {
    padding-bottom: 2.5rem;
}

.acc-img-placeholder {
    aspect-ratio: 16 / 9;
    background: #d4d0c8;
    border-radius: 4px;
}

.acc-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.acc-text p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.acc-link {
    font-size: 0.85rem;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    width: fit-content;
    transition: opacity 0.2s;
}

.acc-link:hover {
    opacity: 0.7;
}

@media (max-width: 640px) {
    .acc-trigger-left {
        gap: 1rem;
    }

    .acc-num {
        display: none;
    }

    .acc-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =============================
   ABOUT
============================= */
.about {
    padding: 8rem 4vw;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
    align-items: center;
    margin-top: 1rem;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.about-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.4;
    margin-bottom: 0;
}

.about-text p:not(.about-lead) {
    color: var(--ink-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-placeholder {
        aspect-ratio: 3/2;
        max-height: 300px;
    }
}

/* =============================
   CONTACT
============================= */
.contact {
    padding: 8rem 4vw;
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
}

.contact-inner .section-label {
    display: inline-block;
}

.contact-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    border-bottom: 1px solid var(--accent);
    color: var(--ink);
    padding-bottom: 2px;
    margin-bottom: 3rem;
    transition: color 0.2s;
}

.contact-email:hover {
    color: var(--accent);
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.contact-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* =============================
   FOOTER
============================= */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4vw;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.footer-top {
    color: var(--ink-muted);
    transition: color 0.2s;
}

.footer-top:hover {
    color: var(--accent);
}

/* =============================
   REVEAL ANIMATION
============================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.hero-left .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.hero-left .reveal:nth-child(2) {
    transition-delay: 0.25s;
}

.hero-left .reveal:nth-child(3) {
    transition-delay: 0.4s;
}

.hero-right.reveal {
    transition-delay: 0.3s;
}

/* =============================
   NAV MOBILE
============================= */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .hero {
        padding-bottom: 4rem;
    }

    .animations,
    .featured,
    .webprojects,
    .about,
    .contact {
        padding: 5rem 4vw;
    }
}
/* FEATURED — LOGO */
.featured-logo-wrap { margin-bottom: 0.75rem; }
.featured-logo-placeholder {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* FEATURED — ATTRIBUTION */
.featured-attribution {
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
}

/* ABOUT — SUB TITLE */
.about-sub {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 400;
    color: var(--ink-muted);
    margin-top: 0;
    margin-bottom: 2rem;
}

/* ACCORDION — LOGO */
.acc-logo-wrap { margin-bottom: 0.75rem; }
.acc-logo-img {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}
.acc-logo-placeholder {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}