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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #111111;
    background: #F4F2EE;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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


/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1824px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }
}


/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

/* ---------- Full-width state (top of page) ---------- */
.header-full {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease;
}

.header-full-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.site-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #111111;
    transition: opacity 0.2s ease;
}

.site-logo:hover {
    opacity: 0.6;
}

.site-nav {
    display: flex;
    gap: 40px;
}

.site-nav a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #7c7c7c;
    transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.5, 0, 0.2, 1);
    display: inline-block;
    margin-top: 4px;
}

.site-nav a:hover {
    opacity: 0.5;
}

/* Clock in the full header */
.site-clock {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #111111;
    font-variant-numeric: tabular-nums;
}

.clock-tz {
    color: #888888;
    margin-left: 4px;
}

.header-full .site-clock {
    transition: opacity 0.3s ease;
}

/* Pinned clock (fades in when collapsed) */
.site-clock--pinned {
    position: absolute;
    top: 28px;
    right: 40px;
    opacity: 0;
    transition: opacity 0.4s ease 0.15s;
    pointer-events: auto;
}

.site-header.is-compact .site-clock--pinned {
    opacity: 1;
}

/* ---------- Collapsed panel — single white surface ---------- */
.header-panel {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #FFFFFF;
    border-radius: 0px;
    min-width: 340px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition:
        opacity 0.4s ease,
        box-shadow 0.3s ease;
    z-index: 1000;
}

.site-header.is-compact .header-panel {
    opacity: 1;
    pointer-events: auto;
}

.site-header.menu-open .header-panel {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Header row inside the panel */
.header-panel-row {
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 32px;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: padding-right 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.header-panel-row:hover {
    padding-right: 36px;
}

.header-panel-row:focus-visible {
    outline: none;
}

.compact-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #111111;
    white-space: nowrap;
}

.compact-page {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #7c7c7c;
    white-space: nowrap;
    margin-left: auto;
    padding-right: 32px;
}

.compact-dash {
    font-size: 12px;
    font-weight: 400;
    color: #7c7c7c;
    line-height: 1;
}

/* Menu — sits inside the panel, below the row */
.header-panel-menu {
    padding: 8px 28px 32px 28px;
    border-top: 1px solid #F0EEE9;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.3s ease,
        max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-panel-menu[hidden] {
    display: none;
}

.header-panel.menu-open .header-panel-menu {
    opacity: 1;
    max-height: 600px;
}

.header-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
    padding-top: 16px;
}

.header-menu-nav a {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #111111;
    letter-spacing: -0.4px;
    line-height: 1.5;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.header-menu-nav a:hover {
    opacity: 0.5;
}

.header-menu-channels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid #F0EEE9;
}

.channels-label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 8px;
}

.header-menu-channels a {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #111111;
    transition: opacity 0.2s ease;
}

.header-menu-channels a:hover {
    opacity: 0.5;
}

/* ---------- Scrolled state: hide the full header ---------- */
.site-header.is-compact .header-full {
    opacity: 0;
    pointer-events: none;
}

.site-header.is-compact .site-nav a {
    opacity: 0;
    transform: translateX(-280px) scale(0.8);
}

.site-header.is-compact .header-full .site-clock {
    opacity: 0;
}

/* ---------- Backdrop ---------- */
.header-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(244, 242, 238, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 998;
}

.site-header.menu-open .header-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .header-full {
        padding: 20px 24px;
    }
    .site-nav {
        display: none;
    }
    .header-full .site-clock {
        display: none;
    }

    .site-clock--pinned {
        top: 20px;
        right: 24px;
    }

    .header-panel {
        top: 12px;
        left: 16px;
        min-width: 260px;
    }

    .header-panel-row {
        padding: 16px 20px;
        gap: 20px;
    }

    .compact-logo {
        font-size: 15px;
    }
    .compact-page {
        font-size: 11px;
        letter-spacing: 1.2px;
        padding-right: 20px;
    }

    .header-panel-menu {
        padding: 8px 20px 24px 20px;
    }

    .header-menu-nav a {
        font-size: 20px;
    }
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-portrait {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-portrait img {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
}

.hero-copy {
    position: absolute;
    bottom: 60px;
    left: 40px;
    z-index: 2;
    max-width: 380px;
}

.hero-greeting {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.hero-role {
    font-size: 16px;
    font-weight: 400;
    color: #888888;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .hero-copy {
        bottom: 32px;
        left: 24px;
        right: 24px;
        max-width: none;
    }
    .hero-greeting {
        font-size: 16px;
    }
    .hero-role {
        font-size: 14px;
    }
}


/* ============================================
   INTRO STATEMENT
   ============================================ */
.intro {
    padding: 40px 0 396px 0;
}

.intro-text {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.8px;
    color: #111111;
    max-width: 1100px;
}

.intro-text .muted {
    color: #999999;
    font-weight: 400;
}

.intro-text strong {
    font-weight: 800;
}

@media (max-width: 900px) {
    .intro {
        padding: 100px 0 80px 0;
    }
    .intro-text {
        font-size: 22px;
        letter-spacing: -0.5px;
    }
}


/* ============================================
   PROJECTS
   ============================================ */
.project {
    padding: 80px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: stretch;
}

.project-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.project-eyebrow {
    font-size: 24px;
    font-weight: 400;
    color: #111111;
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.project-name {
    font-size: 32px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -1px;
    margin-bottom: 240px;
}

.project-description {
    font-size: 14px;
    line-height: 1.55;
    color: #888888;
    margin-bottom: 40px;
}

.project-description p {
    margin-bottom: 16px;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-tags {
    display: flex;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #E5E2DD;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #111111;
    background: transparent;
}

.project-visual {
    position: relative;
}

.project-visual img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.view-all-projects {
    display: block;
    text-align: right;
    margin-top: 32px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #111111;
    transition: opacity 0.2s ease;
}

.view-all-projects:hover {
    opacity: 0.5;
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .project-name {
        margin-bottom: 40px;
        font-size: 26px;
    }
    .project-eyebrow {
        font-size: 18px;
        margin-bottom: 24px;
    }
    .project {
        padding: 56px 0;
    }
}


/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 120px 0 160px 0;
    border-top: 1px solid #E5E2DD;
}

.about-statement {
    padding: 60px 0;
    border-bottom: 1px solid #E5E2DD;
}

.about-statement p {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.8px;
    color: #111111;
    max-width: 1100px;
}

.about-statement .muted {
    color: #999999;
    font-weight: 400;
}

.about-founded {
    padding: 60px 0;
    display: flex;
    justify-content: flex-end;
}

.about-founded p {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.5px;
    color: #111111;
    max-width: 900px;
    text-align: left;
}

.about-founded .muted {
    color: #999999;
    font-weight: 400;
}

.about-founded strong {
    font-weight: 800;
}

@media (max-width: 900px) {
    .about {
        padding: 80px 0 100px 0;
    }
    .about-statement p,
    .about-founded p {
        font-size: 22px;
        letter-spacing: -0.5px;
    }
    .about-statement,
    .about-founded {
        padding: 40px 0;
    }
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 60px 40px 40px 40px;
    border-top: 1px solid #E5E2DD;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: end;
}

.footer-contact-card {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 32px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 340px;
}

.footer-contact-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #999999;
    text-transform: uppercase;
}

.footer-contact-info {
    font-size: 14px;
    line-height: 1.6;
    color: #111111;
    font-weight: 500;
}

.footer-center {
    text-align: center;
}

.footer-name {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.footer-copy {
    font-size: 12px;
    color: #999999;
    font-weight: 500;
}

.footer-legal {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
}

.footer-legal a {
    font-size: 12px;
    color: #999999;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #111111;
}

@media (max-width: 900px) {
    .site-footer {
        padding: 40px 24px 24px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: stretch;
    }
    .footer-contact-card {
        max-width: none;
    }
    .footer-center {
        text-align: left;
        order: 2;
    }
    .footer-legal {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ============================================
   WORK — Sticky left, scrolling right
   ============================================ */

.work-sticky {
    padding: 80px 0;
}

.work-sticky-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
}

/* ---------- LEFT — Sticky column ---------- */
.work-sticky-left {
    position: sticky;
    /* Top offset = header height + breathing room */
    top: 120px;
    padding: 20px 0;
    align-self: start;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-sticky-eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #111111;
    letter-spacing: -0.3px;
    margin-bottom: 40px;
}

.work-sticky-name {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: auto;
    /* Smooth swap when JS changes it */
    transition: opacity 0.25s ease;
}

.work-sticky-name.is-swapping {
    opacity: 0;
}

.work-sticky-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #888888;
    margin-bottom: 40px;
    max-width: 340px;
    transition: opacity 0.25s ease;
}

.work-sticky-desc.is-swapping {
    opacity: 0;
}

.work-sticky-tags {
    display: flex;
    gap: 8px;
    transition: opacity 0.25s ease;
}

.work-sticky-tags.is-swapping {
    opacity: 0;
}

/* ---------- RIGHT — Scrolling panels ---------- */
.work-sticky-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 80px;
}

.work-panel {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    /* Ensure the JS measurement is clean */
    min-height: 1px;
}

.work-panel-visual {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #F4F2EE;
}

.work-panel-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- CTA panel at the end ---------- */
.work-panel-cta {
    /* Give it enough height that the sticky column has room to end cleanly */
    padding: 80px 0 120px 0;
}

.work-cta-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 80px 60px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.work-cta-eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 24px;
}

.work-cta-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #111111;
    line-height: 1.15;
    letter-spacing: -1.4px;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.work-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
}

.work-cta-link:hover {
    opacity: 0.5;
}

.work-cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.work-cta-link:hover .work-cta-arrow {
    transform: translateX(4px);
}

/* ---------- Mobile — stack everything ---------- */
@media (max-width: 900px) {
    .work-sticky {
        padding: 40px 0;
    }

    .work-sticky-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .work-sticky-left {
        position: static;
        min-height: auto;
        padding: 0;
        margin-bottom: 24px;
    }

    .work-sticky-name {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .work-sticky-eyebrow {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .work-sticky-desc {
        margin-bottom: 20px;
        max-width: none;
    }

    .work-panel-cta {
        padding: 40px 0 60px 0;
    }

    .work-cta-card {
        padding: 48px 32px;
    }

    .work-cta-heading {
        font-size: 26px;
        letter-spacing: -0.8px;
    }
}