/*
Theme Name: Meridian
Theme URI: https://www.meridianverse.com
Author: Meridian Creative Studio
Author URI: https://www.meridianverse.com
Description: A modern minimal editorial WordPress theme for Meridian. Black background, white text, custom font hierarchy (Montserrat bold headings, Playfair Display stylized subheadings & highlighter text, Varela Round body and rest), dual highlighter marker systems, and complex interactive animations.
Version: 3.8.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: meridian
Tags: dark-mode, minimal-modern, montserrat, playfair-display, varela-round, highlighter-effects, film-studio
*/

/* -------------------------------------------------------------
   1. COLOR & TYPOGRAPHY VARIABLES
   ------------------------------------------------------------- */
:root {
    /* Background Canvas: Deep Black */
    --bg-primary: #07080a;
    --bg-secondary: #0e1014;
    --bg-surface: #14161c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(7, 8, 10, 0.92);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4bac6;
    --text-muted: #6f7788;
    --text-dark: #07080a;

    /* Accent: Film Red */
    --accent-primary: #ff2a2a;
    --accent-red: #ff2a2a;
    --accent-red-hover: #ff4747;
    --accent-red-glow: rgba(255, 42, 42, 0.35);
    --accent-secondary: #ff2a2a;

    /* Hairlines & Grid Lines */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.16);
    --border-hover: rgba(255, 255, 255, 0.35);

    /* FONT HIERARCHY */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-stylized: 'Playfair Display', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif; /* Alias for stylized text */
    --font-body: 'Varela Round', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout & Spacing */
    --container-width: 1280px;
    --container-narrow: 880px;
    --header-height: 76px;
    --section-pad: 95px;
    --section-pad-sm: 65px;

    /* Transitions & Springs */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Spotlight Follower */
.ambient-glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 42, 42, 0.06) 0%, rgba(255, 42, 42, 0.02) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease-out, opacity 0.5s ease;
    opacity: 0.8;
    filter: blur(50px);
}

a {
    color: inherit;
    text-decoration: none;
    font-family: inherit;
    transition: color 0.2s var(--ease-smooth), opacity 0.2s;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: var(--font-body);
    color: inherit;
}

::selection {
    background-color: var(--accent-red);
    color: #ffffff;
}

/* -------------------------------------------------------------
   3. TYPOGRAPHY HIERARCHY
   - Main Header: Montserrat Bold in LOWERCASE (e.g. "we create what matters.")
   - Sub Headers: Playfair Display (h2, h3, h4, section titles, card titles)
   - Body & Rest: Varela Round
   ------------------------------------------------------------- */

/* 3A: Main Headers -> Montserrat Bold (Lowercase) */
h1,
.hero-headline,
.about-main-title,
.portfolio-header h1,
.entry-title,
h1.wp-block-heading,
.wp-block-heading[data-level="1"] {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    text-transform: lowercase !important;
    color: var(--text-primary) !important;
    font-size: clamp(3rem, 6.8vw, 5.2rem);
}

/* 3B: Sub Headers -> Playfair Display */
h2,
h3,
h4,
h5,
h6,
.section-title h2,
.experience-left h2,
.perspectives-header h2,
.perspective-card h3,
.manifesto-panel-dark h3,
.manifesto-panel-highlight h3,
.client-box-title,
.project-item-title,
.section-signature h2,
.wp-block-heading:not(h1) {
    font-family: var(--font-stylized);
    font-style: italic !important;
    text-transform: lowercase !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
}

h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem) !important; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem) !important; }
h4 { font-size: 1.25rem !important; }

/* 3C: Sub Headings, Stylized Text & Quotes -> Playfair Display */
.sub-heading,
.stylized-text,
.hero-lead-text,
.belief-statement,
.founder-callout-quote,
.perspective-quote,
.signature-tagline,
.punchline-main,
blockquote,
.wp-block-quote {
    font-family: var(--font-stylized);
    letter-spacing: -0.01em;
}

/* 3D: Body and Rest -> Varela Round */
body,
p,
ul,
ol,
li,
a,
input,
textarea,
select,
button,
.mono-label,
.metric-caption,
.footer-col ul li a,
.btn,
.nav-links a,
.manifesto-tag-list li {
    font-family: var(--font-body) !important;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
}

.mono-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   4. CINEMATIC RECORDING OVERLAY (VIEWFINDER RETICLE EFFECT)
   - White Background REMOVED
   - Red Text (#ff2a2a) in Playfair Display Bold
   - Recording Overlay Framing:
     * Top-Right Angle Frame (::before)
     * Bottom-Left Angle Frame (::after)
   - Dynamic Camera Focus Micro-animation on Hover
   ------------------------------------------------------------- */

/* -------------------------------------------------------------
   4. CINEMATIC RECORDING OVERLAY (VIEWFINDER RETICLE EFFECT)
   - Red Text (#ff2a2a) in Playfair Display
   - Strictly lowercase (small case) and italics
   - Recording Overlay Framing:
     * Top-Right Angle Frame (::before)
     * Bottom-Left Angle Frame (::after)
   - Dynamic Camera Focus Micro-animation on Hover
   ------------------------------------------------------------- */
.marker-red,
.marker-white,
.highlight-black-white,
.accent-primary-highlighted,
.highlight-red-green,
.accent-secondary-highlighted,
.highlight-green-red {
    position: relative !important;
    display: inline-block !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    border: none !important;
    margin: 0 0.12em !important;
    font-family: var(--font-stylized), 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    text-transform: lowercase !important;
    font-weight: 700 !important;
    color: var(--accent-red) !important; /* RED TEXT #ff2a2a */
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0.06em 0.35em !important;
    text-shadow: none !important;
    white-space: normal !important;
    transition: all 0.3s ease !important;
}

/* Top-Right Angle Frame (Recording Viewfinder Reticle) */
.marker-red::before,
.marker-white::before,
.highlight-black-white::before,
.accent-primary-highlighted::before,
.highlight-red-green::before,
.accent-secondary-highlighted::before,
.highlight-green-red::before {
    content: '' !important;
    position: absolute !important;
    top: -0.06em !important;
    right: -0.06em !important;
    width: 0.34em !important;
    height: 0.34em !important;
    border-top: max(2px, 0.045em) solid var(--accent-red) !important;
    border-right: max(2px, 0.045em) solid var(--accent-red) !important;
    border-bottom: none !important;
    border-left: none !important;
    background: transparent !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s !important;
}

/* Bottom-Left Angle Frame (Recording Viewfinder Reticle) */
.marker-red::after,
.marker-white::after,
.highlight-black-white::after,
.accent-primary-highlighted::after,
.highlight-red-green::after,
.accent-secondary-highlighted::after,
.highlight-green-red::after {
    content: '' !important;
    position: absolute !important;
    bottom: -0.06em !important;
    left: -0.06em !important;
    width: 0.34em !important;
    height: 0.34em !important;
    border-bottom: max(2px, 0.045em) solid var(--accent-red) !important;
    border-left: max(2px, 0.045em) solid var(--accent-red) !important;
    border-top: none !important;
    border-right: none !important;
    background: transparent !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s !important;
}

/* Hover: Viewfinder Focus expansion */
.marker-red:hover::before,
.marker-white:hover::before,
.highlight-black-white:hover::before,
.accent-primary-highlighted:hover::before,
.highlight-red-green:hover::before,
.accent-secondary-highlighted:hover::before,
.highlight-green-red:hover::before,
h1:hover .marker-red::before,
h2:hover .marker-red::before,
h3:hover .marker-red::before {
    transform: translate(3px, -3px) !important;
    border-color: #ffffff !important;
}

.marker-red:hover::after,
.marker-white:hover::after,
.highlight-black-white:hover::after,
.accent-primary-highlighted:hover::after,
.highlight-red-green:hover::after,
.accent-secondary-highlighted:hover::after,
.highlight-green-red:hover::after,
h1:hover .marker-red::after,
h2:hover .marker-red::after,
h3:hover .marker-red::after {
    transform: translate(-3px, 3px) !important;
    border-color: #ffffff !important;
}

/* Exclude Viewfinder brackets from raw mono-label line wrappers and client index */
.mono-label::before,
.mono-label::after,
.viewfinder-badge::before,
.viewfinder-badge::after,
.client-box-index span::before,
.client-box-index span::after,
.project-cat .accent-secondary-highlighted::before,
.project-cat .accent-secondary-highlighted::after {
    display: none !important;
}

/* Ensure all .marker-red (including inside .mono-label and badges) ALWAYS display red viewfinder reticles */
.mono-label .marker-red::before,
.mono-label .marker-red::after,
.perspective-role-badge .marker-red::before,
.perspective-role-badge .marker-red::after,
.metric-number .marker-red::before,
.metric-number .marker-red::after,
.marker-red::before,
.marker-red::after {
    display: block !important;
}

/* STRICT: All Playfair Display text across the entire site MUST be small case (lowercase) and italics */
.font-stylized,
.font-playfair,
.marker-red,
.playfair-text,
.stylized-text,
.perspective-quote,
.founder-callout-quote,
[style*="Playfair"],
[style*="playfair"],
[style*="Playfair Display"],
[style*="playfair display"],
[style*="font-family: 'Playfair Display'"],
[style*="font-family:'Playfair Display'"],
[style*="font-family: Playfair Display"],
.elementor-heading-title[style*="Playfair"],
.elementor-heading-title[style*="playfair"],
.elementor-widget-heading .elementor-heading-title[style*="Playfair"],
.elementor-widget-heading .elementor-heading-title[style*="playfair"] {
    font-family: var(--font-stylized), 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    text-transform: lowercase !important;
}

/* Perspective Team Member Role Badges (Clean Pill styling) */
.perspective-role-badge span,
.perspective-role-badge .marker-red,
.perspective-role-badge .marker-white {
    font-family: var(--font-body) !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    background-image: none !important;
    background-color: rgba(255, 42, 42, 0.14) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 42, 42, 0.4) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 0 12px rgba(255, 42, 42, 0.15) !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* Mono-label and Meta Badges (Site-wide Consistency - Transparent Red Accent) */
.mono-label .marker-red,
.mono-label .marker-white,
.mono-label .accent-secondary-highlighted,
.hero-meta-strip .accent-secondary-highlighted,
.portfolio-header .accent-secondary-highlighted,
.section .container-narrow > .accent-secondary-highlighted,
.section-title-row .accent-secondary-highlighted,
.contact-left-panel > .accent-secondary-highlighted,
.contact-right-panel > .accent-primary-highlighted,
.about-hero-meta .accent-secondary-highlighted {
    position: relative !important;
    font-family: var(--font-body) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #ff2a2a !important;
    padding: 0.08em 0.38em !important;
    margin: 0 0.15em !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 1.3 !important;
    vertical-align: baseline !important;
}

/* Client Index Numbers (Site-wide Consistency) */
.client-box-index span,
.client-box-index .accent-secondary-highlighted {
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    color: #ff2a2a !important;
    letter-spacing: 0.05em !important;
}

/* Metric Numbers (Site-wide Consistency) */
.metric-number span,
.metric-number .accent-primary-highlighted,
.metric-number .marker-red,
.metric-number .marker-white,
.metric-number .accent-secondary-highlighted {
    font-family: var(--font-heading) !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    color: #ffffff !important;
}

/* Category Tags on Portfolio Cards (Site-wide Consistency) */
.project-cat .accent-secondary-highlighted,
.project-meta .accent-secondary-highlighted {
    font-family: var(--font-body) !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    background: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

/* -------------------------------------------------------------
   5. BUTTONS (MONTSERRAT BOLD)
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    line-height: 1.2;
}

.btn-primary {
    background-color: #ffffff;
    color: var(--text-dark);
    border-color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 0 25px var(--accent-red-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-pill-sm {
    padding: 8px 18px;
    font-size: 0.78rem;
}

/* -------------------------------------------------------------
   6. SITE HEADER & LOGO CONSTRAINTS (STRICT ALIGNMENT & PADDING)
   ------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
}

.site-header.scrolled {
    background-color: rgba(7, 8, 10, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Header Branding & Strict Logo Dimensions */
.header-branding {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    max-height: var(--header-height) !important;
    max-width: 200px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.site-brand-logo,
.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    max-height: var(--header-height) !important;
    max-width: 180px !important;
    text-decoration: none !important;
}

.custom-logo,
.custom-logo-link img,
.official-logo-img,
.site-brand-logo img,
.site-header img {
    max-height: 26px !important;
    height: 26px !important;
    width: auto !important;
    max-width: 170px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.3s var(--ease-spring);
}

.site-brand-logo:hover .official-logo-img,
.custom-logo-link:hover img {
    transform: scale(1.04);
}

/* Navigation Links */
.site-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-flex;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 6px 10px;
    position: relative;
    line-height: 1;
    display: inline-block;
    text-decoration: none;
    border-bottom: none !important;
    transition: color 0.25s var(--ease-smooth);
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
    color: #ffffff;
}

/* -------------------------------------------------------------
   NAVBAR VIEWFINDER RETICLE / CROP MARKS (SELECTED & HOVER)
   Replaces the straight underline with authentic camera crop marks
   ------------------------------------------------------------- */
/* Top-Right Crop Mark */
.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--accent-red);
    border-right: 2px solid var(--accent-red);
    pointer-events: none;
    opacity: 0;
    transform: translate(2px, -2px);
    transition: opacity 0.25s var(--ease-spring), transform 0.25s var(--ease-spring), border-color 0.2s;
}

/* Bottom-Left Crop Mark */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid var(--accent-red);
    border-left: 2px solid var(--accent-red);
    pointer-events: none;
    opacity: 0;
    transform: translate(-2px, 2px);
    background: none;
    box-shadow: none;
    transition: opacity 0.25s var(--ease-spring), transform 0.25s var(--ease-spring), border-color 0.2s;
}

/* Active / Selected Page Item: Visible Reticle */
.nav-links .current-menu-item a::before,
.nav-links .current_page_item a::before,
.nav-links a.active::before {
    opacity: 1;
    transform: translate(0, 0);
}

.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after,
.nav-links a.active::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hover: Viewfinder Focus Micro-interaction */
.nav-links a:hover::before {
    opacity: 1;
    transform: translate(2px, -2px);
    border-color: #ffffff;
}

.nav-links a:hover::after {
    opacity: 1;
    transform: translate(-2px, 2px);
    border-color: #ffffff;
}

.nav-links .current-menu-item a:hover::before,
.nav-links .current_page_item a:hover::before,
.nav-links a.active:hover::before {
    transform: translate(3px, -3px);
    border-color: #ffffff;
}

.nav-links .current-menu-item a:hover::after,
.nav-links .current_page_item a:hover::after,
.nav-links a.active:hover::after {
    transform: translate(-3px, 3px);
    border-color: #ffffff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px auto;
    transition: 0.3s var(--ease-smooth);
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------
   7. CONTAINER & LAYOUT
   ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 36px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    flex: 1;
    padding-top: var(--header-height);
}

.section {
    padding: var(--section-pad) 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

/* -------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------- */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 85px 0 35px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-logo-img {
    max-height: 26px !important;
    height: 26px !important;
    width: auto !important;
    object-fit: contain;
    margin-bottom: 18px;
    display: block;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 340px;
    line-height: 1.8;
}

.footer-manifesto-badge {
    margin-top: 18px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-mail-link:hover {
    color: var(--accent-red) !important;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 28px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */
@media (max-width: 960px) {
    .container {
        padding: 0 24px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: rgba(7, 8, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: right 0.4s var(--ease-smooth);
        z-index: 100;
        border-left: 1px solid var(--border-subtle);
    }
    .nav-links.is-open {
        right: 0;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* -------------------------------------------------------------
   7. WORDPRESS GUTENBERG BLOCK EDITOR DARK MODE
   ------------------------------------------------------------- */
.editor-styles-wrapper {
    background-color: #07080a !important;
    color: #ffffff !important;
}

.editor-styles-wrapper .block-editor-writing-flow,
.editor-styles-wrapper .block-editor-block-list__layout {
    background-color: #07080a !important;
    color: #ffffff !important;
}

.editor-styles-wrapper .wp-block {
    max-width: 1200px !important;
}

.editor-styles-wrapper p,
.editor-styles-wrapper li,
.editor-styles-wrapper div,
.editor-styles-wrapper span {
    color: #e0e4ec;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper .wp-block-heading[data-level="1"],
.editor-styles-wrapper h1.wp-block-heading {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    text-transform: lowercase !important;
    letter-spacing: -0.035em !important;
    color: #ffffff !important;
}

.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
.editor-styles-wrapper .wp-block-heading:not([data-level="1"]):not(h1) {
    font-family: var(--font-stylized) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: -0.015em !important;
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   BUTTON CLEAN NORMALIZATION (NO NESTED BOXES OR WEIRD BORDERS)
   ------------------------------------------------------------- */
.wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 28px !important;
    margin-bottom: 35px !important;
}

/* Remove any background/border from wrapper divs */
.wp-block-button,
div.wp-block-button,
.wp-block-button.btn,
.wp-block-button.btn-primary,
.wp-block-button.btn-secondary {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}

/* Actual button links styling */
.btn,
a.btn,
.wp-block-button .wp-block-button__link,
.wp-block-button a.wp-element-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 28px !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease-smooth) !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

/* Primary Button: Solid White, Dark text, hover Red */
.btn-primary,
a.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.btn-primary a.wp-element-button {
    background-color: #ffffff !important;
    color: #07080a !important;
    border: 1px solid #ffffff !important;
    box-shadow: none !important;
}

.btn-primary:hover,
a.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover,
.wp-block-button.btn-primary a.wp-element-button:hover {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px var(--accent-red-glow) !important;
    transform: translateY(-2px) !important;
}

/* Secondary Button: Transparent, White text, Subtle border */
.btn-secondary,
a.btn-secondary,
.wp-block-button.btn-secondary .wp-block-button__link,
.wp-block-button.btn-secondary a.wp-element-button {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: none !important;
}

.btn-secondary:hover,
a.btn-secondary:hover,
.wp-block-button.btn-secondary .wp-block-button__link:hover,
.wp-block-button.btn-secondary a.wp-element-button:hover {
    border-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* -------------------------------------------------------------
   GRID FIXES FOR ABOUT US & EDITORIAL BLOCKS
   ------------------------------------------------------------- */
.perspectives-grid,
.wp-block-columns.perspectives-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 36px !important;
    margin-bottom: 50px !important;
}

.perspectives-grid > p,
.wp-block-columns.perspectives-grid > p {
    display: none !important;
}

.perspectives-grid .perspective-card,
.perspectives-grid .wp-block-column,
.wp-block-columns.perspectives-grid .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: unset !important;
    box-sizing: border-box !important;
}

.manifesto-split-grid,
.wp-block-columns.manifesto-split-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 36px !important;
    margin-bottom: 50px !important;
}

.manifesto-split-grid > p,
.wp-block-columns.manifesto-split-grid > p {
    display: none !important;
}

.manifesto-split-grid .wp-block-column,
.manifesto-split-grid .manifesto-panel-dark,
.manifesto-split-grid .manifesto-panel-highlight,
.wp-block-columns.manifesto-split-grid .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: unset !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .perspectives-grid,
    .wp-block-columns.perspectives-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .manifesto-split-grid,
    .wp-block-columns.manifesto-split-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* -------------------------------------------------------------
   FOOTER GRID 4-COLUMN ALIGNMENT & DESIGN CONSISTENCY FIX
   ------------------------------------------------------------- */
.site-footer,
.elementor-location-footer,
.elementor-location-footer .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    background: #07080a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 85px 0 35px !important;
    position: relative;
    z-index: 10;
}

.site-footer > .e-con-inner,
.site-footer.e-con-boxed > .e-con-inner {
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 36px !important;
}

.site-footer .footer-grid,
.site-footer .footer-grid > .e-con-inner,
.site-footer .footer-grid.e-con {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px !important;
}

.site-footer .elementor-element-meridian_footer_col1,
.site-footer #meridian_footer_col1,
.site-footer [data-id="meridian_footer_col1"] {
    width: 32% !important;
    flex: 0 0 32% !important;
    max-width: 32% !important;
    box-sizing: border-box !important;
}

.site-footer .elementor-element-meridian_footer_col2,
.site-footer #meridian_footer_col2,
.site-footer [data-id="meridian_footer_col2"] {
    width: 18% !important;
    flex: 0 0 18% !important;
    max-width: 18% !important;
    box-sizing: border-box !important;
}

.site-footer .elementor-element-meridian_footer_col3,
.site-footer #meridian_footer_col3,
.site-footer [data-id="meridian_footer_col3"] {
    width: 18% !important;
    flex: 0 0 18% !important;
    max-width: 18% !important;
    box-sizing: border-box !important;
}

.site-footer .elementor-element-meridian_footer_col4,
.site-footer #meridian_footer_col4,
.site-footer [data-id="meridian_footer_col4"] {
    width: 22% !important;
    flex: 0 0 22% !important;
    max-width: 22% !important;
    box-sizing: border-box !important;
}

.site-footer .footer-col-title {
    font-family: var(--font-heading) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #8f96a3 !important;
    margin-bottom: 18px !important;
    display: block !important;
}

.site-footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-footer ul li a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: color 0.2s var(--ease-smooth) !important;
}

.site-footer ul li a:hover {
    color: var(--accent-red) !important;
}

.site-footer .footer-bottom-bar,
.site-footer .elementor-widget-text-editor:last-child {
    width: 100% !important;
}

@media (max-width: 768px) {
    .site-footer .elementor-element-meridian_footer_col1,
    .site-footer .elementor-element-meridian_footer_col2,
    .site-footer .elementor-element-meridian_footer_col3,
    .site-footer .elementor-element-meridian_footer_col4,
    .site-footer [data-id^="meridian_footer_col"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* -------------------------------------------------------------
   NAVBAR GLASSMORPHISM & CLEANUP
   - Light subtle dark glassmorphism
   - Blur + saturation + subtle border + soft shadow
   - Remove "LET'S TALK" button completely
   ------------------------------------------------------------- */
.elementor-location-header,
.site-header,
header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(7, 8, 10, 0.65) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35) !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.site-header.scrolled,
.elementor-location-header.scrolled {
    background: rgba(7, 8, 10, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

/* Remove LET'S TALK button everywhere in navbar */
.site-header .elementor-widget-button,
.elementor-location-header .elementor-widget-button,
.site-header .elementor-element-meridian_header_cta,
.header-cta-btn,
.meridian-header-btn {
    display: none !important;
}

.site-header .header-inner,
.site-header > .e-con-inner,
.site-header.e-con-full > .e-con-inner {
    max-width: var(--site-fluid-width) !important;
    margin: 0 auto !important;
    padding: 16px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* -------------------------------------------------------------
   3D TILT CONTAINER PERSPECTIVE & TRANSFORMS
   ------------------------------------------------------------- */
.meridian-flex-row,
.meridian-grid-2,
.meridian-grid-3,
.meridian-grid-4,
.perspectives-grid,
.footer-grid {
    perspective: 1200px !important;
}

.meridian-card-col,
[data-id^="con_card"],
.perspective-card,
.client-box,
.project-item,
.manifesto-panel-highlight,
.manifesto-panel-dark,
.meridian-col-2,
.meridian-col-3,
.meridian-col-4 {
    transform-style: preserve-3d !important;
    will-change: transform;
}

/* -------------------------------------------------------------
   MERIDIAN FLEXBOX GRID ALIGNMENT (DESKTOP SIDE-BY-SIDE)
   Allows fine-adjustment via Elementor Width slider
   ------------------------------------------------------------- */
@media (min-width: 768px) {
    /* Multi-column row containers */
    .elementor-element.e-con.meridian-flex-row,
    .elementor-element.e-con.meridian-flex-row > .e-con-inner,
    .elementor-element.e-con.meridian-grid-2 > .e-con-inner,
    .elementor-element.e-con.meridian-grid-3 > .e-con-inner,
    .elementor-element.e-con.meridian-grid-4 > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    /* 3 Columns: Metrics & Team (Default ~31.5% so 3 fit side-by-side) */
    .elementor-element.e-con.meridian-col-3 {
        width: var(--width, 31.5%) !important;
        flex: 0 0 var(--width, 31.5%) !important;
        max-width: var(--width, 31.5%) !important;
        box-sizing: border-box !important;
    }

    /* 2 Columns: Projects, Capabilities Split, Contact Split (Default ~48.5%) */
    .elementor-element.e-con.meridian-col-2 {
        width: var(--width, 48.5%) !important;
        flex: 0 0 var(--width, 48.5%) !important;
        max-width: var(--width, 48.5%) !important;
        box-sizing: border-box !important;
    }

    /* 4 Columns: Clients Editorial Grid (Default ~23.5%) */
    .elementor-element.e-con.meridian-col-4 {
        width: var(--width, 23.5%) !important;
        flex: 0 0 var(--width, 23.5%) !important;
        max-width: var(--width, 23.5%) !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767px) {
    /* Mobile responsive: stack vertically */
    .elementor-element.e-con.meridian-col-3,
    .elementor-element.e-con.meridian-col-2,
    .elementor-element.e-con.meridian-col-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}


