/*
Theme Name: Cineframe
Author: Michele (Mics.space)
Author URI: https://mics.space
Description: Dark, video-first portfolio theme by Mics.space: fullscreen hero video (separate desktop and mobile files), video grid with hover previews, lightbox, AJAX category filter and drag-and-drop video ordering.
Version: 1.6.1
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cineframe
Tags: dark, portfolio, video, custom-logo, custom-menu, featured-images, footer-widgets
*/

@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #0a0a0a;
	--surface: #141414;
	--line: rgba(255, 255, 255, .14);
	--text: #fff;
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--header-h: 84px;
	--gutter: clamp(16px, 4vw, 48px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
body.wp-custom-logo { --header-h: max(84px, calc(var(--logo-h, 48px) + 36px)); }
body.panel-open, body.lb-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 600; line-height: 1.2; letter-spacing: .02em; color: var(--text); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
::selection { background: rgba(255, 255, 255, .25); color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip-path: none; padding: 10px 16px; background: #000; }

.container { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - var(--gutter) * 2)); }

.btn, .comment-form .submit {
	display: inline-block; padding: 15px 36px; border: .5px solid rgba(255, 255, 255, .7); background: transparent; color: #fff;
	font-family: var(--title-ff, var(--font)); font-size: 13px; font-weight: var(--title-fw, 300); line-height: 1; letter-spacing: var(--title-ls, .14em); text-transform: var(--title-tt, uppercase); cursor: pointer; transition: border-color .3s, background .3s;
}
.btn:hover, .comment-form .submit:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .4s; }
body:not(.has-hero) .site-header, .site-header.is-scrolled { background: rgba(10, 10, 10, .92); backdrop-filter: blur(8px); }
.has-hero .site-header:not(.is-scrolled) { background: linear-gradient(rgba(0, 0, 0, var(--hdr-shadow, .55)), transparent); }
.site-header__inner { display: flex; align-items: center; gap: 36px; height: 100%; padding-inline: var(--gutter); }
.site-branding { margin-right: auto; }
.site-title { font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.custom-logo { width: auto; height: var(--logo-h, 48px); max-width: 60vw; object-fit: contain; object-position: left center; }

.main-nav .menu { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav a { position: relative; display: block; padding: 8px 0; font-size: var(--menu-fs, 13px); font-weight: var(--menu-fw, 500); letter-spacing: .14em; text-transform: uppercase; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); }
.main-nav .sub-menu { position: absolute; top: 100%; left: -22px; min-width: 210px; margin: 0; padding: 14px 22px; list-style: none; background: transparent; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); padding: 6px 0; text-transform: none; letter-spacing: .04em; }

.search-toggle { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -12px; color: #fff; opacity: .85; transition: opacity .3s; }
.search-toggle:hover { opacity: 1; }
.search-toggle svg { width: 20px; height: 20px; }
.search-bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h); display: flex; align-items: center; background: #0a0a0a; transform: translateY(-100%); transition: transform .4s var(--ease); }
.search-open .search-bar { transform: none; }
.search-bar__inner { display: flex; align-items: center; gap: 20px; width: 100%; padding-inline: var(--gutter); }
.search-bar .search-form { flex: 1; margin: 0; border-bottom: 1px solid var(--line); }
.search-bar .search-field { outline: 0; font-family: var(--title-ff, var(--font)); font-size: 18px; font-weight: var(--title-fw, 300); letter-spacing: var(--title-ls, .14em); text-transform: var(--title-tt, uppercase); }
.search-bar__close { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; }
.search-bar__close svg { width: 24px; height: 24px; }
.search-submit svg { display: block; width: 20px; height: 20px; }
.side-panel .search-field { outline: 0; }
.side-panel .search-form { align-items: center; padding: 0 16px; margin-bottom: 40px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.side-panel .search-form label { order: 2; }
.side-panel .search-submit { order: 1; opacity: .7; }
.side-panel .footer-social { padding: 0; }
.side-panel .footer-social__icons { display: block; margin-inline: -11px; }
.side-panel .footer-social .widget-title { margin: 0 0 16px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.side-panel .footer-social a { display: inline-block; width: 22px; height: 22px; margin: 0 11px; }
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 18px; }
.menu-toggle span { display: block; height: 2px; background: #fff; transition: width .3s var(--ease); }
.menu-toggle span:nth-child(2) { width: 65%; margin-left: auto; }
.menu-toggle:hover span { width: 100%; }

/* Side panel */
.side-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(var(--panel-w, 420px), 100%); text-align: var(--panel-align, left); padding: 96px 40px 40px; overflow-y: auto; background: #0e0e0e; transform: translateX(100%); transition: transform .5s var(--ease); }
.panel-open .side-panel { transform: none; }
.panel-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: .4s; }
.panel-open .panel-overlay { opacity: 1; visibility: visible; }
.side-panel__close { position: absolute; top: 28px; right: 32px; display: grid; place-items: center; width: 36px; height: 36px; }
.side-panel__close svg { width: 26px; height: 26px; }
.side-panel .menu { margin: 0 0 44px; padding: 0; list-style: none; }
.side-panel .menu a { display: block; padding: 8px 0; text-transform: var(--panel-tt, none); font-size: var(--panel-fs, 22px); font-weight: var(--panel-fw, 600); letter-spacing: .02em; }
.side-panel .sub-menu { padding-left: 16px; list-style: none; }
.side-panel .sub-menu a { font-size: calc(var(--panel-fs, 22px) * .75); }

/* Widgets & search */
.widget { margin-bottom: 40px; }
.widget-title, .widget .wp-block-heading { margin-bottom: 16px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 4px 0; }
.widget a:hover { text-decoration: underline; text-underline-offset: 4px; }
.search-form { display: flex; gap: 12px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 0; border: 0; background: none; color: #fff; font: inherit; }
.search-field::placeholder { color: #fff; opacity: .7; }
.search-submit { border: 0; background: none; color: #fff; font: 600 12px var(--font); letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }

/* Hero */
.hero { position: relative; display: grid; place-items: center; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; text-align: center; background: #000 center / cover no-repeat; }
.hero__media, .hero__overlay { position: absolute; inset: 0; }
video::-webkit-media-controls-start-playback-button { display: none !important; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100%; border: 0; transform: translate(-50%, -50%); pointer-events: none; }
.hero__overlay { background: rgba(0, 0, 0, var(--overlay, .35)); }
.hero__content { position: relative; z-index: 2; max-width: 1100px; padding: 0 var(--gutter); }
.hero__title { margin: 0; font-size: clamp(36px, 7vw, 96px); font-weight: 700; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; animation: rise 1.2s var(--ease) .2s both; }
.hero__subtitle { margin: 22px 0 0; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: .04em; animation: rise 1.2s var(--ease) .45s both; }
.hero__controls { position: absolute; left: var(--gutter); bottom: 40px; z-index: 3; display: flex; gap: 12px; }
.hero__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; transition: border-color .3s, background .3s; }
.hero__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.hero__btn svg { width: 18px; height: 18px; }
.hero .icon-play, .hero .icon-volume, .hero.is-paused .icon-pause, .hero.is-unmuted .icon-mute { display: none; }
.hero.is-paused .icon-play, .hero.is-unmuted .icon-volume { display: block; }
.hero__loader { position: absolute; top: 50%; left: 50%; margin: -22px 0 0 -22px; z-index: 3; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; left: 50%; bottom: 34px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; transform: translateX(-50%); }
.hero__scroll::after { content: ""; width: 1px; height: 48px; background: linear-gradient(#fff, transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Video grid */
:root { --footer-gap: 28px; }
.videos { padding: 0 0 var(--footer-gap); }
.site-main:has(.videos) { padding-bottom: 0; }
.no-footer .videos { padding-bottom: 0; }
.no-footer.post-type-archive-video .site-main, .no-footer.tax-video_category .site-main { padding-bottom: 0; }
.section-title { margin-bottom: 30px; text-align: center; font-size: clamp(24px, 3vw, 38px); letter-spacing: .06em; text-transform: uppercase; }
.video-filter ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 34px; margin: 0 0 52px; padding: 0 var(--gutter); list-style: none; }
.video-filter a { display: block; padding: 6px 0; border-bottom: 1px solid transparent; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: border-color .3s; }
.video-filter a:hover, .video-filter a.is-active { border-color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); transition: opacity .3s; }
.video-grid.cols-3 { --cols: 3; }
.is-loading .video-grid { opacity: .4; pointer-events: none; }
.no-videos { grid-column: 1 / -1; padding: 60px 0; text-align: center; }
.videos__more { margin-top: 32px; text-align: center; }

.video-card { position: relative; aspect-ratio: 1920 / 800; overflow: hidden; background: #0a0a0a; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.video-card__link { position: absolute; inset: 0; }
.video-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .05) 55%); }
.video-card__img, .video-card__preview, .video-card__placeholder { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; transition: transform 1.4s var(--ease), opacity .5s; }
.video-card__placeholder { background: linear-gradient(135deg, #1e1e1e, #0a0a0a); }
.video-card__preview { opacity: 0; }
.video-card.is-previewing .video-card__preview { opacity: 1; }
.video-card:hover .video-card__img { transform: scale(1.05); }
.video-card__title { position: absolute; left: 30px; right: 30px; bottom: 24px; z-index: 2; margin: 0; font-family: var(--title-ff, var(--font)); font-size: var(--title-fs, 15px); font-weight: var(--title-fw, 500); letter-spacing: var(--title-ls, .14em); text-transform: var(--title-tt, uppercase); }
.video-card.no-title .video-card__link::after { display: none; }
.video-card__play { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; opacity: 0; transform: scale(.8); transition: opacity .35s, transform .35s var(--ease), border-color .3s, background .3s; }
.video-card:hover .video-card__play, .video-card__play:focus-visible { opacity: 1; transform: none; }
.video-card__play:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.video-card__play svg { width: 18px; height: 18px; }
@media (hover: none) { .video-card__play { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .video-grid.cols-3 { --cols: 2; } }
@media (max-width: 700px) {
	.video-grid, .video-grid.cols-3 { --cols: 1; }
	.video-card__title { left: 20px; right: 20px; bottom: 16px; }
	.cf-ca .video-grid { width: 100vw; margin-inline: calc(50% - 50vw); }
	.site-main { min-height: 0; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2147483000; height: 100vh; height: 100dvh; display: grid; place-items: center; padding: 64px var(--gutter); background: rgba(0, 0, 0, .94); animation: fade .3s both; }
.lightbox__body { --reserve: calc(128px + var(--r-title, 0px) + var(--r-cta, 0px)); display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.lightbox__body.has-cta { --r-cta: 82px; }
.lightbox__body.has-title { --r-title: 36px; }
.lightbox__title { margin: 0; text-align: center; font-family: var(--title-ff, var(--font)); font-size: var(--title-fs, 15px); font-weight: var(--title-fw, 500); letter-spacing: var(--title-ls, .14em); text-transform: var(--title-tt, uppercase); }
.lightbox__inner { width: min(1280px, 100%, calc((100vh - var(--reserve)) * 16 / 9)); aspect-ratio: 16 / 9; }
.video-cta { margin: 0 0 40px; }
.lightbox__inner { position: relative; }
.lightbox__loader { position: absolute; top: 50%; left: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .9s linear infinite; pointer-events: none; }
.lightbox__loader[hidden] { display: none; }
/* custom player bar for local videos */
.lightbox__inner video { cursor: pointer; }
.lightbox__inner:fullscreen { width: 100%; max-width: none; background: #000; }
.cfp { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 22px 14px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cfp { transition: opacity .4s; }
.is-idle .cfp { opacity: 0; pointer-events: none; }
.is-idle video { cursor: none; }
.cfp__btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.cfp__btn svg { width: 20px; height: 20px; fill: currentColor; }
.cfp__track { position: relative; flex: 1; height: 3px; background: rgba(255, 255, 255, .25); }
.cfp__buf, .cfp__pos { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.cfp__buf { background: rgba(255, 255, 255, .3); }
.cfp__pos { background: #fff; }
.cfp__seek { position: absolute; left: 0; top: -14px; width: 100%; height: 31px; margin: 0; opacity: 0; cursor: pointer; }
.lightbox__inner iframe, .lightbox__inner video { width: 100%; height: 100%; border: 0; background: #000; }
.lightbox__close { position: fixed; top: max(18px, calc(env(safe-area-inset-top) + 10px)); right: max(22px, calc(env(safe-area-inset-right) + 12px)); z-index: 2147483000; border-radius: 50%; background: rgba(0, 0, 0, .55) !important; -webkit-transform: translateZ(0); transform: translateZ(0); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: #fff !important; cursor: pointer; outline: 0 !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent; }
.lightbox__close:focus-visible { opacity: .7; }
.lightbox__close svg { display: block; width: 28px; height: 28px; stroke: currentColor; }
@keyframes fade { from { opacity: 0; } }

/* Content */
.site-main { min-height: 60vh; }
body:not(.has-hero) .site-main { padding-top: calc(var(--header-h) + 56px); padding-bottom: 90px; }
.page-header { margin-bottom: 44px; text-align: center; }
.page-title { font-size: clamp(30px, 4.5vw, 56px); letter-spacing: .05em; text-transform: uppercase; }
.archive-description { max-width: 640px; margin: 0 auto; }
.page-header + .videos { padding-top: 0; }

.video-single .player { width: min(1400px, 100%, calc((100vh - var(--header-h) - 160px) * 16 / 9)); margin: 0 auto 56px; aspect-ratio: 16 / 9; background: #000; }
.video-close { display: flex; justify-content: flex-end; width: min(1400px, 100%); margin: 0 auto; padding: 0 max(12px, var(--gutter)) 6px; color: #fff; }
.video-close svg { width: 28px; height: 28px; }
.video-single .player:empty { display: none; }
.video-single .video-info { width: min(1400px, calc(100% - var(--gutter) * 2), calc((100vh - var(--header-h) - 160px) * 16 / 9)); margin-inline: auto; }
.video-single .video-info .entry-header { margin-bottom: 22px; }
.video-single .video-info { text-align: center; }
.video-single .entry-content { max-width: 760px; margin-inline: auto; text-align: left; }
.player iframe, .player video, .player img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.entry-header { margin-bottom: 30px; }
.entry-header--hidden { margin: 0; }
.entry-cats, .entry-meta { margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.entry-cats a:hover { text-decoration: underline; }
.entry-title { font-size: clamp(28px, 4vw, 52px); }
.video-single .entry-title { font-family: var(--title-ff, var(--font)); font-size: var(--title-fs, 15px); font-weight: var(--title-fw, 500); letter-spacing: var(--title-ls, .14em); text-transform: var(--title-tt, uppercase); }
.entry-thumb { width: 100%; margin-bottom: 36px; }
.entry-content { font-size: 17px; overflow-wrap: anywhere; }
/* Pages start at the same height: no leading margin, empty paragraph or line break */
.page .entry-content > :first-child, .page .entry-content > :first-child > :first-child { margin-top: 0 !important; }
.page .entry-content > p:empty, .page .entry-content > br:first-child { display: none; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content table { width: 100%; font-size: .82em; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 10px 14px; border: .5px solid rgba(255, 255, 255, .3); text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; hyphens: none; }
.entry-content th { font-weight: 600; white-space: nowrap; }
.entry-content td:first-child { white-space: nowrap; }
.entry-content td:last-child { min-width: 180px; }
.entry-content img, .entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content pre { max-width: 100%; overflow-x: auto; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a.btn, .entry-content a.cf-404__btn { text-decoration: none; }
.entry-content blockquote { margin-left: 0; padding-left: 24px; border-left: 2px solid #fff; font-size: 1.15em; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { margin-top: 8px; font-size: 14px; }

/* Brevo (Sendinblue) newsletter form: blend with the theme, override its inline styles */
.entry-content .sib-form, .entry-content .sib-form-container, .entry-content #sib-container { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; text-align: left !important; }
.cf-ca .video-card { scroll-margin-top: 110px; }
.sib-form, .sib-form-message-panel, #sib-container, #error-message, #success-message { scroll-margin-top: calc(var(--header-h) + 24px); }
.cf-ca .video-card:target .video-card__link { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 4px; }
.cf-showcase, .cf-pw, .cf-404 { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: fit-content; max-width: min(420px, 100%); margin: 0; text-align: left; }
.cf-showcase p, .cf-pw p, .cf-404 p { margin: 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 300; }
.cf-showcase__btn, .cf-pw__btn, .cf-404__btn { box-sizing: border-box; width: 100%; text-align: center; }
.cf-showcase input, .cf-pw__input { box-sizing: border-box; width: 100%; padding: 14px 16px; border: .5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); color: #fff; caret-color: #fff; color-scheme: dark; font: inherit; border-radius: 0; }
.cf-showcase input::placeholder { color: rgba(255, 255, 255, .5); }
.cf-showcase input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #1a1a1a inset; caret-color: #fff; }
.cf-showcase input:focus { outline: 0; border-color: #fff; }
.cf-showcase__btn { padding: 15px 36px; border: .5px solid rgba(255, 255, 255, .7); font-size: 13px; font-weight: var(--title-fw, 300); letter-spacing: var(--title-ls, .14em); text-transform: var(--title-tt, uppercase); }
a.cf-showcase__btn { display: inline-block; color: inherit; text-decoration: none; }
.cf-showcase__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.cf-showcase__msg { opacity: .8; }
.entry-content #sib-container * { font-family: inherit !important; letter-spacing: inherit; }
.entry-content #sib-container .sib-form-block, .entry-content #sib-container .sib-form-block p { background: transparent !important; text-align: left !important; font-size: inherit !important; }
.entry-content #sib-container .sib-form-block[style*="32px"] p { margin: 0 0 .4em; font-size: 1.5em !important; font-weight: 600 !important; line-height: 1.2; }
.entry-content #sib-container .sib-form-block p, .entry-content #sib-container .sib-text-form-block p { margin: 0; font-size: 1em !important; font-weight: inherit !important; }
.entry-content #sib-container label.entry__label { margin-bottom: 8px; font-size: .9em !important; font-weight: 500 !important; }
.entry-content #sib-container .entry__specification { font-size: .72em !important; line-height: 1.5; opacity: .75; color: #fff !important; }
.entry-content #sib-container .entry__choice span, .entry-content #sib-container .entry__choice p { color: #fff !important; font-size: .85em !important; }
.entry-content #sib-container .sib-form__declaration > div:last-child, .entry-content #sib-container .sib-form__declaration p { color: rgba(255, 255, 255, .7) !important; font-size: .75em !important; }
.entry-content #sib-container a { color: #fff !important; }
.entry-content #sib-container .input { width: 100%; padding: 14px 16px !important; border: .5px solid rgba(255, 255, 255, .7) !important; border-radius: 0 !important; background: transparent !important; color: #fff !important; font-size: 1em !important; box-sizing: border-box; }
.entry-content #sib-container .entry__field, .entry-content #sib-container .sib-form-block .input, .entry-content #sib-container input.input { background: rgba(255, 255, 255, .06) !important; color: #fff !important; -webkit-text-fill-color: #fff; caret-color: #fff; color-scheme: dark; box-shadow: none !important; }
.entry-content #sib-container .entry__field { padding: 0 !important; border: 0 !important; }
.entry-content #sib-container .entry__field input.input { background: transparent !important; }
.entry-content #sib-container input.input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #1a1a1a inset !important; }
.entry-content #sib-container .g-recaptcha { filter: invert(1) hue-rotate(180deg); }
.entry-content #sib-container .input::placeholder { color: rgba(255, 255, 255, .45) !important; }
.entry-content #sib-container .input:focus { outline: 0; border-color: #fff !important; }
.entry-content #sib-container .sib-form-block__button { display: inline-block; width: auto !important; padding: 15px 36px !important; border: .5px solid rgba(255, 255, 255, .7) !important; border-radius: 0 !important; background: transparent !important; color: #fff !important; font-size: 13px !important; font-weight: var(--title-fw, 300) !important; letter-spacing: var(--title-ls, .14em) !important; text-transform: var(--title-tt, uppercase) !important; cursor: pointer; }
.entry-content #sib-container .sib-form-block__button:hover { border-color: #fff !important; background: rgba(255, 255, 255, .1) !important; }
.entry-content #sib-container .entry__error { background: transparent !important; color: #ff8a8a !important; border: 0 !important; }
.entry-content .sib-form-message-panel { max-width: none !important; }
:where(.entry-content .sib-form-message-panel) { display: none; }
.entry-content .sib-form-message-panel { margin-bottom: 16px; padding: 12px 16px; font-size: .85em !important; }
.entry-content .sib-notification__icon { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.entry-content .sib-hide-loader-icon { display: none; }
.entry-content #sib-container .sib-form-block, .entry-content #sib-container .sib-input, .entry-content #sib-container .sib-optin, .entry-content #sib-container .sib-form__declaration, .entry-content #sib-container form > div { padding-left: 0 !important; padding-right: 0 !important; }
.entry-content #sib-container .sib-form-block { word-wrap: break-word; outline: none; }
.entry-content #sib-container br, .entry-content #sib-container p:empty { display: none; }
/* Brevo: centered theme-style button, white icons, larger tap-friendly checkbox */
.entry-content #sib-container .sib-form-block__button { display: block; box-sizing: border-box; width: 100% !important; margin: 8px 0 0 !important; text-align: center; }
/* Contact form: same width as the other info pages (left aligned), fields and Subscribe button as wide as the form */
.entry-content .sib-form, .entry-content #sib-form-container, .entry-content .sib-form-container, .entry-content #sib-container { max-width: 440px !important; }
.entry-content #sib-container .sib-form-block:has(.sib-form-block__button) { text-align: left !important; }
.entry-content #sib-container svg.svgIcon-sphere { filter: brightness(0) invert(1); }
.entry-content #sib-container .sib-notification__icon, .entry-content #sib-container .sib-icon { fill: #fff !important; }
.entry-content #sib-container .entry__choice label { display: grid !important; grid-template-columns: 28px 1fr; align-items: start; column-gap: 14px; min-height: 44px; margin: 0 !important; padding: 0 !important; cursor: pointer; }
.entry-content #sib-container .entry__choice .input_replaced { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; opacity: 0 !important; pointer-events: none; }
.entry-content #sib-container .entry__choice .checkbox::before { content: none !important; display: none !important; }
.entry-content #sib-container .entry__choice label > span:not(.checkbox) { grid-column: 2; margin: 0 !important; padding: 0 !important; }
.entry-content #sib-container .entry__choice .checkbox { position: relative !important; grid-column: 1; display: block !important; box-sizing: border-box; width: 28px !important; height: 28px !important; margin: 0 !important; border: .5px solid rgba(255, 255, 255, .7) !important; border-radius: 0 !important; background: rgba(255, 255, 255, .06) !important; background-image: none !important; box-shadow: none !important; }
.entry-content #sib-container .entry__choice .checkbox::after { content: ""; position: absolute !important; left: 50% !important; top: 46% !important; width: 7px !important; height: 14px !important; margin: 0 !important; border: solid #000 !important; border-width: 0 2px 2px 0 !important; background: none !important; transform: translate(-50%, -50%) rotate(45deg) !important; opacity: 0 !important; }
.entry-content #sib-container .entry__choice .input_replaced:checked + .checkbox { background: #fff !important; border-color: #fff !important; }
.entry-content #sib-container .entry__choice .input_replaced:checked + .checkbox::after { opacity: 1 !important; display: block !important; }
.entry-content #sib-container .entry__choice, .entry-content #sib-container .entry__choice * { margin-left: 0 !important; padding-left: 0 !important; text-indent: 0 !important; left: auto; }
.entry-content #sib-container .entry__choice .input_replaced { position: absolute !important; left: 0 !important; }
.entry-content #sib-container .entry__choice p { margin: 3px 0 0 !important; line-height: 1.5; text-align: left !important; }
.entry-content #sib-container .input--hidden { display: none !important; }
.entry-content .declaration-block-icon { margin-bottom: 10px; }
.entry-content .declaration-block-icon svg { max-width: 48px; max-height: 48px; }
.front-content { padding-bottom: 90px; }

.post-navigation, .comments-area { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.nav-next { margin-left: auto; text-align: right; }
.nav-links .meta-nav { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.nav-links a:hover { text-decoration: underline; }

.post-list { display: grid; gap: 64px; }
.post-item__thumb img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; margin-bottom: 22px; }
.post-item__title { font-size: 28px; }
.post-item__title a:hover { text-decoration: underline; }
.pagination { margin-top: 64px; }
.pagination .nav-links { justify-content: center; gap: 10px; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--line); }
.page-numbers.current { border-color: #fff; }

.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: 14px; }
.avatar { float: left; margin-right: 14px; border-radius: 50%; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); background: transparent; color: #fff; font: inherit; }

/* Footer */
.site-footer { --foot-line: rgba(255, 255, 255, .3); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 1px; background: var(--foot-line); }
.site-footer { --footer-gap: 28px; font-family: var(--title-ff, var(--font)); font-size: 13px; font-weight: var(--title-fw, 300); letter-spacing: var(--title-ls, .14em); text-transform: var(--title-tt, uppercase); text-align: center; }
.footer-widgets { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; padding: var(--footer-gap) 0; }
.footer-col { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 28px; }
.footer-col .widget { margin: 0; }
.footer-col .widget-title, .footer-col .widget p, .footer-col .widget a { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.footer-social { padding: 0 0 var(--footer-gap); }
.footer-social__icons { display: flex; justify-content: center; gap: 22px; }
.footer-widgets:empty + .footer-social, .container > .footer-social:first-child { padding-top: var(--footer-gap); }
.footer-widgets + .footer-social { margin-top: -10px; }
.footer-social a { display: block; width: 18px; height: 18px; opacity: .75; transition: opacity .3s; }
.footer-social a:hover { opacity: 1; }
.footer-social svg { display: block; width: 100%; height: 100%; }
.footer-widgets--bottom { position: relative; }
.footer-social + .footer-widgets--bottom { padding-top: 0; }
.footer-social:has(+ .footer-widgets--bottom) { padding-bottom: 26px; }
.footer-widgets--bottom { padding-top: 0; padding-bottom: calc(var(--footer-gap) * 1.6); font-size: .78em; letter-spacing: .1em; opacity: .5; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* Footer on small screens (kept last so it wins over the base footer rules) */
@media (max-width: 700px) {
	:root { --footer-gap: 22px; }
	.site-footer { font-size: clamp(9.5px, 3vw, 12px); letter-spacing: .03em; }
	.footer-widgets { gap: 14px; }
	.footer-col { gap: 6px 14px; }
	.footer-col .widget { white-space: nowrap; }
	.panel-overlay { background: rgba(0, 0, 0, .3); }
	.side-panel { width: min(var(--panel-w, 420px), 80%); padding-inline: 28px; background: rgba(14, 14, 14, .68); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}

/* Download page (ZIP of selected files) */
.cf-dl { max-width: 900px; margin: 0 auto; padding-bottom: 0; }
body:not(.has-hero) .site-main:has(.cf-dl) { padding-bottom: 50px; }
.cf-dl__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 14px; border-bottom: .5px solid var(--line); }
.cf-dl__count { font-size: 13px; opacity: .7; letter-spacing: .06em; }
.cf-dl__list { margin: 0; padding: 0; list-style: none; }
.cf-dl__item { position: relative; display: flex; align-items: center; border-bottom: .5px solid var(--line); }
.cf-dl__row, .cf-dl__all { display: flex; align-items: center; gap: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cf-dl__row { flex: 1; min-width: 0; padding: 18px 0; display: grid; grid-template-columns: auto 200px 1fr; column-gap: 20px; align-items: center; }
.cf-dl__row input, .cf-dl__all input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-dl__box { flex: none; width: 22px; height: 22px; border: .5px solid rgba(255, 255, 255, .7); position: relative; transition: border-color .2s; }
.cf-dl__box::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #fff; border-width: 0 1px 1px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.cf-dl__row:hover .cf-dl__box, .cf-dl__all:hover .cf-dl__box { border-color: #fff; }
input:checked + .cf-dl__box { border-color: #fff; }
input:checked + .cf-dl__box::after { opacity: 1; }
input:indeterminate + .cf-dl__box::after { opacity: 1; left: 5px; top: 10px; width: 10px; height: 0; border-width: 1px 0 0; transform: none; }
input:focus-visible + .cf-dl__box { outline: 1px solid #fff; outline-offset: 3px; }
.cf-dl__thumb { display: block; aspect-ratio: 2.35 / 1; background: #141414; overflow: hidden; pointer-events: none; }
.cf-dl__thumb video, .cf-dl__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-dl__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-dl__row:not(:has(.cf-dl__thumb)) { grid-template-columns: auto 1fr; }
.cf-dl__name { font-size: 17px; letter-spacing: .04em; overflow-wrap: anywhere; }
.cf-dl__info { font-size: 12px; letter-spacing: .08em; opacity: .6; }
.cf-dl__single { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; opacity: .6; }
.cf-dl__single:hover { opacity: 1; }
.cf-dl__single svg { width: 22px; height: 22px; }
.cf-dl__actions { position: sticky; bottom: 0; z-index: 5; padding: 16px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 16px; background: var(--bg); text-align: center; }
.cf-dl__btn { width: 100%; max-width: 420px; padding: 17px 28px; border: .5px solid rgba(255, 255, 255, .7); background: transparent; font-size: 13px; font-weight: var(--title-fw, 300); letter-spacing: var(--title-ls, .14em); text-transform: uppercase; transition: .2s; }
.cf-dl__btn:not(:disabled):hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.cf-dl__btn:disabled { opacity: .35; cursor: not-allowed; }
.cf-dl__empty { text-align: center; opacity: .7; }
@media (max-width: 700px) {
	.cf-dl__row { grid-template-columns: 136px 1fr; grid-template-areas: "thumb txt"; column-gap: 14px; padding: 14px 0; }
	.cf-dl__row:not(:has(.cf-dl__thumb)) { grid-template-columns: auto 1fr; grid-template-areas: "box txt"; }
	.cf-dl__thumb { grid-area: thumb; }
	.cf-dl__box { grid-area: thumb; z-index: 1; margin: 6px; background: rgba(10, 10, 10, .75); }
	.cf-dl__row:not(:has(.cf-dl__thumb)) .cf-dl__box { grid-area: box; margin: 0; background: none; }
	.cf-dl__txt { grid-area: txt; gap: 4px; padding-right: 34px; }
	.cf-dl__name { font-size: 13px; letter-spacing: .03em; line-height: 1.35; }
	.cf-dl__info { font-size: 11px; }
	.cf-dl__single { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); }
	.cf-dl { overflow-x: clip; }
	.cf-dl__btn { max-width: none; }
}

/* Client area (tabs: watch / download) */
.cf-ca__tabs { display: flex; justify-content: center; gap: 34px; margin: 0 0 40px; }
.cf-ca__tabs button { padding: 8px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; opacity: .6; transition: opacity .3s, border-color .3s; }
.cf-ca__tabs button:hover, .cf-ca__tabs button[aria-selected="true"] { opacity: 1; border-color: #fff; }
.cf-ca__panel[hidden] { display: none; }
.cf-ca .video-card__link { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.cf-ca .video-card__play { pointer-events: none; }
.cf-ca .video-card__title { pointer-events: none; }

/* Password form */
.entry-content .cf-pw__msg, .cf-pw .cf-pw__msg { margin-bottom: 18px; font-size: inherit; line-height: inherit; opacity: 1; }
.cf-pw { gap: 0; margin: 0 0 30px; }
.cf-pw__input { display: block; width: 100%; box-sizing: border-box; padding: 16px 18px; border: .5px solid rgba(255, 255, 255, .4); border-radius: 0; background: rgba(255, 255, 255, .05); color: #fff; caret-color: #fff; color-scheme: dark; font: inherit; font-size: 16px; letter-spacing: .08em; text-align: left; text-transform: none; }
.cf-pw__input::placeholder { color: rgba(255, 255, 255, .4); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.cf-pw__input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #1a1a1a inset; }
.cf-pw__input:focus { outline: 0; border-color: #fff; }
.cf-pw__error { margin: 0 0 18px; padding: 12px 16px; border: .5px solid rgba(255, 120, 120, .6); background: rgba(255, 80, 80, .08); color: #ffb3b3; font-size: 14px; line-height: 1.5; }
.cf-pw__input:disabled, .cf-pw__btn:disabled { opacity: .4; cursor: not-allowed; }
.cf-pw__btn { display: block; margin-top: 24px; cursor: pointer; }
.cf-404 { margin: 0; }
.cf-404__title { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 300; letter-spacing: .06em; text-transform: uppercase; }
.cf-404__btn { display: block; }

/* Back to top (mobile only) */
.to-top { display: none; }
@media (max-width: 768px) {
	.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 80; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: .5px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s, visibility .3s, border-color .3s; }
	.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
	.to-top:active { border-color: #fff; }
	.to-top svg { width: 18px; height: 18px; }
	.lb-open .to-top, .panel-open .to-top { display: none; }
}

/* About page blocks (wrapper .cf-about): section spacing, awards list, PDF download cards */
.cf-about > p { margin: 0 0 1.2em; }
.cf-about h2 { margin: 2.6em 0 .9em; }
.cf-about h3 { margin: 1.9em 0 .6em; }
.cf-about h3 + p { margin-bottom: 0; }
.cf-about ul { margin: 0 0 1.2em; padding-left: 1.3em; list-style: disc; }
.cf-about li { margin: 0 0 .7em; line-height: 1.55; }
.cf-pdfs { display: flex; flex-wrap: wrap; gap: 20px; margin: 3em 0 0; }
.cf-pdf { display: flex; flex: 1 1 260px; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; border: .5px solid rgba(255, 255, 255, .5); text-align: center; text-decoration: none; transition: border-color .3s, background .3s; }
.cf-pdf:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.cf-pdf strong { font-weight: 700; }
.cf-pdf span { font-size: .9em; opacity: .75; }

/* Newsletter bar (bottom, shown after a delay and never over the cookie banner) */
.nl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0, 0, 0, .45); transform: translateY(100%); transition: transform .45s var(--ease); }
.nl-bar.is-visible { transform: none; }
.nl-bar__text { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: .02em; }
.nl-bar__actions { display: flex; align-items: center; gap: 10px; }
.nl-bar__yes, .nl-bar__no { padding: 9px 20px; border: 1px solid #fff; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; transition: background .3s, color .3s; }
.nl-bar__yes { background: #fff; color: #0a0a0a; }
.nl-bar__yes:hover { background: transparent; color: #fff; }
.nl-bar__no { border-color: var(--line); }
.nl-bar__no:hover { border-color: #fff; }
@media (max-width: 600px) { .nl-bar { flex-direction: column; align-items: stretch; text-align: center; } .nl-bar__actions { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .nl-bar { transition: none; } }
