/* ==========================================================================
   DESIGN SYSTEM — "GRADING SUITE"
   Grounded in the colour-grading monitor: a dim room, a calibrated screen,
   and the orange/teal split-tone editors use to read skin tones against
   shadow. Mono type is reserved for things that are actually data —
   timecodes, dates, durations — never used as decoration.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --void:      #0E1613;
    --panel:     #161F1B;
    --panel-2:   #1E2A25;
    --ink:       #F2EFE6;
    --ink-dim:   #8FA39A;
    --line:      #263631;
    --orange:    #FF7A45;
    --orange-ink:#1B0D06;
    --teal:      #3FBBA4;
    --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--void);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.overflow-hidden { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

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

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }

.container { width: 92%; max-width: 1180px; margin: 0 auto; }

.site { display: flex; flex-direction: column; min-height: 100vh; }

/* --------------------------------------------------------------------
   SCRUB BAR — fixed thin playhead across the very top, fills with
   scroll position. Genuine wayfinding, not a decorative rule.
   -------------------------------------------------------------------- */
.scrub-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--line); z-index: 200;
}
.scrub-bar__fill {
    height: 100%; width: 0%; background: var(--orange);
    transition: width 0.08s linear;
}

/* --------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------- */
.site-nav {
    position: fixed; top: 3px; left: 0; width: 100%; z-index: 150;
    background: rgba(14, 22, 19, 0.92);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.site-nav__row {
    width: 92%; max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.site-nav__logo {
    font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
    display: flex; align-items: baseline; gap: 8px;
}
.site-nav__logo .dot { color: var(--orange); }

.site-nav__links { display: flex; align-items: center; gap: 2.25rem; }
.site-nav__links a {
    font-weight: 600; font-size: 0.95rem; color: var(--ink-dim);
    transition: color 0.15s var(--ease);
}
.site-nav__links a:hover, .site-nav__links a.is-active { color: var(--ink); }
.site-nav__links a.is-active { color: var(--orange); }

.btn-ghost {
    font-family: var(--mono); font-size: 0.85rem; font-weight: 500;
    color: var(--ink); border: 1px solid var(--line);
    padding: 0.5rem 1rem; transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.menu-btn {
    display: none; width: 26px; height: 18px; position: relative;
    background: none; border: none; cursor: pointer; z-index: 152;
}
.menu-btn span {
    position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 8px; }
.menu-btn span:nth-child(3) { top: 16px; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; background: var(--void); z-index: 145;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s linear;
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-menu a { font-size: 2.25rem; font-weight: 800; }
.mobile-menu a.is-active { color: var(--orange); }

/* --------------------------------------------------------------------
   SECTION SCAFFOLDING — the "NN / total" mark is a real position in a
   genuinely ordered sequence of sections, not decoration.
   -------------------------------------------------------------------- */
.section { padding: 6.5rem 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 5rem 0; }

.section-mark {
    display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 3rem;
    font-family: var(--mono); font-size: 0.85rem; color: var(--ink-dim);
}
.section-mark b { color: var(--ink); font-weight: 500; }
.section-mark::after {
    content: ''; flex: 1; height: 1px; background: var(--line);
}

.page-content { padding-top: 68px; }

/* --------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-weight: 700; font-size: 0.95rem; padding: 0.9rem 1.75rem;
    border: 1px solid transparent; cursor: pointer;
    transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--solid { background: var(--orange); color: var(--orange-ink); }
.btn--solid:hover { background: var(--ink); }

.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--orange); color: var(--orange); }

/* --------------------------------------------------------------------
   FILMSTRIP — homepage hero. Real thumbnails, perforated edges,
   slow constant drift like footage rolling past a scrub head.
   -------------------------------------------------------------------- */
.hero { padding-top: 68px; }
.hero__intro { padding: 4.5rem 0 3rem; }
.hero__eyebrow {
    font-family: var(--mono); font-size: 0.85rem; color: var(--teal);
    margin-bottom: 1.25rem;
}
.hero__title {
    font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 0.96;
    max-width: 14ch;
}
.hero__lede {
    margin-top: 1.75rem; max-width: 42ch; font-size: 1.15rem;
    color: var(--ink-dim); font-weight: 500; line-height: 1.6;
}

.filmstrip { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.filmstrip::before, .filmstrip::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 10px;
    background-image: radial-gradient(circle, var(--void) 3px, transparent 3px);
    background-size: 26px 10px; background-position: 10px center;
    z-index: 2;
}
.filmstrip::before { top: 0; }
.filmstrip::after { bottom: 0; }
.filmstrip__track {
    display: flex; gap: 3px; padding: 10px 0;
    animation: drift 42s linear infinite;
    width: max-content;
}
.filmstrip:hover .filmstrip__track { animation-play-state: paused; }
.filmstrip__frame {
    width: 260px; aspect-ratio: 16/10; flex-shrink: 0; position: relative;
    overflow: hidden; background: var(--void-2);
}
.filmstrip__frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .filmstrip__track { animation: none; } }

/* --------------------------------------------------------------------
   ABOUT (home section + about page share this)
   -------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.about-grid h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; }
.about-grid p { font-size: 1.2rem; line-height: 1.6; color: var(--ink-dim); font-weight: 500; margin-bottom: 1.5rem; }
.about-grid p:first-child { color: var(--ink); }

/* --------------------------------------------------------------------
   WORK GRID — clip cards
   -------------------------------------------------------------------- */
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 3rem; gap: 1.5rem; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-head p { color: var(--ink-dim); font-weight: 500; margin-top: 0.5rem; }

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

.clip-card {
    display: block; background: var(--panel); border: 1px solid var(--line);
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
    height: 100%;
}
.clip-card:hover { transform: translateY(-4px); border-color: var(--orange); }

.clip-card__reel { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--void-2); }
.clip-card__reel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); transition: filter 0.25s var(--ease), transform 0.4s var(--ease); }
.clip-card:hover .clip-card__reel img { filter: saturate(1.05); transform: scale(1.04); }
.clip-card__tag {
    position: absolute; top: 0.75rem; left: 0.75rem;
    font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
    background: var(--void); color: var(--teal); padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
}

.clip-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.clip-card__body h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.6rem; }
.clip-card__body p { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.55; }

.center-row { text-align: center; margin-top: 3.5rem; }

/* Filter pills — projects archive */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.filter-pill {
    font-family: var(--mono); font-size: 0.82rem; padding: 0.5rem 1rem;
    border: 1px solid var(--line); color: var(--ink-dim); cursor: pointer;
    background: transparent; transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.filter-pill:hover { color: var(--ink); }
.filter-pill.is-active { border-color: var(--orange); color: var(--orange); }

.archive-header { margin-bottom: 3.5rem; }
.archive-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; }
.archive-header p { margin-top: 0.9rem; color: var(--ink-dim); font-size: 1.1rem; font-weight: 500; }

/* --------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------- */
#testimonials { background: var(--panel); }
.testimonial-swiper { width: 100%; overflow: hidden; }
.testimonial-card { max-width: 780px; }
.quote-mark { color: var(--orange); margin-bottom: 1.25rem; width: 34px; height: 24px; }
.quote-text { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.quote-author { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.quote-author img { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line); filter: saturate(0.7); }
.quote-author__name { font-weight: 700; }
.quote-author__title { font-size: 0.9rem; color: var(--ink-dim); font-family: var(--mono); }

.swiper-pagination { position: relative !important; margin-top: 2.5rem; text-align: left !important; }
.swiper-pagination-bullet { background: var(--line); opacity: 1; width: 22px; height: 3px; border-radius: 0; margin: 0 4px 0 0 !important; }
.swiper-pagination-bullet-active { background: var(--orange); }

/* --------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------- */
#contact .container { text-align: center; }
.contact-title { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 0.98; max-width: 16ch; margin: 0 auto 1.5rem; }
.contact-lede { color: var(--ink-dim); font-size: 1.15rem; font-weight: 500; max-width: 46ch; margin: 0 auto 2.75rem; }
.social-row { margin-top: 3rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.social-row a {
    font-family: var(--mono); font-size: 0.9rem; color: var(--ink-dim);
    border-bottom: 1px solid transparent; padding-bottom: 2px;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.social-row a:hover { color: var(--orange); border-color: var(--orange); }

/* --------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------- */
.site-footer {
    padding: 2rem 0; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.75rem;
    font-family: var(--mono); font-size: 0.82rem; color: var(--ink-dim);
}

/* --------------------------------------------------------------------
   ABOUT PAGE
   -------------------------------------------------------------------- */
.about-photo {
    float: left; width: 260px; aspect-ratio: 3/4; object-fit: cover;
    margin: 0.4rem 2.5rem 1.5rem 0; filter: saturate(0.75) contrast(1.05);
    border: 1px solid var(--line);
}
.clearfix::after { content: ''; display: table; clear: both; }
.about-body p { font-size: 1.2rem; line-height: 1.7; color: var(--ink-dim); font-weight: 500; margin-bottom: 1.5rem; }
.about-body p:first-of-type { color: var(--ink); }
.about-actions { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------
   PROJECT DETAIL
   -------------------------------------------------------------------- */
.detail-header { max-width: 780px; margin-bottom: 3rem; }
.detail-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; margin-bottom: 1.1rem; }
.detail-header p { font-size: 1.15rem; color: var(--ink-dim); font-weight: 500; }
.detail-header .btn { margin-top: 1.75rem; }

.detail-visual { border: 1px solid var(--line); margin-bottom: 4rem; background: #000; position: relative; }
.detail-visual > img { width: 100%; display: block; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.player video { width: 100%; max-height: 82vh; object-fit: contain; display: block; }

.player-ui { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: space-between; transition: opacity 0.2s; }
.player-ui.ui-hidden { opacity: 0; pointer-events: none; }
.player-ui__fade-top { position: absolute; top: 0; left: 0; right: 0; height: 110px; background: linear-gradient(to bottom, rgba(0,0,0,.85), transparent); z-index: -1; }
.player-ui__fade-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 110px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); z-index: -1; }

.player-top { padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: flex-start; }
.player-top__title { font-size: 1rem; font-weight: 700; color: #fff; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-badge {
    display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px); padding: 6px 12px; color: #fff; font-family: var(--mono); font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2); transition: background 0.2s;
}
.player-badge:hover { background: rgba(255,255,255,0.24); }
.player-badge svg { width: 15px; height: 15px; }

.player-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 74px; height: 74px; background: var(--orange); color: var(--orange-ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.player-center:hover { transform: translate(-50%, -50%) scale(1.06); }
.player-center svg { width: 26px; height: 26px; }
.player-ui:not(.is-initial) .player-center { opacity: 0; pointer-events: none; }

.player-controls { padding: 0 2rem 1.5rem; display: flex; flex-direction: column; gap: 12px; }
.player-scrub { position: relative; width: 100%; height: 5px; background: rgba(255,255,255,0.2); cursor: pointer; }
.player-scrub__fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--orange); pointer-events: none; }
.player-scrub__input { position: absolute; inset: -6px 0; width: 100%; height: 18px; margin: 0; opacity: 0; cursor: pointer; }

.player-row { display: flex; align-items: center; gap: 1.4rem; }
.player-btn { background: none; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; padding: 0; transition: color 0.15s; }
.player-btn:hover { color: var(--orange); }
.player-btn svg { width: 22px; height: 22px; }
.player-btn--sm svg { width: 18px; height: 18px; }
.player-row .spacer { flex: 1; }

/* CONTENT GRID */
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 3.5rem; margin-bottom: 5rem; align-items: start; }
.detail-copy h2 { font-size: 1.9rem; margin-bottom: 1.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.detail-copy p { font-size: 1.1rem; line-height: 1.65; color: var(--ink-dim); font-weight: 500; margin-bottom: 1.4rem; }

.data-card { background: var(--panel); border: 1px solid var(--line); padding: 1.75rem; position: sticky; top: 92px; }
.data-card h3 { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; color: var(--ink-dim); margin-bottom: 1.4rem; text-transform: none; }
.data-card ul { display: flex; flex-direction: column; gap: 1.25rem; }
.data-card li { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.data-card li:last-child { border-bottom: none; padding-bottom: 0; }
.data-card li span { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-dim); }
.data-card li strong { font-size: 1.05rem; font-weight: 700; }

/* GALLERY */
.gallery-head { font-size: 1.9rem; margin-bottom: 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item {
    position: relative; padding-top: 66%; overflow: hidden; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line);
}
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); transition: transform 0.35s var(--ease), filter 0.25s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }

/* LIGHTBOX */
.lightbox {
    position: fixed; inset: 0; background: rgba(8, 12, 10, 0.97); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.lightbox.is-active { opacity: 1; pointer-events: all; }
.lightbox__inner { position: relative; max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox__inner img { max-width: 100%; max-height: 82vh; border: 1px solid var(--line); }
.lightbox__caption { color: var(--ink-dim); margin-top: 1rem; font-family: var(--mono); font-size: 0.9rem; }
.lightbox__close {
    position: absolute; top: -52px; right: 0; background: none; border: none;
    color: #fff; cursor: pointer; transition: color 0.15s;
}
.lightbox__close:hover { color: var(--orange); }
.lightbox__close svg { width: 28px; height: 28px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .about-grid, .detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .data-card { position: static; }
}

@media (max-width: 768px) {
    .site-nav__links { display: none; }
    .menu-btn { display: block; }

    .section { padding: 4rem 0; }
    .hero__intro { padding: 3rem 0 2rem; }
    .filmstrip__frame { width: 190px; }

    .clip-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .clip-card__body { padding: 1rem; }
    .clip-card__body h3 { font-size: 1rem; }
    .clip-card__body p { display: none; }

    .about-photo { width: 150px; margin: 0.3rem 1.25rem 1rem 0; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .data-card ul { flex-direction: row; flex-wrap: wrap; gap: 1rem 2rem; }
    .data-card li { border-bottom: none; padding-bottom: 0; flex: 1 1 40%; }

    .player-top { padding: 1rem 1.25rem; }
    .player-controls { padding: 0 1.25rem 1.1rem; }
    .player-row { gap: 1rem; }

    .site-footer { flex-direction: column; text-align: center; }
}
