/* =============================================
   FLUX Portfolio — Shared Styles
   ============================================= */

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Inter', sans-serif; background: #fff; color: #000; overflow-x: hidden;
    position: relative;
}
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0; bottom: 0;
    width: 1px;
    background: #000;
    z-index: 1;
    pointer-events: none;
}
body::before { left: 60px; }
body::after { right: 60px; }

/* ---- NAVIGATION ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: #FCFCFA;
    border-bottom: 1px solid #000;
    display: flex; align-items: center;
}
.nav-items {
    width: 100%;
    padding: 18px 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: block; flex-shrink: 0; }
.nav-logo img { width: 106px; height: 36px; display: block; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 600; font-size: 16px; letter-spacing: -0.64px;
    color: #000; text-decoration: none;
    padding: 9px 22px; border-radius: 60px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    white-space: nowrap;
}
.nav-link:hover { border-color: rgba(0,0,0,0.18); }
.nav-link.active { opacity: 0.45; }

.nav-contact {
    font-family: 'Manrope', sans-serif;
    font-weight: 600; font-size: 16px; letter-spacing: -0.64px;
    color: #FCFCFA; background: #000;
    text-decoration: none;
    padding: 9px 22px; border-radius: 60px;
    border: 1px solid #000;
    transition: background 0.22s, color 0.22s;
    white-space: nowrap; display: inline-block;
}
.nav-contact:hover { background: transparent; color: #000; }

/* hamburger */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 0.5rem;
}
.hamburger span {
    display: block; width: 22px; height: 1.5px; background: #000;
    transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile nav drawer */
.mobile-nav {
    display: none; flex-direction: column;
    position: fixed; top: 73px; left: 0; right: 0; bottom: 0;
    background: #FCFCFA; z-index: 99; padding: 2.5rem 30px;
    border-top: 1px solid #000;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
    font-size: 2rem; font-weight: 700; letter-spacing: -0.04em;
    padding: 1.25rem 0; border: none; border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
}
.mobile-nav .nav-contact {
    font-size: 2rem; font-weight: 700; letter-spacing: -0.04em;
    color: #000; background: transparent; border: none; border-radius: 0;
    padding: 1.25rem 0; border-bottom: 1px solid rgba(0,0,0,0.1);
    display: block;
}

/* ---- PAGE BODY OFFSET ---- */
.page-body { margin-top: 73px; margin-left: 60px; margin-right: 60px; }

/* ---- SECTION DIVIDERS ---- */
.section-divide { border-top: 1px solid #000; }

/* ---- HERO ---- */
.hero {
    position: relative; background: #000;
    width: 100%; aspect-ratio: 16/9;
    max-height: calc(100vh - 73px); min-height: 400px; overflow: hidden;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.52; display: block; }
.hero-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.play-btn {
    width: 76px; height: 76px;
    border: 1px solid rgba(255,255,255,0.65); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: transparent; transition: background 0.3s, transform 0.3s;
}
.play-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.06); }
.play-triangle {
    width: 0; height: 0; border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent rgba(255,255,255,0.85);
    margin-left: 4px;
}
.hero-label {
    position: absolute; bottom: 2rem; left: 2rem;
    color: rgba(255,255,255,0.45); font-size: 0.625rem;
    letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---- TAGLINE ---- */
.tagline-section { border-top: 1px solid #000; }
.tagline-inner {
    padding: 5rem 60px;
    display: flex; align-items: flex-start; gap: 2.5rem;
}
.tagline-arrow { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 300; flex-shrink: 0; line-height: 1.1; }
.tagline-text {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: 1.15; letter-spacing: -0.025em;
}

/* ---- SECTION WRAPPER ---- */
.section { border-top: 1px solid #000; }
.section-inner { padding: 4rem 60px; }
.section-inner--lg { padding: 5rem 60px; }

/* ---- SECTION LABEL ---- */
.label {
    font-size: 0.625rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(0,0,0,0.5);
}
.label--dark { color: #000; }

/* ---- BRANDS MARQUEE SECTION ---- */
.brands-section {
    background: #000; color: #fff;
    border-top: 1px solid #000;
}
.brands-inner {
    padding: 30px 0;
    display: flex; flex-direction: column; gap: 20px;
}
.brands-header {
    padding: 0 60px;
    display: flex; flex-direction: column; gap: 15px;
}
.brands-title {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: 19px; letter-spacing: -0.76px; color: #fff;
    line-height: 20.9px;
}
.brands-desc {
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-weight: 300; font-size: 12px; line-height: 24px;
    color: rgba(255,255,255,0.45); max-width: 720px;
}
.brands-marquee-wrap {
    height: 74px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}
.brands-track {
    display: flex; align-items: center; height: 100%;
    animation: scroll-brands 38s linear infinite;
    width: max-content;
}
.brands-track:hover { animation-play-state: paused; }
.brands-list {
    display: flex; align-items: center; gap: 60px;
    padding: 0 30px; flex-shrink: 0; height: 100%;
}
.brands-list img {
    height: auto; width: auto; max-height: 27px; display: block;
    filter: brightness(0) invert(1); opacity: 0.7;
    transition: opacity 0.2s; flex-shrink: 0;
}
.brands-list img:hover { opacity: 1; }
@keyframes scroll-brands {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- PROJECT CARDS ---- */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.project-card-wrap { display: block; text-decoration: none; cursor: pointer; }

.project-card {
    position: relative; overflow: hidden; background: #111;
    aspect-ratio: 16/9; display: block;
}
.project-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card-wrap:hover .project-card img { transform: scale(1.04); }

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 55%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
    opacity: 0; transition: opacity 0.3s ease;
}
.project-card-wrap:hover .card-overlay { opacity: 1; }

.card-type {
    font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin-bottom: 0.2rem;
}
.card-title { font-size: 1rem; font-weight: 500; color: #fff; margin-bottom: 0.5rem; }
.card-cta { font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* work page: text below card */
.card-info { padding: 0.875rem 0 1rem; border-bottom: 1px solid rgba(0,0,0,0.12); }
.card-info-type {
    font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(0,0,0,0.38); margin-bottom: 0.2rem;
}
.card-info-title { font-size: 0.9375rem; font-weight: 500; color: #000; }
.card-info-link {
    font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 0.35rem; opacity: 0; transition: opacity 0.2s; color: #000;
}
.project-card-wrap:hover .card-info-link { opacity: 1; }

/* ---- TWO-COLUMN SECTION LAYOUT (Mission, Services, Quote) ---- */
.two-col-section {
    display: flex; align-items: stretch;
}
.two-col-label {
    width: 465px; flex-shrink: 0; overflow: hidden;
    padding: 90px 60px 22px;
}
.two-col-content { flex: 1; min-width: 0; }

/* ---- SHARED HEADING STYLES ---- */
.section-h3 {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: 19px; letter-spacing: -0.76px; line-height: 20.9px; color: #000;
}
.section-h2 {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: clamp(2rem, 3.5vw, 50px); letter-spacing: -2px; line-height: 1.1; color: #000;
}

/* ---- MISSION SECTION ---- */
.mission-content { padding: 80px 250px 80px 60px; display: flex; align-items: center; }

/* ---- SERVICES SECTION ---- */
.services-content { flex: 1; min-width: 0; padding: 80px 100px 80px 60px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 60px; }
.svc-item {
    display: flex; align-items: center;
    padding: 22px 0; border-bottom: 1px dashed #000;
}
.svc-name {
    flex: 1; min-width: 0; padding-right: 24px;
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: 19px; letter-spacing: -0.76px; line-height: 20.9px; color: #000;
}
.svc-arrow { flex-shrink: 0; display: flex; align-items: center; }

/* ---- QUOTE SECTION ---- */
.quote-section { background: #000; color: #fff; border-top: 1px solid #000; }
.quote-two-col {
    display: flex; align-items: stretch;
    padding: clamp(60px, 8vw, 130px) 0;
}
.quote-speech-col {
    width: clamp(200px, 24vw, 465px); flex-shrink: 0; overflow: hidden;
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: flex-start;
}
.quote-speech-img { width: 160px; height: auto; display: block; }
.quote-content-col {
    flex: 1; min-width: 0;
    padding: 0 clamp(40px, 13vw, 250px) 0 30px;
    display: flex; flex-direction: column; justify-content: center;
    gap: 30px;
}
.quote-body {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: clamp(1.75rem, 3.5vw, 50px); letter-spacing: -2px; line-height: 1.1;
    color: #FCFCFA;
}
.quote-author-row { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
    width: 50px; height: 50px; border-radius: 100px;
    border: 1px solid #FCFCFA; overflow: hidden; flex-shrink: 0;
    background: rgba(252,252,250,0.1);
    display: flex; align-items: center; justify-content: center;
}
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-author-name {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: 19px; letter-spacing: -0.76px; line-height: 20.9px; color: #FCFCFA;
}
.quote-author-role {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: 13px; letter-spacing: -0.52px; line-height: 14.3px; color: rgba(252,252,250,0.55);
}

/* ---- VIDEO EMBED ---- */
.video-section { border-top: 1px solid #000; background: #000; }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; cursor: pointer; }
.video-poster { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.65; }
.video-play-btn {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
}
.video-play-btn:hover .play-btn { background: rgba(255,255,255,0.14); transform: scale(1.06); }

/* ---- ABOUT PAGE ---- */
.about-intro-grid { display: grid; grid-template-columns: 1fr 3fr; }
.about-sidebar {
    border-right: 1px solid #000; padding: 4rem clamp(1.5rem, 4vw, 60px);
    display: flex; flex-direction: column; gap: 2rem;
}
.about-sidebar-item { display: flex; flex-direction: column; }
.about-main { padding: 4rem clamp(1.5rem, 4vw, 60px); }
.about-role {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: clamp(3rem, 6vw, 100px);
    letter-spacing: -5px; line-height: 1; margin-bottom: 2rem;
}
.about-bio {
    font-family: 'Manrope', sans-serif; font-weight: 500;
    font-size: clamp(1rem, 1.8vw, 30px);
    letter-spacing: -1.2px; line-height: 39px; color: #000;
}

/* ---- PHILOSOPHY SECTION ---- */
.philosophy-dark { background: #000; }
.philosophy-content { padding: 80px 100px 80px 60px; display: flex; align-items: center; }
.philosophy-text {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: clamp(1.5rem, 2.8vw, 44px);
    line-height: 1.25; letter-spacing: -1.5px;
}
.philosophy-dark .philosophy-text { color: #FCFCFA; }
.philosophy-dark .section-h3 { color: #FCFCFA; }
.client-content { padding: 80px 100px 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.two-col-label-arrow { font-size: 1.5rem; margin-top: auto; padding-top: 3rem; color: #000; }

/* ---- WORK PAGE HEADER ---- */
.work-header { border-top: 1px solid #000; }
.work-header-inner {
    padding: 5rem 60px 4rem;
    display: grid; grid-template-columns: 1fr 3fr; gap: 4rem; align-items: start;
}
.work-title {
    font-size: clamp(1.75rem, 3vw, 3rem); font-weight: 300;
    letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.5rem;
}

/* ---- FOOTER ---- */
footer { background: #FCFCFA; margin: 0 60px; overflow: hidden; }

/* Top row: Contact | Copyright */
.footer-top { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #000; }
.footer-contact-col {
    display: flex; flex-direction: column; gap: 0.4rem;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
    border-right: 1px solid #000;
}
.footer-col-label {
    font-family: 'Geist Mono', monospace; font-size: 0.5rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(0,0,0,0.35); margin-bottom: 0.5rem; display: block;
}
.footer-email {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: 0.9375rem; color: #000;
    text-decoration: none; transition: opacity 0.2s;
}
.footer-email:hover { opacity: 0.5; }
.footer-copy-col {
    display: flex; flex-direction: column; gap: 0.75rem;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
}
.footer-copy-year {
    font-family: 'Manrope', sans-serif; font-weight: 600;
    font-size: 0.9375rem; color: #000;
}
.footer-copy-desc {
    font-family: 'Geist Mono', monospace; font-weight: 300;
    font-size: 0.5625rem; line-height: 1.9;
    color: rgba(0,0,0,0.45); max-width: 480px;
}

/* Social icons row — 4 equal bordered cells */
.footer-social-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #000; border-bottom: 1px solid #000;
}
.footer-social-cell {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; border-right: 1px solid #000;
    transition: background 0.2s; text-decoration: none;
}
.footer-social-cell:last-child { border-right: none; }
.footer-social-cell:hover { background: rgba(0,0,0,0.04); }
.footer-social-cell img { width: 24px; height: 24px; display: block; }

/* Wordmark */
.footer-wordmark-wrap { background: #000; overflow: hidden; line-height: 0; padding: 40px 60px; }
.footer-wordmark-img { width: 100%; display: block; }
.footer-wordmark-fallback {
    font-size: clamp(80px, 14vw, 220px); font-weight: 900;
    letter-spacing: -0.03em; line-height: 0.85;
    color: #FCFCFA; background: #000;
}

/* Bottom bar */
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem clamp(1.5rem, 4vw, 4rem);
    border-top: 1px solid #000;
}
.footer-bottom-logo { height: 20px; width: auto; display: block; }
.footer-bottom span {
    font-family: 'Geist Mono', monospace; font-size: 0.5625rem;
    letter-spacing: 0.1em; color: rgba(0,0,0,0.35);
}

/* ---- VIDEO MODAL ---- */
#modal {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.97);
    align-items: center; justify-content: center; padding: 1rem;
}
#modal.open { display: flex; }
#modal-close {
    position: absolute; top: 1.25rem; right: 1.5rem;
    color: rgba(255,255,255,0.5); font-size: 2rem; background: none;
    border: none; cursor: pointer; line-height: 1; padding: 0.25rem;
    transition: color 0.2s; font-weight: 300;
}
#modal-close:hover { color: #fff; }
.modal-inner { width: 100%; max-width: 1200px; aspect-ratio: 16/9; }
.modal-inner iframe { width: 100%; height: 100%; border: none; }

/* ---- RESPONSIVE ---- */

/* Tablet intermediate — tighten two-col proportions */
@media (max-width: 1100px) {
    .two-col-label { width: 300px; padding: 60px 40px 22px; }
    .mission-content { padding: 60px 60px 60px 40px; }
    .services-content { padding: 60px 40px; }
    .svc-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
    .philosophy-content { padding: 60px 40px; }
    .client-content { padding: 60px 40px; }
    .quote-speech-col { width: 300px; }
    .quote-content-col { padding: 0 60px 0 20px; }
    .tagline-inner { padding: 4rem 60px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Border lines + page margins */
    body::before, body::after { display: none; }
    .page-body { margin-left: 0; margin-right: 0; }
    footer { margin-left: 0; margin-right: 0; }

    /* Nav */
    .nav-right { display: none; }
    .hamburger { display: flex; }
    .nav-items { padding: 18px 20px; }

    /* Hero */
    .hero { aspect-ratio: 390 / 295; height: auto; max-height: none; min-height: unset; }

    /* Tagline */
    .tagline-inner { padding: 2.5rem 1.25rem; flex-direction: column; gap: 0.5rem; }
    .tagline-arrow { display: none; }
    .tagline-text { font-size: 38px; letter-spacing: -1.9px; line-height: 1.1; }

    /* Section wrappers */
    .section-inner, .section-inner--lg { padding: 3rem 1.25rem; }

    /* Work grid → single column */
    .projects-grid { grid-template-columns: 1fr; }

    /* Two-col sections (Mission, Services, Philosophy, Client) → stacked */
    .two-col-section { flex-direction: column; }
    .two-col-label { width: 100%; padding: 2.5rem 1.25rem 1rem; }
    .mission-content { padding: 0 1.25rem 3rem; }
    .services-content { padding: 0 1.25rem 3rem; }
    .svc-grid { grid-template-columns: 1fr; column-gap: 0; }
    .philosophy-content { padding: 0 1.25rem 3rem; }
    .client-content { padding: 0 1.25rem 3rem; }
    .philosophy-dark .two-col-label { border-right: none; border-bottom: none; }

    /* Quote section → stacked */
    .quote-two-col { flex-direction: column; padding: 3rem 1.25rem; }
    .quote-speech-col { width: 100%; justify-content: flex-start; align-items: flex-start; padding: 0 0 1.25rem; }
    .quote-speech-img { width: 100px; }
    .quote-content-col { padding: 0; }

    /* About page */
    .about-intro-grid { grid-template-columns: 1fr; }
    .about-sidebar { border-right: none; border-bottom: 1px solid #000; padding: 2rem 1.25rem; flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
    .about-sidebar-item { flex: 1; min-width: 120px; }
    .about-main { padding: 2.5rem 1.25rem; }
    .about-role { font-size: clamp(2.5rem, 10vw, 5rem); letter-spacing: -3px; }
    .about-bio { font-size: clamp(1rem, 4vw, 1.25rem); line-height: 1.55; }

    /* Work page header */
    .work-header-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 1.25rem 2.5rem; }

    /* Brands */
    .brands-header { padding: 0 1.25rem; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; }
    .footer-contact-col { border-right: none; border-bottom: 1px solid #000; padding: 2rem 1.25rem; }
    .footer-copy-col { padding: 2rem 1.25rem; }
    .footer-social-row { grid-template-columns: 1fr 1fr; }
    .footer-social-cell:nth-child(2) { border-right: none; }
    .footer-social-cell:nth-child(3) { border-top: 1px solid #000; }
    .footer-social-cell:nth-child(4) { border-top: 1px solid #000; border-right: none; }
    .footer-wordmark-wrap { padding: 0 1.25rem; }
    .footer-bottom { padding: 1rem 1.25rem; }

    /* Always show card overlay on mobile (no hover) */
    .card-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%); }
    .card-info-link { opacity: 1; }
}

@media (max-width: 480px) {
    .play-btn { width: 60px; height: 60px; }
}
