/* ==========================================================================
   Cinematic layer — loaded only when "Cinematic style" is on (body.ccc-cin).
   Dark film look: full-screen video hero, letterbox intro, film grain,
   chapter numbering, slow blur-in reveals, red light leaks.
   ========================================================================== */

body.ccc-cin {
	--c-bg: #0a0a0b;
	--c-light: #101012;
	--c-ink: #e9e9ee;
	--c-muted: #a3a3ad;
	--c-line: rgba(255, 255, 255, .1);
	--c-teal-d: #ff5a60;
	--c-navy: #f6f6f8;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .35);
	--shadow-2: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .5);
	--shadow-3: 0 4px 8px rgba(0, 0, 0, .4), 0 28px 64px rgba(0, 0, 0, .6);
	--cin-card: linear-gradient(180deg, #161618, #0f0f11);
	--cin-black: #050506;
	background: var(--c-bg);
	color: var(--c-ink);
}

/* ---- Film grain ---------------------------------------------------------- */
body.ccc-cin::after {
	content: ""; position: fixed; inset: -50%; z-index: 9999; pointer-events: none; opacity: .06; will-change: transform;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes cin-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---- Header: dark glass (transparent over the home hero) ----------------- */
body.ccc-cin .site-header { background: rgba(8, 8, 10, .82); border-color: rgba(255, 255, 255, .08); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); }
body.ccc-cin .site-header.is-scrolled { background: rgba(8, 8, 10, .92); box-shadow: 0 10px 40px rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .08); }
body.ccc-cin.home .site-header { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
body.ccc-cin.home .site-header.is-scrolled { background: rgba(8, 8, 10, .88); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-color: rgba(255, 255, 255, .08); box-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
body.ccc-cin.admin-bar.home .site-header { top: 32px; }
@media (max-width: 782px) { body.ccc-cin.admin-bar.home .site-header { top: 46px; } }
body.ccc-cin .custom-logo-link { padding: 5px 12px; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
body.ccc-cin .custom-logo { max-height: 42px; }
body.ccc-cin .site-header.is-scrolled .custom-logo { max-height: 36px; }
body.ccc-cin .wordmark, body.ccc-cin .wordmark:hover { color: #fff; }
body.ccc-cin .wordmark__icon { background: linear-gradient(135deg, #1c1c1f, #2a2a2e); }
body.ccc-cin .main-nav a { color: rgba(255, 255, 255, .88); }
body.ccc-cin .main-nav a:hover, body.ccc-cin .main-nav .current-menu-item > a, body.ccc-cin .main-nav .current_page_item > a { color: #fff; background: rgba(220, 45, 50, .22); }
body.ccc-cin .main-nav a.btn--primary { color: #fff; }
body.ccc-cin .main-nav .sub-menu { background: #111113; border-color: rgba(255, 255, 255, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
body.ccc-cin .nav-toggle { background: #111113; border-color: rgba(255, 255, 255, .15); }
body.ccc-cin .nav-toggle__bars i { background: #fff; }

/* ---- Buttons -------------------------------------------------------------- */
body.ccc-cin .btn--primary { box-shadow: 0 12px 40px -12px rgba(220, 45, 50, .8); }
body.ccc-cin .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
body.ccc-cin .btn--outline:hover { color: #0a0a0b; background: #fff; border-color: #fff; }
body.ccc-cin .btn--light { color: #111; }
body.ccc-cin .btn--ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .25); }
body.ccc-cin .btn--ghost:hover { color: #fff; }
body.ccc-cin .btn--outline-light:hover { color: #111; }

/* ---- Hero: full-screen, lower-third title, letterbox + light leak -------- */
body.ccc-cin .hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; background: var(--cin-black); }
body.ccc-cin .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(56px, 9vh, 110px); }
body.ccc-cin .hero__badges, body.ccc-cin .hero__bubble { display: none; }
body.ccc-cin .hero__title { max-width: 22ch; font-size: clamp(2.4rem, min(5.2vw, 9vh), 4.8rem); line-height: 1.03; letter-spacing: -.03em; margin-bottom: .45em; }
body.ccc-cin .hero__text { max-width: 52ch; color: rgba(255, 255, 255, .8); margin-bottom: 1.4em; }
body.ccc-cin .hero__btns { margin-bottom: 1.4em; }
body.ccc-cin .hero__eyebrow { letter-spacing: .22em; text-transform: uppercase; background: transparent; border-color: rgba(255, 255, 255, .25); }
body.ccc-cin .hero__media { overflow: hidden; }
body.ccc-cin .hero__overlay, body.ccc-cin .hero--video .hero__overlay {
	background:
		radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(0, 0, 0, .7) 100%),
		linear-gradient(0deg, rgba(5, 5, 6, .95) 0%, rgba(5, 5, 6, .35) 40%, rgba(5, 5, 6, .55) 100%),
		linear-gradient(100deg, rgba(5, 5, 6, .7), transparent 62%);
}
body.ccc-cin .hero__overlay::after {
	content: ""; position: absolute; inset: -20%; mix-blend-mode: screen; pointer-events: none;
	background: radial-gradient(40% 30% at 12% 92%, rgba(220, 45, 50, .38), transparent 70%), radial-gradient(30% 25% at 92% 8%, rgba(255, 120, 80, .16), transparent 70%);
}
/* letterbox bars: static final state by default, intro only with motion allowed */
body.ccc-cin .hero::before, body.ccc-cin .hero::after { content: ""; position: absolute; left: 0; right: 0; height: 50%; background: #000; z-index: 4; pointer-events: none; transform: scaleY(.045); }
body.ccc-cin .hero::before { top: 0; transform-origin: top; }
body.ccc-cin .hero::after { bottom: 0; transform-origin: bottom; }
body.ccc-cin .cin-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
body.ccc-cin .cin-words .w > span { display: inline-block; }

.cin-scroll { position: absolute; left: 50%; bottom: calc(4.5% + 14px); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); font-family: var(--f-head); font-size: .6875rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); pointer-events: none; }
.cin-scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, #dc2d32, transparent); transform-origin: top; }
@media (max-width: 767px) { .cin-scroll { display: none; } body.ccc-cin .hero__title { font-size: clamp(2.3rem, 11vw, 3.4rem); } }

@media (prefers-reduced-motion: no-preference) {
	body.ccc-cin::after { animation: cin-grain .9s steps(6) infinite; }
	body.ccc-cin .hero::before, body.ccc-cin .hero::after { animation: cin-bar 2s var(--ease) .15s both; }
	@keyframes cin-bar { from { transform: scaleY(1); } to { transform: scaleY(.045); } }
	body.ccc-cin .hero__video, body.ccc-cin .hero__img { transform-origin: 62% 50%; animation: cin-push 28s ease-in-out infinite alternate; }
	@keyframes cin-push { from { transform: scale(1.02); } to { transform: scale(1.12); } }
	body.ccc-cin .hero__overlay::after { animation: cin-leak 12s ease-in-out infinite alternate; }
	@keyframes cin-leak { from { transform: translate(-4%, 3%) scale(1); opacity: .75; } to { transform: translate(5%, -4%) scale(1.15); opacity: 1; } }
	body.ccc-cin .cin-words .w > span { transform: translateY(112%); filter: blur(10px); animation: cin-word 1.2s var(--ease) both; animation-delay: calc(1.45s + var(--i, 0) * 75ms); }
	@keyframes cin-word { to { transform: none; filter: none; } }
	body.ccc-cin .hero .stagger { animation-delay: calc(2.1s + var(--i, 0) * 130ms); }
	.cin-scroll { opacity: 0; animation: cin-fade 1s ease 3s forwards; }
	.cin-scroll i { animation: cin-line 2.2s var(--ease) 3s infinite; }
	@keyframes cin-fade { to { opacity: 1; } }
	@keyframes cin-line { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

	.js body.ccc-cin .reveal { opacity: 0; transform: translateY(54px) scale(.985); filter: blur(10px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
	.js body.ccc-cin .reveal.is-in { opacity: 1; transform: none; filter: none; }
}

/* ---- Sections as chapters ------------------------------------------------- */
body.ccc-cin .site-main { counter-reset: chap; }
body.ccc-cin .section { counter-increment: chap; position: relative; padding-block: clamp(72px, 11vw, 150px); }
body.ccc-cin .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1100px, 86%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(220, 45, 50, .6), transparent); }
body.ccc-cin .section .eyebrow::after { content: "  —  Chapter " counter(chap, decimal-leading-zero); color: rgba(255, 255, 255, .38); letter-spacing: .2em; }
body.ccc-cin .section-title { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.028em; }
body.ccc-cin .section-intro { font-size: 1.1rem; color: var(--c-muted); max-width: 62ch; margin-inline: auto; }
body.ccc-cin .section--light { background: linear-gradient(180deg, #0f0f11, #0b0b0c); }

/* ---- Dark cards ------------------------------------------------------------ */
body.ccc-cin .service-card, body.ccc-cin .why-card, body.ccc-cin .review, body.ccc-cin .post-card, body.ccc-cin .accordion__item,
body.ccc-cin .panel, body.ccc-cin .method, body.ccc-cin .service-points li, body.ccc-cin .comment-body { background: var(--cin-card); border-color: rgba(255, 255, 255, .09); color: var(--c-ink); }
body.ccc-cin .chip, body.ccc-cin .areas__search input, body.ccc-cin .carousel__btn, body.ccc-cin .about__badge { background: #141416; border-color: rgba(255, 255, 255, .12); color: #fff; }
body.ccc-cin .areas__search input::placeholder, body.ccc-cin .ccc-form ::placeholder { color: rgba(255, 255, 255, .45); }
body.ccc-cin .service-card:hover, body.ccc-cin .why-card:hover { border-color: rgba(220, 45, 50, .55); box-shadow: 0 0 0 1px rgba(220, 45, 50, .3), 0 34px 90px -24px rgba(220, 45, 50, .4); }
body.ccc-cin .service-card__media, body.ccc-cin .post-card__media { position: relative; background: #0d0d0f; }
body.ccc-cin .service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, .75)); pointer-events: none; }
body.ccc-cin .service-card__media img { filter: saturate(1.1) contrast(1.06); transition: transform 1.6s var(--ease); }
body.ccc-cin .service-card:hover .service-card__media img { transform: scale(1.09); }
body.ccc-cin .step__icon { background: #141416; border: 1px solid rgba(220, 45, 50, .45); color: #ff5a60; box-shadow: 0 0 40px -8px rgba(220, 45, 50, .55); }
body.ccc-cin .step__num { background: #dc2d32; }
body.ccc-cin .method__list li::before { background: #dc2d32; }
body.ccc-cin .carousel__btn:hover { background: #dc2d32; }
body.ccc-cin .ba__handle span { color: #111; }
body.ccc-cin .float-badge { color: #111; }
body.ccc-cin .float-badge small { color: #555; }
body.ccc-cin .ba { border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 120px -30px rgba(220, 45, 50, .4), var(--shadow-3); }
body.ccc-cin .ba__handle { box-shadow: 0 0 24px rgba(220, 45, 50, .8); }
body.ccc-cin .about__media > img { filter: contrast(1.05) saturate(1.05); }
body.ccc-cin .ticks li, body.ccc-cin .review figcaption strong, body.ccc-cin .accordion__btn { color: #fff; }

/* ---- Dark bands: stats, guarantee, page hero, footer ----------------------- */
body.ccc-cin .stats { background: linear-gradient(120deg, #050506, #141416 55%, #4a0b0e); }
body.ccc-cin .stat__num { font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: -.03em; }
body.ccc-cin .guarantee, body.ccc-cin .panel--navy { background: linear-gradient(135deg, #141416, #2a0c0f); border: 1px solid rgba(220, 45, 50, .35); }
body.ccc-cin .page-hero { background: radial-gradient(circle at 90% 0%, rgba(220, 45, 50, .35), transparent 50%), linear-gradient(120deg, #050506, #17171a); }
body.ccc-cin .site-footer { background: var(--cin-black); }
body.ccc-cin .site-footer__wave svg { fill: var(--cin-black); }
body.ccc-cin a.page-numbers:hover, body.ccc-cin .page-numbers.current { background: #dc2d32; border-color: #dc2d32; }
body.ccc-cin .search-form input[type="submit"], body.ccc-cin .search-submit { background: #dc2d32; }

/* ---- Forms ------------------------------------------------------------------ */
body.ccc-cin .ccc-form input[type="text"], body.ccc-cin .ccc-form input[type="email"], body.ccc-cin .ccc-form input[type="tel"], body.ccc-cin .ccc-form select, body.ccc-cin .ccc-form textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
body.ccc-cin .ccc-form select option { background: #111113; color: #fff; }
body.ccc-cin .entry-content blockquote, body.ccc-cin .entry-content th { background: #141416; }
body.ccc-cin .skip-link:focus, body.ccc-cin .screen-reader-text:focus { color: #111; }

/* ---- Mobile ------------------------------------------------------------------ */
@media (max-width: 991px) {
	body.ccc-cin .site-header, body.ccc-cin .site-header.is-scrolled, body.ccc-cin.home .site-header { background: rgba(8, 8, 10, .92); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
	body.ccc-cin .main-nav { background: #0c0c0e; border-left: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 767px) {
	body.ccc-cin .callbar { background: rgba(10, 10, 12, .96); border-top: 1px solid rgba(255, 255, 255, .1); }
	body.ccc-cin .callbar__quote { background: #26262a; }
}
