/* ========================================
   HONADIGITAL - Cinematic layer for inner pages
   Load after each page's own <style> so these rules win.
   ======================================== */

/* --- HERO (layered parallax) --- */
.cine-hero {
    position: relative; min-height: 88vh; box-sizing: border-box;
    display: flex; align-items: flex-end; padding: 185px 5% 9vh;
    background: #050505; overflow: hidden; color: white;
}
.cine-bg {
    position: absolute; inset: -12% 0; background: center / cover no-repeat;
    will-change: transform;
}
.cine-shade {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.65) 50%, rgba(5,5,5,0.35) 100%),
        linear-gradient(0deg, #050505 0%, rgba(5,5,5,0) 40%);
}
.cine-word {
    position: absolute; z-index: 2; right: -2vw; bottom: 2vh; margin: 0;
    font-family: var(--font-heading); font-weight: 800; line-height: 0.8;
    font-size: 30vw; letter-spacing: -0.04em; color: transparent;
    -webkit-text-stroke: 2px rgba(0, 174, 239, 0.32);
    pointer-events: none; user-select: none; will-change: transform;
}
.cine-content { position: relative; z-index: 4; max-width: 1000px; will-change: transform, opacity; }
.cine-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(0, 174, 239, 0.2); border: 1px solid rgba(0, 174, 239, 0.5);
    padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem;
    font-family: var(--font-heading); font-weight: 600; color: #fff;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 1.5rem; backdrop-filter: blur(5px);
}
.cine-title {
    font-size: clamp(3rem, min(9vw, 12vh), 9rem); line-height: 0.88; margin: 0 0 1.5rem;
    color: white; text-transform: uppercase; letter-spacing: -0.02em;
}
.cine-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.cine-title .line > span { display: block; transform: translateY(105%); animation: cineLineUp 1s cubic-bezier(.2,.8,.2,1) forwards; }
.cine-title .line:nth-child(2) > span { animation-delay: 0.12s; color: var(--primary-blue); }
.cine-title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes cineLineUp { to { transform: translateY(0); } }
.cine-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.82); max-width: 560px; margin: 0; line-height: 1.6; }
.cine-cue {
    position: absolute; z-index: 4; right: 5%; bottom: 5vh; color: rgba(255,255,255,0.6);
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.8rem;
}
.cine-cue::after { content: ''; width: 1px; height: 50px; background: linear-gradient(var(--primary-blue), transparent); animation: cineCue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cineCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- STATEMENT (words light up on scroll) --- */
.cine-statement-section { background: #050505; padding: 9rem 5% 9rem; }
.cine-label { color: var(--secondary-yellow); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; display: block; margin-bottom: 2rem; }
.cine-statement {
    font-family: var(--font-heading); font-weight: 800; color: white; margin: 0;
    font-size: clamp(2.2rem, 5.2vw, 5rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 1300px;
}
.cine-statement .w { opacity: 0.14; transition: opacity 0.25s linear, color 0.25s linear; }
.cine-statement .w.on { opacity: 1; }
.cine-statement .w.accent.on { color: var(--primary-blue); }

/* --- BAND (oversized words sliding with scroll) --- */
.cine-band { background: #050505; overflow: hidden; padding: 2.5rem 0; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }
.cine-band-track {
    display: flex; gap: 3rem; width: max-content; white-space: nowrap; will-change: transform;
    font-family: var(--font-heading); font-weight: 800; text-transform: uppercase;
    font-size: clamp(3.5rem, 10vw, 9rem); line-height: 1; letter-spacing: -0.03em;
}
.cine-band-track span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.3); }
.cine-band-track span:nth-of-type(odd) { color: white; -webkit-text-stroke: 0; }
.cine-band-track i { color: var(--primary-blue); font-style: normal; }

/* --- OVERSIZED TYPE ON EXISTING SECTIONS --- */
.section-title { font-size: clamp(2.8rem, 7vw, 6.5rem) !important; line-height: 0.92 !important; letter-spacing: -0.02em; }
.service-detail-content h2,
.industry-detail-content h2,
.featured-product-content h2,
.contact-info h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 0.95; letter-spacing: -0.02em; }
.cta-box h2 { font-size: clamp(2.8rem, 7vw, 6rem) !important; line-height: 0.9 !important; letter-spacing: -0.02em; }

/* full-width pricing buttons were overflowing their cards on phones */
.pricing-card .btn-primary, .pricing-card .btn-secondary { box-sizing: border-box; }

/* --- IMAGE PARALLAX inside framed images (JS sets --py) --- */
.cine-par { transition: transform 0.12s linear !important; will-change: transform; }

/* --- STRONGER REVEALS --- */
.fade-in { opacity: 0; transform: translateY(60px); transition: opacity 1s ease-out, transform 1s cubic-bezier(.2,.8,.2,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.service-detail-image, .industry-detail-image, .featured-product-image {
    clip-path: inset(18% 18% 18% 18% round 20px);
    transition: clip-path 1.2s cubic-bezier(.2,.8,.2,1);
}
.visible .service-detail-image, .visible .industry-detail-image, .visible .featured-product-image { clip-path: inset(0 0 0 0 round 20px); }

@media (max-width: 768px) {
    .cine-hero { min-height: 82vh; padding: 200px 5% 7vh; }
    .cine-title { font-size: 3rem; }
    .cine-subtitle { font-size: 1rem; }
    .cine-word { font-size: 48vw; bottom: auto; top: 175px; }
    .cine-cue { display: none; }
    .cine-statement-section { padding: 6rem 5%; }
    .cine-band { padding: 1.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cine-title .line > span { animation: none; transform: none; }
    .cine-cue::after { animation: none; }
    .cine-statement .w { opacity: 1; }
    .fade-in { opacity: 1; transform: none; transition: none; }
    .service-detail-image, .industry-detail-image, .featured-product-image { clip-path: none; transition: none; }
    .cine-par { transform: scale(1.05) !important; }
}

/* ========================================
   FULL-PAGE CINEMATIC THEME
   Dark canvas, oversized type and "paper" breaks, matching the home page.
   ======================================== */

body { background: #050505; }

/* --- Dark sections: re-point the page colour variables so existing rules follow --- */
.services-list-section, .pricing-section, .featured-section, .industry-section,
.gallery-section, .quick-section, .contact-section, .values-section {
    --text-heading: #ffffff; --text-body: #9a9a9a; --border-light: #1e1e1e; --card-bg: #0c0c0c;
    background: #050505; color: #9a9a9a;
}
/* --- Paper sections (light break, like the home page product reel) --- */
.process-section, .catalog-section, .case-studies-section, .faq-section { background: #f2f1ee; }

/* --- Section headers: left-aligned, oversized --- */
.section-header { text-align: left; max-width: 1400px; margin: 0 auto 4rem; border-bottom: 1px solid rgba(128,128,128,0.25); padding-bottom: 2rem; }
.section-header p { margin-left: 0 !important; margin-right: 0 !important; }
.pricing-section .section-header, .values-section .section-header { max-width: 1200px; }
.faq-section .section-header { max-width: 900px; }
.section-tag { letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 1rem; }
.values-section .section-header p, .pricing-section .section-header p { color: #8a8a8a !important; }

/* --- Numbered feature rows (services / industries) --- */
.services-list-section, .industry-section { counter-reset: cine-row; padding-top: 2rem; padding-bottom: 5rem; }
.service-detail, .industry-detail { border-bottom-color: #1a1a1a; }
.service-detail-content::before, .industry-detail-content::before {
    counter-increment: cine-row; content: counter(cine-row, decimal-leading-zero);
    display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1rem;
    color: #555; margin-bottom: 1.5rem; transition: color 0.4s;
}
.service-detail-content h2, .industry-detail-content h2 {
    font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 0.92; letter-spacing: -0.02em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.5);
    transition: color 0.5s, text-shadow 0.5s, -webkit-text-stroke-color 0.5s;
}
.service-detail-content p, .industry-detail-content p { color: #7d7d7d; transition: color 0.5s; }
.service-features li, .industry-use { color: #a8a8a8; transition: color 0.5s; }
.is-active .service-detail-content::before, .is-active .industry-detail-content::before { color: var(--secondary-yellow); }
.is-active .service-detail-content h2, .is-active .industry-detail-content h2 {
    color: #fff; -webkit-text-stroke-color: transparent;
    text-shadow: 0 0 40px rgba(0,174,239,0.5), 0 0 90px rgba(0,174,239,0.25);
}
.is-active .service-detail-content p, .is-active .industry-detail-content p { color: #bdbdbd; }
.is-active .service-features li, .is-active .industry-use { color: #fff; }
.service-icon, .industry-icon-large { background: rgba(0,174,239,0.12); border: 1px solid rgba(255,255,255,0.08); }
.service-icon[style], .industry-icon-large[style] { color: var(--secondary-yellow) !important; }
.service-detail-image, .industry-detail-image, .featured-product-image {
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,174,239,0.14);
}

/* --- Outline buttons on dark --- */
.featured-section .btn-secondary, .pricing-section .btn-secondary { border-color: rgba(255,255,255,0.35); color: #fff; }
.featured-section .btn-secondary:hover, .pricing-section .btn-secondary:hover { background: #fff; color: #000; border-color: #fff; }

/* --- Process (paper): giant outlined numerals --- */
.process-step { text-align: left; border-top: 2px solid #111; padding-top: 1.5rem; }
.process-step::after { display: none; }
.process-number {
    width: auto; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none;
    justify-content: flex-start; margin: 0 0 1.5rem;
    font-size: clamp(5rem, 9vw, 9rem); line-height: 0.85; letter-spacing: -0.04em;
    color: transparent; -webkit-text-stroke: 2px var(--primary-blue);
}
.process-step h4 { font-size: 1.6rem; margin: 0 0 0.8rem; }
.process-step p { margin: 0; }

/* --- Pricing (dark) --- */
.pricing-section { padding-top: 8rem; padding-bottom: 8rem; }
.pricing-card { background: #0c0c0c; border-color: #1e1e1e; border-radius: 24px; }
.pricing-card:hover { box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,174,239,0.14); }
.pricing-card.featured { box-shadow: 0 0 90px rgba(0,174,239,0.22); background: #0a1114; }
.pricing-card .price { font-size: clamp(2.8rem, 4vw, 3.6rem); }
.pricing-card .description { color: #8a8a8a; }
.pricing-features li { border-bottom-color: #1a1a1a; color: #b0b0b0; }

/* --- Featured product (dark) --- */
.featured-section { padding-top: 6rem; }
.featured-product { background: #0a0a0a; border-color: #1e1e1e; box-shadow: 0 0 120px rgba(0,174,239,0.08); }
.featured-product-content h2 { color: #fff; }
.featured-product-content p { color: #9a9a9a; }

/* --- Catalog + case studies (paper): frameless cards like the home reel --- */
.catalog-section, .case-studies-section { padding-top: 8rem; padding-bottom: 8rem; }
.filter-tabs, .gallery-filter { justify-content: flex-start; max-width: 1400px; margin-left: auto; margin-right: auto; }
.filter-tab { background: transparent; border-color: #c9c7c1; }
.product-card, .case-study-card { background: transparent; border-color: transparent; box-shadow: none; overflow: visible; }
.product-card:hover, .case-study-card:hover { box-shadow: none; border-color: transparent; transform: translateY(-8px); }
.product-image, .case-study-image { height: 320px; border-radius: 22px; background: #ddd; }
.product-content, .case-study-content { background: transparent; padding: 1.4rem 0.2rem 0; }
.product-content h3, .case-study-content h3 { font-size: 1.6rem; }
.spec-tag { background: rgba(0,0,0,0.06); border-color: transparent; color: #444; }
.btn-small { border-radius: 50px; }
.btn-small.secondary { border-color: #111; }

/* --- Gallery (dark) --- */
.gallery-section { padding-top: 5rem; padding-bottom: 8rem; }
.gallery-filter-btn { background: transparent; border-color: #333; color: #bbb; }
.gallery-filter-btn:hover, .gallery-filter-btn.active { background: rgba(0,174,239,0.15); border-color: var(--primary-blue); color: #fff; box-shadow: none; }
.gallery-item {
    background-color: #111; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.gallery-item:hover { box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,174,239,0.2); }
.gallery-item-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, transparent 100%); }
.gallery-item:hover img { transform: scale(1.08); }

/* --- Values (dark): oversized outlined letters --- */
.values-section { padding-top: 2rem; padding-bottom: 8rem; }
.value-card {
    background: transparent; border: 0; border-top: 1px solid #222; border-radius: 0; box-shadow: none;
    padding: 2.5rem 0 1rem; min-height: 0; justify-content: flex-start; overflow: visible;
}
.value-card:hover { box-shadow: none; border-color: var(--primary-blue); transform: translateY(-6px); }
.value-letter {
    position: static; display: block; font-size: clamp(7rem, 11vw, 11rem); line-height: 0.85; margin-bottom: 1.5rem;
    color: transparent; -webkit-text-stroke: 2px rgba(0,174,239,0.85);
    transition: color 0.5s, text-shadow 0.5s;
}
.value-card:hover .value-letter { color: var(--primary-blue); transform: none; text-shadow: 0 0 60px rgba(0,174,239,0.45); }
.value-card h3 { font-size: 2rem; color: #fff; }
.value-card p { color: #9a9a9a; }

/* --- Contact (dark) --- */
.quick-section { padding: 6rem 0 2rem; }
.quick-action { background: #0c0c0c; border-color: #1e1e1e; box-shadow: none; }
.quick-action:hover { box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,174,239,0.18); }
.quick-action h3 { color: #fff; }
.quick-action p { color: #8a8a8a; }
.contact-info h2 { font-size: clamp(3.2rem, 6vw, 6rem); color: #fff; }
.contact-info > p { color: #9a9a9a; }
.contact-method, .office-card { background: #0c0c0c; border-color: #1e1e1e; }
.contact-method:hover { box-shadow: 0 0 40px rgba(0,174,239,0.15); }
.contact-method-icon { background: rgba(252,191,1,0.12); color: var(--secondary-yellow); }
.contact-method-content p, .office-details p { color: #8a8a8a; }
.contact-form-container { background: #0a0a0a; border-color: #1e1e1e; box-shadow: 0 0 120px rgba(0,174,239,0.1); }
.contact-form-container h3 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.02em; }
.contact-form-container > p { color: #8a8a8a; }
.contact-form-container label { color: #cfcfcf; }
.contact-form-container input, .contact-form-container select, .contact-form-container textarea { background: #111; border-color: #262626; color: #fff; }
.contact-form-container input:focus, .contact-form-container select:focus, .contact-form-container textarea:focus { background: #141414; }
.contact-form-container ::placeholder { color: #666; }
.contact-form-container select option { background: #111; color: #fff; }

/* --- FAQ (paper): ruled rows --- */
.faq-section { padding-top: 8rem; padding-bottom: 8rem; }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid #c9c7c1; border-radius: 0; margin: 0; }
.faq-question { padding: 1.8rem 0; }
.faq-question h4 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.faq-answer { background: transparent; }
.faq-item.active .faq-answer { border-top: 0; }
.faq-answer p { padding: 0 0 1.8rem; font-size: 1.05rem; }

/* --- MEGA TYPE (image inside the letters) --- */
.cine-mega { background: #dfddd8; padding: 8rem 0 0; overflow: hidden; }
.cine-mega.cine-mega-end { padding-bottom: 5rem; }
.cine-mega-type {
    font-family: var(--font-heading); font-weight: 800; text-align: center; margin: 0;
    font-size: 15.5vw; line-height: 0.85; letter-spacing: -0.045em; white-space: nowrap;
    color: transparent; background: url('images/web/transparent.jpg') center 50% / cover no-repeat;
    -webkit-background-clip: text; background-clip: text;
}
.cine-mega + .cta-section { padding-top: 4rem; }

/* --- Hero button (404) --- */
.cine-hero .btn-primary:hover { background: #fff; color: #000; }

@media (max-width: 768px) {
    .section-header { margin-bottom: 2.5rem; }
    .pricing-section, .catalog-section, .case-studies-section, .faq-section, .gallery-section { padding-top: 5rem; padding-bottom: 5rem; }
    .product-image, .case-study-image { height: 260px; }
    .cine-mega { padding-top: 5rem; }
    .quick-section { padding-top: 4rem; }
}

/* ========================================
   GALLERY + PRODUCTS: scroll and hover motion
   ======================================== */

/* image drift inside its frame (JS sets --py); --ps is the zoom level */
.cine-par { transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1.16)) !important; }
.gallery-item img.cine-par, .product-image img.cine-par { transition: transform 0.7s cubic-bezier(.2,.8,.2,1) !important; }
/* zoom-out as a tile scrolls into view */
.fade-in:not(.visible) img.cine-par { --ps: 1.55; }

/* columns drift at different speeds while scrolling (JS sets translate) */
.gallery-item, .product-card { will-change: translate; }

/* cursor spotlight + 3D tilt (JS sets --mx/--my/--rx/--ry and .is-tilting) */
.cine-tilt::after {
    content: ''; position: absolute; inset: 0; z-index: 12; pointer-events: none; border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.28), rgba(0,174,239,0.14) 35%, transparent 65%);
    mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s;
}
.cine-tilt.is-tilting::after { opacity: 1; }
.cine-tilt.is-tilting {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.025) !important;
    transition: transform 0.18s ease-out, box-shadow 0.4s, filter 0.4s, border-color 0.4s !important;
    z-index: 5;
}
.cine-tilt { transform-style: preserve-3d; }

@media (hover: hover) {
    /* --- Gallery: the hovered tile takes the light, the rest fall back --- */
    .gallery-item { transition: opacity 1s ease-out, transform 1s cubic-bezier(.2,.8,.2,1), filter 0.5s, box-shadow 0.4s, border-color 0.4s; }
    .gallery-masonry:has(.gallery-item:hover) .gallery-item:not(:hover) { filter: brightness(0.38) saturate(0.5); }
    .gallery-item:hover { border-color: rgba(0,174,239,0.7); box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 90px rgba(0,174,239,0.35); }
    .gallery-item:hover img.cine-par { --ps: 1.3; }
    .gallery-item-overlay h3, .gallery-item-overlay p, .gallery-item-tag { transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.4s; }
    .gallery-item-overlay p { opacity: 0; transform: translateY(14px); }
    .gallery-item-overlay h3, .gallery-item-tag { transform: translateY(1.6rem); }
    .gallery-item:hover .gallery-item-overlay p { opacity: 1; transform: none; transition-delay: 0.08s; }
    .gallery-item:hover .gallery-item-overlay h3, .gallery-item:hover .gallery-item-tag { transform: none; }
    .gallery-item::before {
        content: '+'; position: absolute; z-index: 13; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px;
        display: flex; align-items: center; justify-content: center; border-radius: 50%;
        background: var(--primary-blue); color: #fff; font-size: 1.6rem; font-weight: 300; line-height: 1;
        opacity: 0; transform: scale(0.4) rotate(-90deg); transition: opacity 0.35s, transform 0.5s cubic-bezier(.2,.8,.2,1);
        pointer-events: none;
    }
    .gallery-item:hover::before { opacity: 1; transform: none; }

    /* --- Products: frame lifts and glows, the other cards step back --- */
    .product-card { transition: opacity 1s ease-out, transform 1s cubic-bezier(.2,.8,.2,1), filter 0.5s; }
    .products-grid:has(.product-card:hover) .product-card:not(:hover) { filter: grayscale(1) opacity(0.45); }
    .product-image { transition: box-shadow 0.4s, transform 0.5s cubic-bezier(.2,.8,.2,1); }
    .product-card:hover .product-image { box-shadow: 0 35px 70px rgba(0,0,0,0.28), 0 0 70px rgba(0,174,239,0.35); }
    .product-card:hover .product-image img.cine-par { transform: scale(1.02) !important; }
    .product-content h3 { transition: color 0.3s, transform 0.5s cubic-bezier(.2,.8,.2,1); }
    .product-card:hover .product-content h3 { color: var(--primary-blue); transform: translateX(8px); }
    .spec-tag { transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1); }
    .product-card:hover .spec-tag { background: #111; color: #fff; transform: translateY(-3px); }
    .product-card:hover .spec-tag:nth-child(2) { transition-delay: 0.05s; }
    .product-card:hover .spec-tag:nth-child(3) { transition-delay: 0.1s; }
    .product-category-label { transition: background 0.3s; }
    .product-card:hover .product-category-label { background: var(--primary-blue); }
    .featured-product-image.is-tilting { box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 110px rgba(0,174,239,0.4); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item, .product-card { translate: none !important; }
    .cine-par { transform: scale(1.05) !important; }
}
