/**
 * TMBD / Journal & Portfolio — shared editorial collections.
 * Loaded only when this collection renderer is requested by Sycow.
 * Local fonts and site palette; no third-party assets.
 */

.tmbd-collection {
    --tc-bg: #080807;
    --tc-gold: var(--tmbd-gold, #ac9c7b);
    --tc-gold-light: #dec9a6;
    --tc-ivory: #f5f1e9;
    --tc-white: #faf7f0;
    --tc-muted: #aaa298;
    --tc-line: rgba(255,255,255,.16);
    --tc-ease: cubic-bezier(.22,.75,.25,1);
    position: relative;
    width: 100%;
    overflow: clip;
    background: var(--tc-bg);
    color: var(--tc-white);
    font-family: var(--sy-font-body, 'Montserrat', sans-serif);
    font-weight: 400;
}
.tmbd-collection *,
.tmbd-collection *::before,
.tmbd-collection *::after { box-sizing: border-box; }
.tmbd-collection .tmbd-collection__container {
    width: min(1380px, calc(100% - clamp(40px, 9vw, 150px)));
    max-width: none;
    margin-inline: auto;
}
.tmbd-collection :is(h1,h2,h3,p) { margin-top: 0; }
.tmbd-collection :is(h1,h2,h3) { text-wrap: balance; }
.tmbd-collection a { text-decoration: none; color: inherit; }
.tmbd-collection a:focus-visible { outline: 2px solid var(--tc-gold-light); outline-offset: 5px; }
.tmbd-collection__eyebrow {
    margin: 0;
    color: var(--tc-gold);
    font: 600 10px/1.6 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .22em;
    text-transform: uppercase;
}
.tmbd-collection__eyebrow span { margin-inline: 4px; }

/* 01. Full-bleed visual, perfectly contained copy. */
.tmbd-collection__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(610px, 77svh, 850px);
    width: 100%;
    overflow: hidden;
    background: radial-gradient(ellipse at 72% 35%, #30271e 0, #15120e 49%, #050505 92%);
}
.tmbd-collection__hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;
}
.tmbd-collection__hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 45%;
    filter: saturate(.75);
}
.tmbd-collection__hero::before,
.tmbd-collection__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.tmbd-collection__hero::before {
    z-index: -2;
    background: linear-gradient(94deg, rgba(4,4,4,.87) 0%, rgba(4,4,4,.51) 54%, rgba(4,4,4,.12) 100%);
}
.tmbd-collection__hero::after {
    z-index: -1;
    background: linear-gradient(0deg, rgba(3,3,3,.89) 0%, rgba(3,3,3,.12) 48%, rgba(3,3,3,.32) 100%);
}
.tmbd-collection .tmbd-collection__hero-content {
    flex: 0 0 auto; /* Do NOT use flex:1 — it stretches the container edge-to-edge. */
    align-self: stretch;
    min-width: 0;
    padding-top: calc(var(--tmbd-header-h, 98px) + clamp(35px, 5vh, 75px));
    padding-bottom: clamp(54px, 7vh, 87px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 90px;
}
.tmbd-collection__hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(250,247,240,.84);
    font: 600 10px/1.5 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .21em;
    text-transform: uppercase;
}
.tmbd-collection__hero-top span span { color: var(--tc-gold); margin-inline: 7px; }
.tmbd-collection__hero-body { max-width: 1180px; }
.tmbd-collection__hero-body > .tmbd-collection__eyebrow { margin-bottom: clamp(20px, 3.1vw, 42px); }
.tmbd-collection__hero h1 {
    margin: 0;
    color: var(--tc-white);
    font-family: var(--sy-font-heading, 'League Spartan', sans-serif);
    font-weight: 400;
    font-size: clamp(88px, 11.6vw, 193px);
    line-height: .82;
    letter-spacing: -.07em;
}
.tmbd-collection__hero h1 em {
    display: inline-block;
    margin-top: .12em;
    color: var(--tc-gold-light);
    font: italic 400 .79em/1.08 Georgia, 'Times New Roman', serif;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
}
.tmbd-collection__hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    margin-top: clamp(45px, 6vw, 85px);
}
.tmbd-collection__hero-bottom p {
    max-width: 570px;
    margin: 0;
    color: rgba(252,248,242,.88);
    font-size: clamp(15px, 1.35vw, 20px);
    line-height: 1.76;
    font-weight: 300;
}
.tmbd-collection__hero-bottom a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(222,201,166,.85);
    color: var(--tc-white);
    font: 600 10px/1.5 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: color .25s ease, border-color .25s ease;
}
.tmbd-collection__hero-bottom a span { color: var(--tc-gold-light); font-size: 19px; }
.tmbd-collection__hero-bottom a:hover { color: var(--tc-gold-light); border-color: var(--tc-white); }

/* 02. Ivory pause, light enough not to compete with the photography. */
.tmbd-collection__introduction {
    padding: clamp(110px, 11.6vw, 180px) 0;
    background: var(--tc-ivory);
    color: #191611;
}
.tmbd-collection__intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.23fr) minmax(0, .77fr);
    gap: clamp(60px, 9vw, 145px);
    align-items: end;
}
.tmbd-collection__introduction .tmbd-collection__eyebrow { color: #8e7855; }
.tmbd-collection__intro-grid h2 {
    max-width: 850px;
    margin: 25px 0 0;
    font: 400 clamp(61px, 7.5vw, 124px)/.94 var(--sy-font-heading, 'League Spartan', sans-serif);
    letter-spacing: -.062em;
}
.tmbd-collection__intro-grid h2 em {
    color: #957d59;
    font: italic 400 .79em/1 Georgia, serif;
    letter-spacing: -.055em;
}
.tmbd-collection__intro-side { padding-bottom: 6px; }
.tmbd-collection__ornament {
    display: inline-block;
    margin-bottom: 30px;
    color: #a58c66;
    font: 400 43px/1 Georgia, serif;
}
.tmbd-collection__intro-side p {
    max-width: 470px;
    margin-bottom: 42px;
    color: #6c655c;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.95;
}
.tmbd-collection__intro-count {
    display: block;
    padding-top: 22px;
    border-top: 1px solid rgba(44,36,25,.2);
    color: #8b795f;
    font: 600 10px/1.5 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .19em;
    text-transform: uppercase;
}

/* 03. Image-led horizontal carousel: 2 projects/stories per view, 1 on mobile. */
.tmbd-collection__gallery {
    padding: clamp(95px, 10vw, 150px) 0 clamp(110px, 13vw, 190px);
    background: var(--tc-bg);
}
.tmbd-collection__gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    padding-bottom: clamp(36px, 4vw, 62px);
}
.tmbd-collection__gallery-header h2 {
    margin: 25px 0 0;
    font: 400 clamp(52px, 6vw, 100px)/.95 var(--sy-font-heading, 'League Spartan', sans-serif);
    letter-spacing: -.055em;
}
.tmbd-collection__gallery-count {
    padding-bottom: 8px;
    color: #9a8b76;
    font: 600 10px/1.6 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tmbd-collection__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    padding: 18px 0 45px;
    margin-bottom: 5px;
    border-top: 1px solid var(--tc-line);
}
.tmbd-collection__filters a {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    border-bottom: 1px solid transparent;
    color: #928c84;
    font: 600 10px/1.3 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: color .25s ease, border-color .25s ease;
}
.tmbd-collection__filters a:hover,
.tmbd-collection__filters a[aria-current="page"] { color: var(--tc-gold-light); border-bottom-color: var(--tc-gold); }
.tmbd-collection__carousel { min-width: 0; }
.tmbd-collection__carousel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0 25px;
    border-top: 1px solid var(--tc-line);
}
.tmbd-collection__carousel-caption {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #a89a86;
    font: 600 10px/1.5 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .18em;
    text-transform: uppercase;
}
.tmbd-collection__carousel-caption span { color: var(--tc-gold-light); font-size: 19px; }
.tmbd-collection__carousel-navigation { display: flex; align-items: center; gap: 10px; }
.tmbd-collection__carousel-arrow {
    display: grid;
    place-items: center;
    width: clamp(44px, 4vw, 54px);
    height: clamp(44px, 4vw, 54px);
    padding: 0;
    border: 1px solid rgba(176,156,119,.5);
    border-radius: 50%;
    background: transparent;
    color: var(--tc-gold-light);
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.tmbd-collection__carousel-arrow svg { display: block; width: 19px; height: 19px; }
.tmbd-collection__carousel-arrow:not(:disabled):hover {
    background: var(--tc-gold-light);
    border-color: var(--tc-gold-light);
    color: #12100c;
}
.tmbd-collection__carousel-arrow:disabled { opacity: .25; cursor: default; }
.tmbd-collection__carousel.is-static .tmbd-collection__carousel-navigation { display: none; }
.tmbd-collection__carousel-arrow:focus-visible,
.tmbd-collection__grid:focus-visible { outline: 2px solid var(--tc-gold-light); outline-offset: 4px; }
.tmbd-collection__grid {
    --tc-slide-gap: clamp(22px, 3.1vw, 48px);
    display: flex;
    gap: var(--tc-slide-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
    padding-bottom: 4px;
}
.tmbd-collection__grid::-webkit-scrollbar { display: none; }
.tmbd-collection__card {
    flex: 0 0 calc((100% - var(--tc-slide-gap)) / 2);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}
.tmbd-collection__carousel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 65px);
    margin-top: clamp(32px, 4vw, 58px);
    padding-top: 23px;
    border-top: 1px solid var(--tc-line);
}
.tmbd-collection__carousel-counter {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-shrink: 0;
    color: var(--tc-white);
    font: 400 clamp(23px, 2.5vw, 35px)/1 'League Spartan', var(--sy-font-heading, sans-serif);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.tmbd-collection__carousel-counter-divider { color: var(--tc-gold); font-size: .65em; }
.tmbd-collection__carousel-counter [data-tmbd-carousel-total] { color: #8c8273; font-size: .78em; }
.tmbd-collection__carousel-progress {
    position: relative;
    flex: 1;
    max-width: 480px;
    height: 1px;
    background: rgba(255,255,255,.19);
    overflow: hidden;
}
.tmbd-collection__carousel-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--tc-gold-light);
    transition: width .2s ease;
}
.tmbd-collection__card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.34;
    overflow: hidden;
    background: #191714;
}
.tmbd-collection__card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(4,4,4,.18), transparent 65%);
    transition: background-color .45s ease;
}
.tmbd-collection__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    filter: saturate(.89);
    transition: transform .85s var(--tc-ease), filter .6s ease;
}
.tmbd-collection__card-media:hover img,
.tmbd-collection__card-media:focus-visible img { transform: scale(1.045); filter: saturate(1); }
.tmbd-collection__image-corner {
    position: absolute;
    z-index: 2;
    top: clamp(14px, 2vw, 24px);
    right: clamp(14px, 2vw, 24px);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    color: var(--tc-white);
    font-size: 21px;
    font-weight: 300;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity .3s ease, transform .35s ease;
}
.tmbd-collection__card-media:hover .tmbd-collection__image-corner,
.tmbd-collection__card-media:focus-visible .tmbd-collection__image-corner { opacity: 1; transform: none; }
.tmbd-collection__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #ad9776;
    background: radial-gradient(ellipse at center, #27221b, #11100d 80%);
    text-align: center;
    font: 600 clamp(13px, 1.25vw, 19px)/1.6 'Syne', sans-serif;
    text-transform: uppercase;
    letter-spacing: .25em;
}
.tmbd-collection__placeholder span:last-child { font-size: 35px; line-height: 1; }
.tmbd-collection__card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 25px;
    color: #a89c8a;
    font: 600 9px/1.6 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .2em;
    text-transform: uppercase;
}
.tmbd-collection__card h3 {
    margin: 18px 0 17px;
    color: var(--tc-white);
    font: 400 clamp(30px, 3.2vw, 57px)/1.05 var(--sy-font-heading, 'League Spartan', sans-serif);
    letter-spacing: -.045em;
}
.tmbd-collection__card h3 a { transition: color .25s ease; }
.tmbd-collection__card h3 a:hover { color: var(--tc-gold-light); }
.tmbd-collection__card-link {
    display: inline-flex;
    align-items: center;
    gap: 21px;
    padding: 6px 0 9px;
    border-bottom: 1px solid var(--tc-gold);
    color: var(--tc-gold-light) !important;
    font: 600 10px/1.4 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: gap .25s ease;
}
.tmbd-collection__card-link span { font-size: 17px; }
.tmbd-collection__card-link:hover { gap: 28px; }

/* 04. Pagination and empty states */
.tmbd-collection__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(80px, 10vw, 140px);
    padding-top: 37px;
    border-top: 1px solid var(--tc-line);
}
.tmbd-collection__pagination > a,
.tmbd-collection__pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    min-height: 39px;
    padding: 8px 10px;
    color: #b6ada0;
    font: 600 11px/1.3 'Syne', var(--sy-font-menu, sans-serif);
    transition: color .25s ease, background-color .25s ease;
}
.tmbd-collection__pagination > a:hover,
.tmbd-collection__pagination > a[aria-current="page"],
.tmbd-collection__pagination > span.current { color: #18130b; background: var(--tc-gold-light); }
.tmbd-collection__pagination > a[rel] { padding-inline: 17px; }
.tmbd-collection__empty {
    padding: clamp(90px, 13vw, 180px) 16px;
    border-block: 1px solid var(--tc-line);
    text-align: center;
}
.tmbd-collection__empty > span { color: var(--tc-gold); font-size: 40px; }
.tmbd-collection__empty h3 { margin: 20px 0 18px; font-size: clamp(35px, 4.3vw, 66px); font-weight: 400; }
.tmbd-collection__empty p { max-width: 530px; margin-inline: auto; color: var(--tc-muted); line-height: 1.8; }

/* 05. Final invitation / shared signature */
.tmbd-collection__closing {
    padding: clamp(105px, 13vw, 195px) 0;
    color: #16120c;
    background: #bea880;
}
.tmbd-collection__closing-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}
.tmbd-collection__closing .tmbd-collection__eyebrow { color: #403323; }
.tmbd-collection__closing h2 {
    margin: 10px 0 17px;
    font: 400 clamp(70px, 9.5vw, 165px)/.89 var(--sy-font-heading, 'League Spartan', sans-serif);
    letter-spacing: -.075em;
}
.tmbd-collection__closing h2 em { color: #fff9ed; font: italic 400 .77em/1 Georgia, serif; }
.tmbd-collection__closing a {
    display: inline-flex;
    align-items: center;
    gap: 42px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1b1710;
    color: #16120c;
    font: 600 11px/1.4 'Syne', var(--sy-font-menu, sans-serif);
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: gap .2s ease;
}
.tmbd-collection__closing a:hover { gap: 56px; }
.tmbd-collection__closing a span { font-size: 21px; }

@media (max-width: 1050px) {
    .tmbd-collection__intro-grid { grid-template-columns: 1fr; gap: 55px; }
    .tmbd-collection__intro-side p { max-width: 760px; margin-bottom: 30px; }
    .tmbd-collection__ornament { margin-bottom: 18px; }
    .tmbd-collection__hero h1 { font-size: clamp(80px, 12vw, 135px); }
    .tmbd-collection__grid { --tc-slide-gap: 24px; }
    .tmbd-collection__card h3 { font-size: clamp(29px, 3.7vw, 44px); }
}
@media (max-width: 700px) {
    .tmbd-collection .tmbd-collection__container { width: calc(100% - 38px); }
    .tmbd-collection__hero { min-height: clamp(560px, 85svh, 770px); }
    .tmbd-collection__hero-image img { object-position: 57% center; }
    .tmbd-collection__hero::before { background: rgba(3,3,3,.45); }
    .tmbd-collection__hero::after { background: linear-gradient(0deg, rgba(3,3,3,.94), rgba(3,3,3,.08) 65%, rgba(3,3,3,.55)); }
    .tmbd-collection .tmbd-collection__hero-content { padding-top: calc(var(--tmbd-header-h, 82px) + 28px); padding-bottom: 49px; gap: 90px; }
    .tmbd-collection__hero-top { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 9px; }
    .tmbd-collection__hero h1 { font-size: clamp(65px, 13.2vw, 100px); line-height: .91; }
    .tmbd-collection__hero h1 em { font-size: .82em; margin-top: .13em; }
    .tmbd-collection__hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 38px; }
    .tmbd-collection__hero-bottom p { font-size: 15px; }
    .tmbd-collection__introduction { padding: 88px 0 100px; }
    .tmbd-collection__intro-grid { gap: 28px; }
    .tmbd-collection__intro-grid h2 { margin-top: 22px; font-size: clamp(54px, 11.5vw, 84px); }
    .tmbd-collection__intro-side p { font-size: 15px; }
    .tmbd-collection__gallery { padding: 80px 0 110px; }
    .tmbd-collection__gallery-header { align-items: flex-start; flex-direction: column; gap: 18px; padding-bottom: 29px; }
    .tmbd-collection__gallery-header h2 { font-size: clamp(51px, 11vw, 75px); }
    .tmbd-collection__filters { gap: 5px 22px; padding: 16px 0 29px; }
    .tmbd-collection__filters a { font-size: 9px; }
    .tmbd-collection__grid { --tc-slide-gap: 18px; }
    .tmbd-collection__card { flex-basis: 100%; }
    .tmbd-collection__carousel-caption { font-size: 9px; letter-spacing: .12em; }
    .tmbd-collection__carousel-top { padding-top: 12px; padding-bottom: 22px; }
    .tmbd-collection__carousel-bottom { margin-top: 33px; }
    .tmbd-collection__card-media { aspect-ratio: 1.16; }
    .tmbd-collection__card-meta { padding-top: 20px; }
    .tmbd-collection__card h3 { margin: 14px 0; font-size: clamp(34px, 8vw, 46px); }
    .tmbd-collection__image-corner { opacity: 1; transform: none; width: 35px; height: 35px; font-size: 18px; }
    .tmbd-collection__pagination { margin-top: 80px; }
    .tmbd-collection__closing { padding: 95px 0 105px; }
    .tmbd-collection__closing h2 { font-size: clamp(67px, 13.5vw, 110px); }
}
@media (prefers-reduced-motion: reduce) {
    .tmbd-collection *,
    .tmbd-collection *::before,
    .tmbd-collection *::after {
        transition: none !important;
        animation: none !important;
    }
}
