/*
Theme Name: Proverse
Theme URI: https://proverse.ai
Description: Custom theme recreating the ProVerse corporate website.
Version: 1.0
Author: ProVerse Interactive Oy
*/

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --page-width: 960px;
    --body-color: #444;
    --border-radius: 15px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--body-color);
    line-height: 1.6;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    padding: 0 0 0 20px;
    list-style-type: disc;
}

li {
    margin-bottom: 6px;
    padding-left: 5px;
}

img {
    max-width: 100%;
    height: auto;
}

/* === TYPOGRAPHY === */
h1, h2 {
    font-family: 'Titillium Web', 'Open Sans', serif;
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 10px;
    color: #000;
}

h3 {
    font-family: 'Open Sans', serif;
    font-size: 20px;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* === HEADER / NAV === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 50px;
    padding: 5px 30px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-menu-drop-down-logo {
    display: none;
}

.top-menu-drop-down-logo img {
    height: 25px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.75));
}

.top-menu-drop-down {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 30px;
    cursor: pointer;
    z-index: 11;
    padding: 16px 18px 5px 18px;
    user-select: none;
    color: #fff;
}

.top-menu-logo {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.top-menu-logo img {
    height: 20px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.75));
}

.top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.top-menu-item {
    color: #fff;
    font-family: 'Open Sans', serif;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.75;
    margin: 0 10px;
    padding: 20px 0 18px;
    border-bottom: 4px solid transparent;
    transition: opacity 0.333s;
    white-space: nowrap;
}

.top-menu-item:hover,
.top-menu-item-selected {
    opacity: 1;
}

.top-menu-item-selected {
    border-bottom-color: rgba(255, 255, 255, 0.733);
}

/* === MOBILE MENU === */
.menu-bg {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #000;
    opacity: 0;
    transition: opacity 0.125s;
}

.menu-bg.menu-bg-intro {
    opacity: 0.333;
}

.menu-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100%;
    z-index: 10;
    background: white;
    padding: 70px 0 20px 0;
    box-shadow: 0 0 32px #00000044;
    font-weight: 600;
    font-size: 18px;
    line-height: 3;
    user-select: none;
    transition: right 0.125s;
}

.menu-panel.menu-intro {
    right: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    margin: 0;
    padding-right: 20px;
    cursor: pointer;
    border-right: 6px solid transparent;
}

.menu-item a {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    padding: 0 0 9px 0;
    color: #000;
}

.menu-item-active {
    border-right-color: #000;
}

/* === LANDING / HERO === */
.landing-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #263238, #1a2327);
    overflow: hidden;
}

.landing-section .landing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(38, 91, 237, 0.15) 0%, transparent 70%);
}

.landing-section .landing-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.landing-section .landing-bg-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.landing {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.landing img {
    width: 30vmin;
    max-width: 150px;
    margin: 20px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.75));
}

.landing h1 {
    font-family: 'Open Sans', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.landing-ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.button-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.landing p {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

/* === PAGE HERO (subpages) === */
.page-hero {
    position: relative;
    padding: 80px 20px 60px;
    background: #263238;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.page-hero h1 {
    position: relative;
    color: #fff;
    z-index: 1;
}

.page-hero h3 {
    position: relative;
    color: #fff;
    opacity: 0.8;
    z-index: 1;
}

.page-hero p {
    position: relative;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

/* === LAYOUT === */
.main {
    display: flex;
    flex-direction: row;
    background: #fff;
}

.main--dark {
    background: #151515;
}

.main--section .center {
    padding: 80px 0;
    margin-top: 0;
    margin-bottom: 0;
}

.margin-left {
    flex-grow: 1;
    background: linear-gradient(-90deg, #0000001c, #0000000a, #0000000a, #0000000a);
}

.margin-right {
    flex-grow: 1;
    background: linear-gradient(90deg, #0000001c, #0000000a, #0000000a, #0000000a);
}

.main--dark .margin-left,
.main--dark .margin-right {
    background: none;
}

.center {
    flex-grow: 999;
    max-width: var(--page-width);
    margin: 20px 30px 0;
}

/* Center a ul block while keeping bullet+text left-aligned together */
.center--why ul {
    margin: 0 auto;
    width: fit-content;
    text-align: left;
}

/* Dark section typography */
.main--dark h2,
.main--dark h3 {
    color: #fff;
}

.main--dark p,
.main--dark li,
.main--dark label {
    color: rgba(255, 255, 255, 0.88);
}

.main--dark .capabilities-table td {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.88);
}

.main--dark .capabilities-table td:first-child {
    color: #fff;
}


.main--dark .button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.main--dark .button:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.two {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.two:has(.image) {
    align-items: center;
}

.two.left {
    flex-direction: row;
}

.two.right {
    flex-direction: row-reverse;
}

.half-text {
    flex: 1;
    width: 100%;
    padding: 10px 20px;
}

/* === TITLE SECTION === */
.title {
    text-align: center;
    font-family: 'Open Sans', serif;
    font-size: 24px;
    font-weight: 800;
    margin: 30px 10px 20px;
    color: #000;
}

.title h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    opacity: 0.7;
    margin-top: 5px;
}

/* === IMAGE CONTAINERS === */
.image {
    aspect-ratio: 3/2;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    width: 100%;
}

/* === BUTTONS === */
.button {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 8px 33px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
    text-decoration: none;
}

.button:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #fff;
}

.half-text .button {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    text-align: center;
}

/* === TABLES === */
.capabilities-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 40px;
}

.capabilities-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #888;
    vertical-align: top;
}

.capabilities-table td:first-child {
    font-weight: 700;
    white-space: nowrap;
    width: 200px;
}

/* === FOOTER === */
.site-footer {
    width: 100%;
    background: #0f0f0f;
    color: #fff;
    padding: 50px 20px;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    max-width: var(--page-width);
    margin: 0 auto;
}

.footer-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-right {
    width: 50%;
    text-align: right;
}

.footer-right .business-id {
    opacity: 0.6;
}

.footer-link {
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.333s;
    font-size: 14px;
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: var(--page-width);
    margin: 30px auto 0;
}

.footer-bottom img {
    width: 80px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.75));
}

.footer-copyright {
    font-size: 10px;
    opacity: 0.6;
}

/* === CONTACT FORM === */
.contact-form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    margin: 5px 0 10px;
    color: #000;
    font-size: 18px;
    padding: 8px 12px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    box-shadow: 0 0 5px #0091ea;
    border-color: #0091ea;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .button {
    margin-top: 15px;
}

/* === TEAM / BOARD / DEPT CONTACTS === */

/* Leadership team — 3-col card grid with headshots */
.pv-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
    margin-top: 40px;
}

.pv-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.pv-team-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    background: #2a2a2a;
}

.pv-team-card__name {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: #fff;
}

.pv-team-card__title {
    font-size: 0.83rem;
    opacity: 0.55;
    margin: 0;
    color: #fff;
}

.pv-team-card__phone {
    font-size: 0.83rem;
    opacity: 0.7;
    margin: 0;
    color: #fff;
}

/* Board of Directors — 2-col cards, no headshot */
.pv-board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pv-board-card {
    padding: 24px 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pv-board-card__name {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.pv-board-card__title {
    font-size: 0.85rem;
    opacity: 0.55;
    margin: 0 0 6px;
}

/* Department contacts — 2-col label / contact rows */
.pv-dept-contacts {
    display: grid;
    grid-template-columns: 220px 1fr;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pv-dept-label,
.pv-dept-value {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.pv-dept-label {
    font-weight: 600;
    padding-right: 24px;
}

.pv-dept-phone {
    display: block;
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 3px;
}

/* Email obfuscation — assembled by CSS, never a text node in HTML */
.pv-email::after {
    content: attr(data-u) "@" attr(data-d);
}

.pv-team-card .pv-email::after,
.pv-team-card .pv-email {
    font-size: 0.83rem;
    opacity: 0.7;
    color: #fff;
}

/* === FAQ === */
.faq-item {
    margin-bottom: 25px;
}

.faq-item h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}

.faq-item p {
    opacity: 0.85;
}

/* === CLIENT LOGOS === */
.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.client-list span {
    background: #efefef;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* === NEWS GRID === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 0 40px;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card .image {
    margin-bottom: 12px;
}

.news-card-date {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 5px;
}

.news-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 1;
}

.news-card h3 a {
    color: #000;
    transition: opacity 0.2s;
}

.news-card h3 a:hover {
    opacity: 0.7;
}

.news-card-summary {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    flex-grow: 1;
}

.news-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.news-card-link:hover {
    opacity: 0.7;
}

.news-card h3 a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

/* === NEWS PAGINATION === */
.news-pagination {
    text-align: center;
    padding: 20px 0 40px;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    border-radius: 6px;
    transition: background 0.2s;
}

.news-pagination .page-numbers:hover {
    background: #f0f0f0;
}

.news-pagination .page-numbers.current {
    background: #000;
    color: #fff;
}

/* === NEWS SINGLE POST === */
.news-single-image {
    margin-bottom: 20px;
}

.news-single-meta {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 10px;
    padding-top: 10px;
}

.news-single-content {
    margin: 20px 0 40px;
    line-height: 1.8;
}

.news-single-content p {
    margin-bottom: 20px;
}

.news-single-content img {
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.news-back-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 40px;
    transition: opacity 0.2s;
}

.news-back-link:hover {
    opacity: 0.7;
}

/* === VIDEO HERO === */
.video-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #1a2327;
    margin-bottom: 20px;
}

.video-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Demo video mute / replay controls */
.pv-video-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.pv-video-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.pv-video-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* === CAPABILITY GRID === */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 25px 0 40px;
}

.capability-card {
    background: #f7f5f3;
    border-radius: var(--border-radius);
    padding: 25px;
}

.capability-card h3 {
    font-size: 18px;
    font-weight: 700;
    opacity: 1;
    color: #000;
    margin-bottom: 10px;
}

.capability-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.capability-card ul {
    font-size: 14px;
    line-height: 1.6;
    padding-left: 18px;
}

.capability-card li {
    margin-bottom: 5px;
}

/* === CASE STUDY === */
.cs-hero-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "hero video"
        "challenge video";
    gap: 25px;
}

.cs-hero-content {
    grid-area: hero;
}

.cs-hero-video {
    grid-area: video;
    position: relative;
    min-height: 500px;
    background: #1a2327;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cs-hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-video-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.cs-challenge-content {
    grid-area: challenge;
}

.case-study-meta {
    background: #f7f5f3;
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-top: 20px;
}

.case-study-meta div {
    margin-bottom: 8px;
    font-size: 15px;
}

.case-study-meta div:last-child {
    margin-bottom: 0;
}

.case-study-quote {
    border-left: 3px solid #000;
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    opacity: 0.85;
}

/* ================================================================
   HOMEPAGE — NP-STYLE SECTIONS
   ================================================================ */

/* --- Shared section shell --- */
.pv-section {
    padding: 60px 0;
    background: #fff;
}

.pv-section--dark {
    background: #151515;
    color: #fff;
}

.pv-section--dark h1,
.pv-section--dark h2,
.pv-section--dark h3 {
    color: #fff;
}

.pv-section--dark p,
.pv-section--dark li {
    color: rgba(255, 255, 255, 0.9);
}

.pv-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

.pv-section__sub {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 13px;
    margin-bottom: 0;
}

/* Update header bg to match NP palette */
.site-header {
    background: #151515;
}

/* --- HERO --- */
.pv-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #151515;
}

.pv-hero__video,
.pv-hero__bg-image,
.pv-hero__bg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pv-hero__video {
    object-fit: cover;
    z-index: 0;
}

.pv-hero__bg-image {
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.pv-hero__bg-fallback {
    background: linear-gradient(135deg, #263238, #1a2327);
    z-index: 0;
}

.pv-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.08) 75%);
    z-index: 1;
    pointer-events: none;
}

.pv-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 860px;
    margin: 0 auto;
}

.pv-hero__content h1 {
    font-size: 1.875rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    margin-bottom: 27px;
}

.pv-hero__text {
    max-width: 645px;
    margin: 0 auto 50px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.pv-hero__text p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.pv-hero__ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- BUTTONS (NP style) --- */
.pv-btn {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 8px 33px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pv-btn--light {
    background: #e0e0e0;
    color: #1a1a1a;
}

.pv-btn--light:hover {
    background: #c8c8c8;
    color: #000;
}

.pv-btn--dark {
    background: #1e1e1e;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pv-btn--dark:hover {
    background: #111;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- VIDEO HERO (demo video with play button) --- */
.pv-video-hero-wrap {
    background: #fff;
    padding: 40px 0 20px;
}

/* --- CAPABILITIES CAROUSELS --- */
.pv-capabilities {
    padding: 50px 0 31px;
}

.pv-capabilities h2 {
    margin: 0 0 0;
}

.pv-capabilities .pv-section__sub {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.pv-carousel-wrap {
    display: flex;
    margin-top: 20px;
}

.pv-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 30px 30px 50px; /* bottom padding leaves room for dots */
}

.pv-carousel__slides {
    position: relative;
    height: 430px;
}

.pv-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.pv-carousel__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.pv-carousel__content {
    padding: 30px 50px;
    color: #fff;
    width: 100%;
}

.pv-carousel__content p {
    color: rgba(255, 255, 255, 0.9);
}

.pv-carousel__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff !important;
    margin: 15px 0 0;
    opacity: 1;
}

.pv-carousel__desc {
    font-size: 1rem;
    margin: 21px 0 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
}

.pv-carousel__bullets {
    font-size: 0.875rem;
    margin: 21px 0 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85) !important;
}

.pv-carousel__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: background 0.3s;
}

.pv-carousel__dot--active {
    background: #e0e0e0;
}

.pv-carousel__prev,
.pv-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.pv-carousel__prev { left: 8px; }
.pv-carousel__next { right: 8px; }

.pv-carousel__prev:hover,
.pv-carousel__next:hover {
    background: rgba(255, 255, 255, 0.38);
}

/* --- WHAT IS PROVERSE? (full-width bg image) --- */
.pv-what-is {
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: #09090e;
    color: #fff;
    padding: 80px 0 0;
    min-height: 786px;
}

.pv-what-is h2,
.pv-what-is h3 {
    color: #fff;
}

.pv-what-is p,
.pv-what-is li {
    color: rgba(255, 255, 255, 0.9);
}

.pv-what-is__sub {
    font-size: 1rem;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.pv-what-is__content {
    margin-top: 20px;
    max-width: 580px;
}

.pv-what-is__content p {
    font-size: 1rem;
    line-height: 1.5;
}

.pv-what-is__content ul {
    font-size: 1rem;
    margin-top: 10px;
}

/* --- BUILT FOR COMPLEX MISSIONS --- */
.pv-missions .pv-two-col {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding: 50px 0;
}

.pv-two-col__left,
.pv-two-col__right {
    flex: 1;
}

.pv-video-block {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #2a2a2a;
    overflow: hidden;
}

.pv-video-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pv-missions__cta {
    display: block;
    text-align: center;
    margin-top: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pv-missions h2 {
    margin: 0 0 14px;
}

.pv-missions p {
    margin-top: 14px;
}

.pv-missions ul {
    margin-top: 21px;
}

/* --- PLATFORM CAPABILITIES TABLE --- */
.pv-platform-caps {
    padding: 60px 0;
}

.pv-platform-caps__heading {
    margin: 35px 0 0;
    color: #000;
}

.pv-platform-caps__sub {
    font-size: 1rem;
    margin: 18px 0 0;
    color: #000;
}

.pv-capabilities-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 60px;
    table-layout: fixed;
}

.pv-capabilities-table th {
    text-align: left;
    padding: 16px 12px;
    font-weight: 700;
    border-bottom: 2px solid #333;
    font-size: 1rem;
    color: #000;
}

.pv-capabilities-table td {
    padding: 16px 12px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    vertical-align: middle;
    color: #444;
}

.pv-cap-name {
    font-family: 'Titillium Web', 'Open Sans', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111;
}

/* --- REAL-WORLD IMPACT + PROVERSE ADVANTAGE (4-cell grid) --- */
.pv-impact-advantage {
    padding: 0;
    background: #12151b;
}

.pv-impact-advantage__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "tl tr"
        "bl br";
}

.pv-quad__tl {
    grid-area: tl;
    padding: 41px 60px 62px clamp(40px, calc((100vw - 960px) / 2), 300px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 449px;
}

.pv-quad__tr {
    grid-area: tr;
    min-height: 320px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #12151b;
}

.pv-quad__bl {
    grid-area: bl;
    min-height: 347px;
    padding: 30px 40px 30px clamp(40px, calc((100vw - 960px) / 2), 300px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
}

.pv-quad__br {
    grid-area: br;
    padding: 41px clamp(40px, calc((100vw - 960px) / 2), 300px) 41px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 510px;
    background: #fff;
}

.pv-quad__bl video {
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

/* ── Logo cloud (client logos in top-right quad cell) ── */
.pv-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 420px;
}

/* All regular logos: same height, width scales with aspect ratio */
.pv-logo-grid__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-logo-grid__item img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity 0.2s;
}

/* Per-logo size tuning (order: Nokia, Biketti, Taiteen talo, TUAS) */
.pv-logo-grid__item:nth-child(2) img { height: 30px; } /* Biketti: keep it compact */

.pv-logo-grid__item img:hover {
    opacity: 1;
}

.pv-quad__tl h2 {
    margin: 0 0 8px;
    color: #fff;
}

.pv-quad__tl p,
.pv-quad__tl li {
    color: rgba(255, 255, 255, 0.9);
}

.pv-quad__br h2 {
    margin: 0 0 8px;
    color: #151515;
}

.pv-quad__br p,
.pv-quad__br li {
    color: rgba(0, 0, 0, 0.75);
}

.pv-quad__br h3 {
    color: #444;
}

.pv-advantage__sub {
    margin: 0 0 21px;
    font-weight: 700;
}

.pv-advantage__cta {
    margin-top: 30px;
    align-self: center;
    background: #151515;
    color: #fff;
    border-color: #151515;
}

/* --- SCROLL ANIMATIONS --- */
.pv-animate {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.pv-animate.pv-in {
    opacity: 1;
    transform: translate(0, 0) !important;
}

.pv-slide-left  { transform: translateX(-60px); }
.pv-slide-right { transform: translateX(60px); }
.pv-slide-up    { transform: translateY(60px); }
.pv-slide-down  { transform: translateY(-60px); }
/* .pv-fade: opacity 0 → 1 only, no transform needed */

/* --- HERO ENTRY ANIMATIONS (load-triggered, not scroll) --- */
.pv-hero-anim {
    opacity: 0;
    transform: translateY(-30px);
    animation: pvHeroSlideDown 1s ease forwards;
}

.pv-hero-anim-up {
    opacity: 0;
    transform: translateY(30px);
    animation: pvHeroSlideUp 1s ease 0.25s forwards;
}

.pv-hero-anim-fade {
    opacity: 0;
    animation: pvHeroFadeIn 1s ease 0.5s forwards;
}

@keyframes pvHeroSlideDown {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pvHeroSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pvHeroFadeIn {
    to { opacity: 1; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 810px) {
    .pv-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }

    .pv-board-grid {
        grid-template-columns: 1fr;
    }

    .pv-dept-contacts {
        grid-template-columns: 1fr;
    }

    .pv-dept-label {
        border-bottom: none;
        padding-bottom: 4px;
        font-size: 0.8rem;
        opacity: 0.6;
    }

    .pv-dept-value {
        padding-top: 0;
    }

    .top-menu {
        display: none;
    }

    .top-menu-drop-down {
        display: block;
    }

    .top-menu-drop-down-logo {
        display: block;
    }

    .site-header {
        padding: 5px 15px;
    }

    .center {
        margin: 20px 10px 0;
    }

    .two,
    .two.left,
    .two.right {
        flex-direction: column;
    }

    .half-text {
        padding: 10px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        text-align: left;
    }

    .capabilities-table td:first-child {
        width: auto;
    }

    h1, h2 {
        font-size: 24px;
    }

    .landing h1 {
        font-size: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .cs-hero-block {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "video"
            "challenge";
    }

    .cs-hero-video {
        min-height: 400px;
    }

    /* NP homepage sections — mobile */
    .pv-container {
        padding: 0 15px;
    }

    .pv-hero__content h1 {
        font-size: 1.5rem;
    }

    .pv-hero__text {
        margin-bottom: 80px;
    }

    .pv-hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .pv-carousel-wrap {
        flex-direction: column;
    }

    .pv-carousel__content {
        padding: 20px 15px;
    }

    .pv-carousel__slides {
        height: 340px;
    }

    .pv-what-is__content {
        max-width: 100%;
    }

    .pv-missions .pv-two-col {
        flex-direction: column;
        gap: 30px;
        padding: 30px 0;
    }

    .pv-capabilities-table {
        table-layout: auto;
    }

    .pv-cap-name {
        font-size: 1rem;
    }

    .pv-impact-advantage__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "tl"
            "bl"
            "tr"
            "br";
    }

    .pv-quad__tl,
    .pv-quad__br {
        min-height: auto;
        padding: 30px 20px;
    }

    .pv-quad__tr,
    .pv-quad__bl {
        min-height: 220px;
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .pv-carousel__slides {
        height: 400px;
    }
}
