/*
 * pages.css — Shared styles for all inner pages
 * (category pages + individual project pages)
 * Requires: style.css loaded first for brand tokens & reset
 */


/* ============================================================
   NAV OVERRIDE FOR INNER PAGES
   Logo links back to homepage; active state removed
============================================================ */
.nav-logo a {
    display: inherit;
    gap: inherit;
    text-decoration: none;
    color: inherit;
}


/* ============================================================
   CATEGORY HERO
   Full-width espresso header with big title and back link
============================================================ */
.cat-hero {
    background-color: var(--espresso);
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 7px,
        rgba(240,102,10,0.06) 7px,
        rgba(240,102,10,0.06) 8px
    );
    padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
    padding-bottom: clamp(56px, 8vw, 104px);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    position: relative;
    overflow: hidden;
}

.cat-hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 60% 90% at 85% 55%, rgba(240,102,10,0.32) 0%, transparent 62%),
        radial-gradient(ellipse 40% 50% at 10% 15%, rgba(240,102,10,0.18) 0%, transparent 55%);
    animation: gloss-a 26s ease-in-out infinite alternate;
    pointer-events: none;
}

.cat-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(32px, 5vw, 64px);
}

/* Back link — top of hero */
.cat-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.45;
    text-decoration: none;
    transition: opacity 0.2s;
    width: fit-content;
}
.cat-back::before { content: '←'; font-size: 14px; line-height: 1; }
.cat-back:hover   { opacity: 1; }

/* Main heading area */
.cat-hero-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 60px);
    flex-wrap: wrap;
}

.cat-hero-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(60px, 11vw, 148px);
    text-transform: uppercase;
    color: var(--paper);
    line-height: 0.88;
    letter-spacing: -0.02em;
    margin: 0;
}

.cat-hero-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 6px;
}

.cat-count {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 72px);
    color: var(--orange);
    line-height: 1;
    letter-spacing: -0.02em;
}

.cat-count-label {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.4;
}

/* Description row below title */
.cat-hero-desc {
    font-family: var(--font);
    font-weight: 400;
    font-size: clamp(11px, 1.1vw, 13px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.5;
    max-width: 420px;
    line-height: 1.8;
}


/* ============================================================
   PROJECT GRID  (category pages)
   3-col uniform cards, 4:3 aspect ratio
============================================================ */
.cat-section {
    background: var(--paper);
    padding: clamp(40px, 6vw, 80px) var(--gutter);
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* ── Individual project card ──────────────────────────── */
.proj-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--espresso);
}

/* Orange sweep bar — top */
.proj-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--orange);
    border-radius: 0 3px 3px 0;
    z-index: 3;
    transition: width 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover::before { width: 100%; }

.proj-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover .proj-card-img { transform: scale(1.05); }

.proj-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(62,39,35,0.06) 0%,
        rgba(62,39,35,0.5)  50%,
        rgba(62,39,35,0.92) 100%
    );
    transition: opacity 0.35s ease;
}
.proj-card:hover .proj-card-overlay { opacity: 0.96; }

.proj-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px 22px 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.proj-card-cat {
    font-family: var(--font);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 6px;
    opacity: 0.9;
}

.proj-card-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(13px, 1.35vw, 18px);
    text-transform: uppercase;
    color: var(--paper);
    line-height: 1.12;
    transform: translateY(4px);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover .proj-card-title { transform: translateY(0); }

.proj-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.28s ease 0.05s, transform 0.28s ease 0.05s;
}
.proj-card:hover .proj-card-foot { opacity: 1; transform: translateY(0); }

.proj-card-year {
    font-family: var(--font);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.4;
}

.proj-card-arrow {
    font-size: 14px;
    color: var(--orange);
}


/* ============================================================
   PAGE CTA  (bottom of category and project pages)
============================================================ */
.page-cta {
    background-color: var(--espresso);
    padding: clamp(64px, 9vw, 120px) var(--gutter);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-cta::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse 55% 80% at 50% 50%, rgba(240,102,10,0.22) 0%, transparent 65%);
    animation: gloss-a 28s ease-in-out infinite alternate;
    pointer-events: none;
}

.page-cta-inner { position: relative; z-index: 1; }

.page-cta-label {
    display: block;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
}

.page-cta-h2 {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 58px);
    text-transform: uppercase;
    color: var(--paper);
    line-height: 1;
    margin-bottom: 36px;
}


/* ============================================================
   PROJECT PAGE — HERO
   Full-width image + title overlay
============================================================ */
.proj-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    min-height: 420px;
    overflow: hidden;
    background: var(--espresso);
}

.proj-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.proj-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(62,39,35,0.25) 0%,
        rgba(62,39,35,0.15) 30%,
        rgba(62,39,35,0.6)  72%,
        rgba(62,39,35,0.92) 100%
    );
}

.proj-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--nav-h) + 28px) var(--gutter) clamp(36px, 5vw, 56px);
    z-index: 1;
}

.proj-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.55;
    text-decoration: none;
    transition: opacity 0.2s;
    width: fit-content;
}
.proj-breadcrumb::before { content: '←'; font-size: 12px; }
.proj-breadcrumb:hover   { opacity: 1; }

.proj-hero-foot {}

.proj-hero-cat {
    display: block;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

.proj-hero-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(32px, 5.5vw, 76px);
    text-transform: uppercase;
    color: var(--paper);
    line-height: 0.92;
    letter-spacing: -0.01em;
    margin: 0;
}


/* ============================================================
   PROJECT PAGE — VIDEO SECTION
   Full-width 16:9 Vimeo embed
============================================================ */
.proj-video-section {
    background: #0a0705;
    position: relative;
}

.proj-video-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.proj-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ============================================================
   PROJECT PAGE — META STRIP
   Client / Role / Year / Type on a bone background
============================================================ */
.proj-meta {
    background: var(--bone);
    padding: clamp(36px, 5vw, 64px) var(--gutter);
}

.proj-meta-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(26px, 3.5vw, 44px);
    text-transform: uppercase;
    color: var(--espresso);
    line-height: 1;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.proj-meta-rule {
    width: 100%;
    height: 1px;
    background: rgba(62,39,35,0.14);
    margin-bottom: clamp(24px, 3vw, 40px);
}

.proj-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.proj-meta-item {}

.proj-meta-key {
    display: block;
    font-family: var(--font);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

.proj-meta-val {
    display: block;
    font-family: var(--font);
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--espresso);
    letter-spacing: 0.04em;
}


/* ============================================================
   PROJECT PAGE — DESCRIPTION
   Espresso background, editorial body copy
============================================================ */
.proj-desc {
    background: var(--espresso);
    padding: clamp(56px, 8vw, 104px) var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.proj-desc-pull {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 30px);
    text-transform: uppercase;
    color: var(--paper);
    line-height: 1.25;
    letter-spacing: -0.005em;
    padding-top: 4px;
}

.proj-desc-pull em {
    color: var(--orange);
    font-style: normal;
}

.proj-desc-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.proj-desc-body p {
    font-family: var(--font);
    font-weight: 400;
    font-size: clamp(11px, 1.05vw, 13px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.6;
    line-height: 1.9;
    margin: 0;
}


/* ============================================================
   PROJECT PAGE — MEDIA GRID
   Additional stills and clips from the project
============================================================ */
.proj-media {
    background: var(--espresso);
    padding: 0 var(--gutter) clamp(56px, 8vw, 104px);
}

.proj-media-heading {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.35;
    margin-bottom: 20px;
    padding-top: 2px;
}

.proj-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.proj-media-item {
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}

.proj-media-item.tall { aspect-ratio: 4 / 5; }

.proj-media-item img,
.proj-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}

.proj-media-item:hover img,
.proj-media-item:hover video { transform: scale(1.04); }

/* Placeholder state (no image yet) */
.proj-media-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.18;
}


/* ============================================================
   PROJECT PAGE — RELATED PROJECTS
   3 cards from the same category
============================================================ */
.proj-related {
    background: var(--paper);
    padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.proj-related-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.proj-related-heading {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 30px);
    text-transform: uppercase;
    color: var(--espresso);
    line-height: 1;
}

.proj-related-link {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    text-decoration: none;
    transition: opacity 0.2s;
}
.proj-related-link:hover { opacity: 0.7; }

.proj-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}


/* ============================================================
   PHOTOGRAPHY — PORTRAIT CARD VARIANT
   Taller 3:4 aspect ratio suits portrait-oriented stills.
   Applied via .proj-card--portrait modifier class.
============================================================ */
.proj-card--portrait { aspect-ratio: 3 / 4; }


/* ============================================================
   PROJECT SPLIT PAGE
   Left column: sticky visual (image + watch link)
   Right column: project info that scrolls with the page
============================================================ */

/* Wrapper — fills viewport height; sits directly under nav */
.proj-split {
    display: grid;
    grid-template-columns: 58fr 42fr;
    align-items: start;        /* makes sticky work on left col */
    min-height: calc(100vh - var(--nav-h));
    margin-top: var(--nav-h);
}

/* ── Left: sticky image panel ─────────────────────────── */
.proj-split-media {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow: hidden;
}

.proj-split-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 14s ease;  /* very slow drift adds life */
}

.proj-split-media:hover .proj-split-img { transform: scale(1.04); }

/* Looping video hero — fills the sticky panel identically to the image version */
.proj-split-vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 14s ease;
}

.proj-split-media:hover .proj-split-vid { transform: scale(1.04); }

.proj-split-img-fade {
    display: none;
}

/* "Watch the film" link bottom-left of the image */
.proj-split-watch {
    position: absolute;
    bottom: 28px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s;
    z-index: 2;
}
.proj-split-watch::after {
    content: '↓';
    font-size: 13px;
    transition: transform 0.25s ease;
}
.proj-split-watch:hover            { opacity: 1; }
.proj-split-watch:hover::after     { transform: translateY(3px); }

/* ── Right: info panel ────────────────────────────────── */
.proj-split-info {
    background-color: var(--espresso);
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 7px,
        rgba(240,102,10,0.05) 7px,
        rgba(240,102,10,0.05) 8px
    );
    min-height: calc(100vh - var(--nav-h));
    padding: clamp(36px, 4vw, 52px) clamp(32px, 4.5vw, 60px);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Back link at the top */
.proj-split-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.4;
    text-decoration: none;
    margin-bottom: clamp(28px, 4vw, 48px);
    transition: opacity 0.2s;
    width: fit-content;
}
.proj-split-back::before { content: '←'; font-size: 13px; }
.proj-split-back:hover   { opacity: 1; }

/* Category eyebrow */
.proj-split-eyebrow {
    display: block;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

/* Project title */
.proj-split-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(28px, 3.8vw, 50px);
    text-transform: uppercase;
    color: var(--paper);
    line-height: 0.94;
    letter-spacing: -0.01em;
    margin: 0 0 clamp(24px, 3vw, 36px);
}

/* Thin rule between sections */
.proj-split-rule {
    width: 100%;
    height: 1px;
    background: rgba(245,241,236,0.1);
    margin: clamp(20px, 2.5vw, 30px) 0;
    flex-shrink: 0;
}

/* Short description */
.proj-split-desc {
    font-family: var(--font);
    font-weight: 400;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.6;
    line-height: 1.9;
    margin: 0;
}

/* Info list — key / value rows */
.proj-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.proj-info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(245,241,236,0.07);
}
.proj-info-row:first-child { border-top: 1px solid rgba(245,241,236,0.07); }

.proj-info-key {
    font-family: var(--font);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    flex-shrink: 0;
}

.proj-info-val {
    font-family: var(--font);
    font-size: clamp(10px, 0.95vw, 12px);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper);
    text-align: right;
}

/* CTA at the bottom of the info panel */
.proj-split-cta {
    margin-top: auto;
    padding-top: clamp(28px, 3.5vw, 44px);
}


/* ============================================================
   PROJECT SPLIT — BELOW-FOLD SECTIONS
   Video (full-width 16:9) + media grid + related projects
   all live below the split panel
============================================================ */
.proj-below {}   /* wrapper — no extra styles needed */


/* ============================================================
   VIMEO PLAYER — Custom controls
   Used on project pages for main + additional video embeds.
   A transparent .vimeo-blocker sits over the iframe so Vimeo's
   own UI never receives pointer events. A custom .vimeo-controls
   bar fades in on hover.
============================================================ */

/* Outer wrapper — maintains 16:9 aspect ratio */
.vimeo-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;    /* 16 : 9 */
    background: #080604;
    overflow: hidden;
}

/* The Vimeo iframe */
.vimeo-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Transparent overlay — blocks all Vimeo pointer events */
.vimeo-blocker {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
}

/* Controls bar — centered at the bottom, hidden until hover */
.vimeo-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 12, 9, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(240, 102, 10, 0.22);
    border-radius: 50px;
    padding: 8px 12px;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    white-space: nowrap;
}

.vimeo-player:hover .vimeo-controls {
    opacity: 1;
    pointer-events: auto;
}

/* Generic control button */
.vc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.vc-btn:hover {
    background: rgba(240, 102, 10, 0.16);
    color: var(--orange);
}

/* Play / Pause button — orange, slightly larger */
.vc-play {
    width: 46px;
    height: 46px;
    background: var(--orange);
    color: var(--paper);
    border-radius: 50%;
}

.vc-play:hover {
    background: #d95a07;
    color: var(--paper);
}

/* Back / Forward label text next to the skip icon */
.vc-label {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
}

/* Mute toggle — bottom-right corner, same hover behaviour */
.vc-mute {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(240, 102, 10, 0.28);
    background: rgba(20, 12, 9, 0.76);
    color: var(--paper);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease, background 0.15s;
    pointer-events: none;
}

.vimeo-player:hover .vc-mute {
    opacity: 1;
    pointer-events: auto;
}

.vc-mute:hover { background: rgba(20, 12, 9, 0.96); }

/* Icon swap — sound off (default muted state) */
.vc-mute .vc-icon-sound  { display: none; }

/* When player is unmuted */
.vc-mute.is-unmuted .vc-icon-muted { display: none; }
.vc-mute.is-unmuted .vc-icon-sound  { display: block; }


/* ============================================================
   LEFT PANEL — VIMEO COVER MODE
   When .vimeo-player sits inside .proj-split-media it fills the
   sticky panel completely (same as object-fit: cover on a video).
   The inner wrapper scales the 16:9 iframe to always cover both
   width and height of the container.
============================================================ */
.proj-split-media .vimeo-player {
    position: absolute;
    inset: 0;
    padding-top: 0;          /* override the normal 56.25% ratio box */
    background: #040302;
    overflow: hidden;
}

/* 16:9 cover trick — expands to fill any container shape */
.proj-split-vimeo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 56.25%;          /* natural 16:9 height */
    min-height: 100%;        /* must cover vertically */
    min-width: 177.78%;      /* must cover horizontally (16/9 * 100%) */
}

.proj-split-vimeo-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ============================================================
   VIDEO CAROUSEL (below the split hero)
   Horizontal scroll-snap strip of project videos.
   Left / right arrow buttons advance one item at a time.
   On mobile, swiping works natively via CSS scroll-snap.
============================================================ */
.proj-reel-section {
    background: #080604;
    padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 7vw, 96px);
}

/* Header row: eyebrow label + arrow buttons */
.proj-reel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter) clamp(16px, 2.5vw, 28px);
}

.proj-reel-eyebrow {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.35;
    margin: 0;
}

.proj-reel-nav {
    display: flex;
    gap: 8px;
}

.proj-reel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(240, 102, 10, 0.3);
    background: rgba(20, 12, 9, 0.8);
    color: var(--paper);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s;
    flex-shrink: 0;
    padding: 0;
}

.proj-reel-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
}

/* Scrollable track */
.proj-reel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 6px;
    padding: 0 var(--gutter);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.proj-reel-track::-webkit-scrollbar { display: none; }

/* Each slide */
.proj-reel-item {
    flex: 0 0 calc(100% - (var(--gutter) * 2));
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    /* Show a sliver of the next video to hint at scrollability */
    .proj-reel-item { flex: 0 0 calc(90% - var(--gutter)); }
}

/* Caption row below each video */
.proj-reel-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 0;
}

.proj-reel-label {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: 0.38;
    margin: 0;
}

.proj-reel-scroll-hint {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    opacity: 0.7;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1000px) {
    .proj-grid           { grid-template-columns: repeat(2, 1fr); }
    .proj-meta-grid      { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .proj-desc           { grid-template-columns: 1fr; gap: 36px; }
    .proj-media-grid     { grid-template-columns: repeat(2, 1fr); }
    .proj-related-grid   { grid-template-columns: repeat(2, 1fr); }

    /* Split layout collapses: image on top, info below */
    .proj-split          { grid-template-columns: 1fr; margin-top: var(--nav-h); }
    .proj-split-media    { position: relative; top: 0; height: 55vw; min-height: 280px; }
    .proj-split-img-fade { display: none; }
    .proj-split-info     { min-height: auto; }
}

@media (max-width: 700px) {
    .cat-hero-body       { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cat-hero-right      { align-items: flex-start; }
    .proj-grid           { grid-template-columns: 1fr; }
    .proj-meta-grid      { grid-template-columns: repeat(2, 1fr); }
    .proj-media-grid     { grid-template-columns: 1fr; }
    .proj-related-grid   { grid-template-columns: 1fr; }
    .proj-hero-title     { font-size: clamp(28px, 8vw, 48px); }
    .proj-split-media    { height: 70vw; }
    .proj-split-title    { font-size: clamp(24px, 7vw, 36px); }
}
