/* Agile Innotech Creative Media Agency - Custom Visual Identity */

/* 1. Imports and Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@600;700;800;900&display=swap');

:root {
    --bg-dark: #06080e;
    --bg-card: rgba(10, 13, 23, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.06);
    --color-primary: #8a2be2; /* Neon Violet */
    --color-secondary: #00f0ff; /* Electric Cyan */
    --color-accent: #ec4899; /* Cyber Pink */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --glow-primary: 0 0 20px rgba(138, 43, 226, 0.4);
    --glow-secondary: 0 0 20px rgba(0, 240, 255, 0.45);
    --glow-accent: 0 0 20px rgba(236, 72, 153, 0.4);
}

html[data-media-theme="dark"] {
    color-scheme: dark;
}

html[data-media-theme="light"] {
    color-scheme: light;
    --bg-dark: #f7faff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-glass: rgba(4, 17, 36, 0.04);
    --border-glass: rgba(15, 23, 42, 0.12);
    --color-primary: #6d28d9;
    --color-secondary: #0284c7;
    --color-accent: #db2777;
    --text-main: #111827;
    --text-muted: #526173;
    --glow-primary: 0 14px 32px rgba(109, 40, 217, 0.18);
    --glow-secondary: 0 14px 32px rgba(2, 132, 199, 0.18);
    --glow-accent: 0 14px 32px rgba(219, 39, 119, 0.18);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-secondary), var(--color-accent));
}

/* 2. Global Resets and Aesthetics */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient cosmic mesh background & grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(138, 43, 226, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
    animation: backgroundShift 30s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(3%, 3%);
    }
}

/* Floating Blur Orbs */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    animation: floatingOrb 20s infinite alternate ease-in-out;
}
.blur-circle-primary {
    width: 250px;
    height: 250px;
    background: var(--color-primary);
}
.blur-circle-secondary {
    width: 320px;
    height: 320px;
    background: var(--color-secondary);
    animation-duration: 25s;
}

@keyframes floatingOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10%, 15%) scale(1.15);
    }
    100% {
        transform: translate(-10%, -5%) scale(0.9);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.15;
}

/* Glowing text classes */
.text-glow-primary {
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
}
.text-glow-secondary {
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}
.text-gradient {
    background: linear-gradient(135deg, #ffffff 20%, var(--color-secondary) 70%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 45%, var(--color-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientMove 4s linear infinite;
}

@keyframes textGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
    z-index: 10000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: width 0.1s ease;
}

/* 3. Navigation Header */
.navbar-media {
    background: rgba(6, 8, 14, 0.65) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.3rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.navbar-media.scrolled {
    padding: 0.8rem 0;
    background: rgba(5, 6, 10, 0.85) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.navbar-media .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 250px;
    text-decoration: none;
}
.media-brand-mark {
    width: 42px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
    filter:
        drop-shadow(0 0 8px rgba(0, 240, 255, 0.48))
        drop-shadow(0 0 18px rgba(138, 43, 226, 0.28));
}
.media-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    line-height: 1;
}
.media-brand-name {
    display: inline-block;
    width: fit-content;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        var(--color-secondary) 22%,
        #4da3ff 42%,
        var(--color-primary) 64%,
        var(--color-accent) 82%,
        #ffffff 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: brandGradientLoop 5.8s linear infinite;
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}
.media-brand-subtitle {
    color: rgba(216, 224, 255, 0.72);
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}
@keyframes brandGradientLoop {
    0% { background-position: 0% 50%; }
    100% { background-position: 260% 50%; }
}
@media (max-width: 991.98px) {
    .navbar-media .navbar-brand {
        min-width: 0;
    }
}
@media (max-width: 575.98px) {
    .navbar-media .navbar-brand {
        gap: 0.55rem;
    }
    .media-brand-mark {
        width: 34px;
        height: 29px;
    }
    .media-brand-name {
        font-size: 0.92rem;
        letter-spacing: 0.045em;
    }
    .media-brand-subtitle {
        font-size: 0.46rem;
        letter-spacing: 0.16em;
    }
}

/* Portfolio case-study ecosystem */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--color-secondary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.portfolio-accent-smm,
.portfolio-accent-creator {
    --case-a: #00f0ff;
    --case-b: #8a2be2;
    --case-c: #ec4899;
}

.portfolio-accent-performance {
    --case-a: #23d5ff;
    --case-b: #2563eb;
    --case-c: #22c55e;
}

.portfolio-accent-video,
.portfolio-accent-post {
    --case-a: #ec4899;
    --case-b: #8a2be2;
    --case-c: #00f0ff;
}

.portfolio-accent-seo {
    --case-a: #00f0ff;
    --case-b: #22c55e;
    --case-c: #8a2be2;
}

.portfolio-vault-hero {
    position: relative;
    overflow: hidden;
    padding: 8.4rem 0 2.7rem;
    background:
        radial-gradient(circle at 12% 28%, rgba(0, 240, 255, 0.16), transparent 34%),
        radial-gradient(circle at 76% 18%, rgba(236, 72, 153, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(13, 10, 34, 0.94), rgba(6, 16, 28, 0.96));
    border-bottom: 1px solid var(--border-glass);
}

.portfolio-vault-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

.portfolio-vault-title {
    max-width: 860px;
    margin: 1.4rem 0 1.2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 4.25vw, 3.95rem);
    font-weight: 900;
    line-height: 1.02;
}

.portfolio-vault-copy,
.portfolio-case-summary {
    max-width: 760px;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.75;
}

.portfolio-vault-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.35rem;
}

.portfolio-vault-note i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.22);
}

.portfolio-vault-note strong,
.portfolio-vault-note span {
    display: block;
}

.portfolio-vault-note strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    margin-bottom: 0.25rem;
}

.portfolio-vault-note span {
    color: var(--text-muted);
    line-height: 1.6;
}

.portfolio-library-section,
.portfolio-feature-section,
.portfolio-case-story,
.portfolio-case-gallery-section,
.portfolio-case-flow-section,
.portfolio-case-delivery-section,
.portfolio-related-section {
    padding: 5.5rem 0;
}

.portfolio-library-section {
    padding-top: 3.4rem;
}

.portfolio-page-item {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

a.portfolio-card,
a.portfolio-card:hover,
a.portfolio-card:focus {
    color: inherit;
    text-decoration: none;
}

.portfolio-case-link {
    display: block;
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--case-a) 18%, transparent), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    box-shadow:
        0 20px 52px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.portfolio-case-link .portfolio-image {
    opacity: 0.82;
    filter: saturate(1.04) contrast(1.04) brightness(0.82);
}

.portfolio-case-link .portfolio-card-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    opacity: 1;
    transform: none;
    background:
        linear-gradient(to top, rgba(4, 7, 18, 0.96) 0%, rgba(4, 7, 18, 0.7) 48%, rgba(4, 7, 18, 0.18) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--case-a) 20%, transparent), transparent 42%),
        linear-gradient(315deg, color-mix(in srgb, var(--case-c) 18%, transparent), transparent 50%);
}

.portfolio-case-link:hover .portfolio-card-overlay {
    opacity: 1;
    transform: none;
}

.portfolio-case-link:hover {
    border-color: color-mix(in srgb, var(--case-a) 54%, rgba(255, 255, 255, 0.12));
    box-shadow:
        0 26px 70px color-mix(in srgb, var(--case-a) 18%, rgba(0, 0, 0, 0.34)),
        inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.portfolio-case-link:hover .portfolio-image {
    opacity: 0.95;
    filter: saturate(1.12) contrast(1.08) brightness(0.9);
}

.portfolio-case-link .portfolio-category {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--case-a);
}

.portfolio-case-link .portfolio-title {
    color: #ffffff;
    line-height: 1.15;
}

.portfolio-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: fit-content;
    margin-top: 0.95rem;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.25s ease, color 0.25s ease;
}

.portfolio-case-link:hover .portfolio-card-cta {
    color: var(--case-a);
    transform: translateX(4px);
}

.portfolio-feature-case {
    min-height: 100%;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--case-a) 18%, transparent), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid var(--border-glass);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.portfolio-feature-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.portfolio-feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(6, 8, 14, 0.74), transparent 62%),
        linear-gradient(135deg, color-mix(in srgb, var(--case-a) 22%, transparent), transparent 48%);
}

.portfolio-feature-media img,
.portfolio-case-visual img,
.portfolio-gallery-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-feature-body {
    padding: 2rem;
}

.portfolio-feature-body h3,
.portfolio-story-panel h2,
.portfolio-flow-list h3,
.portfolio-feature-body p {
    margin-bottom: 0.85rem;
}

.portfolio-feature-body h3 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.12;
}

.portfolio-feature-body p {
    color: var(--text-muted);
    line-height: 1.7;
}

.portfolio-feature-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1.4rem 0 1.6rem;
}

.portfolio-feature-kpis span {
    padding: 0.9rem;
    border-radius: 16px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    line-height: 1.35;
}

.portfolio-feature-kpis strong {
    display: block;
    color: var(--case-a);
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.portfolio-brief-cta {
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 32px;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.18), transparent 34%),
        radial-gradient(circle at 80% 12%, rgba(236, 72, 153, 0.18), transparent 30%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
}

.portfolio-case-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 9.5rem 0 4.3rem;
}

.portfolio-case-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -4;
    background-position: center;
    background-size: cover;
    opacity: 0.28;
    filter: saturate(1.1) contrast(1.05) brightness(0.62);
    transform: scale(1.04);
}

.portfolio-case-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--case-a) 28%, transparent), transparent 38%),
        radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--case-c) 24%, transparent), transparent 34%),
        linear-gradient(120deg, rgba(7, 8, 16, 0.96) 0%, rgba(10, 14, 29, 0.9) 54%, rgba(5, 15, 24, 0.94) 100%);
}

.portfolio-case-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.portfolio-back-row {
    margin-bottom: 2rem;
}

.portfolio-case-title {
    margin: 1.3rem 0 1.2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(2.55rem, 5.8vw, 5.1rem);
    font-weight: 950;
    line-height: 0.98;
}

.portfolio-case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-case-visual {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid color-mix(in srgb, var(--case-a) 24%, var(--border-glass));
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.34),
        0 0 90px color-mix(in srgb, var(--case-a) 14%, transparent);
}

.portfolio-case-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(4, 7, 18, 0.78), transparent 58%),
        radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--case-a) 34%, transparent), transparent 34%),
        radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--case-c) 30%, transparent), transparent 38%);
    pointer-events: none;
}

.portfolio-case-visual figcaption {
    position: absolute;
    z-index: 2;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(4, 7, 18, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.portfolio-case-visual figcaption span,
.portfolio-case-visual figcaption strong {
    color: #ffffff;
}

.portfolio-case-visual figcaption span {
    color: var(--case-a);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portfolio-case-visual figcaption strong {
    font-family: var(--font-heading);
}

.portfolio-results-band {
    padding: 1.5rem 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(255, 255, 255, 0.02);
    border-block: 1px solid var(--border-glass);
}

.portfolio-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.portfolio-result {
    padding: 1.4rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--case-a) 16%, transparent), transparent 44%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-result strong {
    display: block;
    color: var(--case-a);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.portfolio-result span {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.portfolio-story-panel,
.portfolio-delivery-panel {
    height: 100%;
    padding: clamp(1.45rem, 3vw, 2.25rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 14% 14%, color-mix(in srgb, var(--case-a) 14%, transparent), transparent 40%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
}

.portfolio-story-panel > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1.2rem;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--case-a), var(--case-b), var(--case-c));
    font-weight: 900;
}

.portfolio-story-panel h2,
.portfolio-flow-list h3,
.portfolio-delivery-panel h2 {
    color: #ffffff;
}

.portfolio-story-panel p,
.portfolio-flow-list p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.portfolio-case-gallery {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    grid-auto-rows: 250px;
    gap: 1rem;
}

.portfolio-gallery-scene {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    margin: 0;
    border-radius: 28px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.04);
}

.portfolio-gallery-scene.is-large {
    grid-row: span 2;
}

.portfolio-gallery-scene img {
    filter: saturate(1.02) contrast(1.04) brightness(0.86);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-gallery-scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(4, 7, 18, 0.9), rgba(4, 7, 18, 0.24) 58%, transparent),
        linear-gradient(135deg, color-mix(in srgb, var(--case-a) 22%, transparent), transparent 44%);
}

.portfolio-gallery-scene:hover img {
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.08) brightness(0.92);
}

.portfolio-gallery-scene figcaption {
    position: absolute;
    z-index: 2;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
}

.portfolio-gallery-scene figcaption span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.45rem;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    color: var(--case-a);
    background: rgba(4, 7, 18, 0.7);
    border: 1px solid color-mix(in srgb, var(--case-a) 32%, transparent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-gallery-scene figcaption strong {
    display: block;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.16;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.58);
}

.portfolio-flow-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portfolio-flow-list li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--border-glass);
}

.portfolio-flow-list li > span {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--case-a), var(--case-b));
    font-weight: 900;
}

.portfolio-chip-grid,
.portfolio-channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portfolio-chip-grid span,
.portfolio-channel-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.portfolio-chip-grid i {
    color: var(--case-a);
}

html[data-media-theme="light"] .portfolio-vault-hero {
    background:
        radial-gradient(circle at 12% 28%, rgba(14, 165, 233, 0.16), transparent 34%),
        radial-gradient(circle at 76% 18%, rgba(236, 72, 153, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.96));
}

html[data-media-theme="light"] .portfolio-vault-title,
html[data-media-theme="light"] .portfolio-feature-body h3,
html[data-media-theme="light"] .portfolio-story-panel h2,
html[data-media-theme="light"] .portfolio-flow-list h3,
html[data-media-theme="light"] .portfolio-delivery-panel h2 {
    color: #0f172a;
}

html[data-media-theme="light"] .portfolio-vault-note strong {
    color: #0f172a;
}

html[data-media-theme="light"] .portfolio-case-link {
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

html[data-media-theme="light"] .portfolio-feature-case,
html[data-media-theme="light"] .portfolio-brief-cta,
html[data-media-theme="light"] .portfolio-story-panel,
html[data-media-theme="light"] .portfolio-delivery-panel,
html[data-media-theme="light"] .portfolio-flow-list li,
html[data-media-theme="light"] .portfolio-result {
    background:
        radial-gradient(circle at 14% 14%, color-mix(in srgb, var(--case-a) 12%, transparent), transparent 42%),
        rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .portfolio-case-hero::before {
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.88) 54%, rgba(255, 247, 251, 0.84)),
        radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--case-a) 18%, transparent), transparent 36%);
}

html[data-media-theme="light"] .portfolio-case-hero-bg {
    opacity: 0.2;
    filter: saturate(0.96) contrast(1.02) brightness(1.02);
}

html[data-media-theme="light"] .portfolio-case-title {
    color: #0f172a;
}

html[data-media-theme="light"] .portfolio-results-band {
    background: rgba(248, 250, 252, 0.82);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .portfolio-chip-grid span,
html[data-media-theme="light"] .portfolio-channel-list span,
html[data-media-theme="light"] .portfolio-feature-kpis span {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
}

@media (max-width: 991.98px) {
    .portfolio-vault-hero,
    .portfolio-case-hero {
        padding-top: 9.5rem;
    }

    .portfolio-case-visual {
        min-height: 390px;
    }

    .portfolio-case-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .portfolio-gallery-scene.is-large {
        grid-row: auto;
    }
}

@media (max-width: 575.98px) {
    .portfolio-vault-hero,
    .portfolio-case-hero {
        padding-top: 8.5rem;
        padding-bottom: 3.5rem;
    }

    .portfolio-vault-note,
    .portfolio-flow-list li {
        grid-template-columns: 1fr;
    }

    .portfolio-card-overlay {
        padding: 1.35rem;
    }

    .portfolio-feature-kpis,
    .portfolio-results-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-feature-body,
    .portfolio-story-panel,
    .portfolio-delivery-panel {
        padding: 1.35rem;
    }

    .portfolio-case-visual {
        min-height: 320px;
        border-radius: 24px;
    }

    .portfolio-case-visual figcaption {
        align-items: flex-start;
        flex-direction: column;
    }
}
.media-navbar-actions {
    flex-wrap: wrap;
}

.media-main-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 40px;
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(138, 43, 226, 0.12)),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 240, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.media-main-site-link i {
    color: var(--color-secondary);
}

.media-main-site-link:hover,
.media-main-site-link:focus {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(236, 72, 153, 0.42);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 16px 36px rgba(138, 43, 226, 0.16);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.theme-toggle-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 14px 34px rgba(0, 240, 255, 0.12);
}
.theme-toggle-track {
    position: relative;
    width: 58px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.48rem;
    background:
        radial-gradient(circle at 25% 50%, rgba(138, 43, 226, 0.45), transparent 45%),
        linear-gradient(135deg, rgba(7, 10, 18, 0.96), rgba(24, 31, 55, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.theme-toggle-icon {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    line-height: 1;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.theme-toggle-icon-dark {
    color: #c4b5fd;
}
.theme-toggle-icon-light {
    color: rgba(255, 255, 255, 0.42);
}
.theme-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0%, #dbeafe 38%, #8b5cf6 100%);
    box-shadow:
        0 0 18px rgba(139, 92, 246, 0.55),
        0 3px 12px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.18), background 0.25s ease, box-shadow 0.25s ease;
}
.theme-toggle-label {
    min-width: 34px;
    color: var(--text-main);
}
.navbar-media .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.3rem !important;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-media .nav-link:hover,
.navbar-media .nav-link.active {
    color: #ffffff !important;
}
.navbar-media .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1.3rem;
    right: 1.3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: right;
}
.navbar-media .nav-link:hover::after,
.navbar-media .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 4. Glassmorphism & UI Components */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.8rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-media-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--glow-primary);
}
.btn-media-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.btn-media-primary:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}
.btn-media-primary:hover::before {
    opacity: 1;
}
.btn-media-primary:active {
    transform: translateY(-1px);
}

.btn-media-outline {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    border: 2px solid var(--color-secondary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-media-outline:hover {
    background: var(--color-secondary);
    color: #06080e;
    box-shadow: var(--glow-secondary);
    transform: translateY(-3px);
}

/* 5. Hero Section styling */
.hero-agency {
    padding: 11rem 0 8rem 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-agency::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 8, 14, 0.88) 0%, rgba(6, 8, 14, 0.56) 35%, rgba(6, 8, 14, 0.14) 66%, rgba(6, 8, 14, 0.46) 100%),
        linear-gradient(180deg, rgba(6, 8, 14, 0.14) 0%, rgba(6, 8, 14, 0) 45%, var(--bg-dark) 100%);
}
.hero-agency > .container {
    position: relative;
    z-index: 1;
}
.hero-bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.48;
    filter: saturate(1.05) brightness(1.12) blur(0.1px);
    pointer-events: none;
}
.hero-bg-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, transparent 40%, var(--bg-dark) 100%),
        linear-gradient(to right, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%);
    pointer-events: none;
}
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.8rem;
    letter-spacing: -0.03em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2.8rem;
    max-width: 600px;
}
.hero-tagline-ticker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.3rem;
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    margin-bottom: 1.6rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* 6. Demo Video Section */
.video-preview-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 30px 70px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16/9;
    cursor: pointer;
}
.video-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    background: #06080e;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.video-preview-wrapper:hover .video-thumbnail {
    transform: scale(1.06);
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 8, 14, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.video-preview-wrapper:hover .video-overlay {
    background: rgba(6, 8, 14, 0.2);
}
.play-btn-glowing {
    width: 84px;
    height: 84px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 2rem;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.play-btn-glowing i {
    margin-left: 6px; /* Offset center for play icon */
}
.video-preview-wrapper:hover .play-btn-glowing {
    transform: scale(1.15);
    background: var(--color-secondary);
    color: var(--bg-dark);
    box-shadow: var(--glow-secondary);
}

/* Video Lightbox */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.97);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.media-lightbox.active {
    display: flex;
    opacity: 1;
}
.media-lightbox-content {
    width: 92%;
    max-width: 1050px;
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 60px rgba(138, 43, 226, 0.45);
    position: relative;
}
.media-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.media-lightbox-close:hover {
    color: var(--color-accent);
}

/* 7. Services Layout */
.service-card {
    background: rgba(14, 18, 30, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 2.8rem 2.2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: left;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(138, 43, 226, 0.12);
    background: rgba(14, 18, 30, 0.75);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon-box {
    width: 68px;
    height: 68px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.85rem;
    color: var(--color-secondary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.service-card:hover .service-icon-box {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--glow-primary);
    transform: rotate(-6deg) scale(1.08);
}
.service-card-title {
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
}
.service-card-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* 8. Filterable Showcase / Portfolio */
.portfolio-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.portfolio-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.65rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.portfolio-filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}
.portfolio-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--glow-primary);
}

.portfolio-grid-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-card:hover .portfolio-image {
    transform: scale(1.08);
}
.portfolio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.2rem;
    background: linear-gradient(to top, rgba(6, 8, 14, 0.98) 0%, rgba(6, 8, 14, 0.6) 65%, transparent 100%);
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
}
.portfolio-stats {
    font-size: 0.88rem;
    color: var(--color-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 9. Interactive Brief Creator Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}
.wizard-progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
    z-index: 2;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px var(--color-secondary);
}
.wizard-step-node {
    width: 44px;
    height: 44px;
    background: #0d111d;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.4s ease;
}
.wizard-step-node.active {
    border-color: var(--color-secondary);
    color: #ffffff;
    box-shadow: var(--glow-secondary);
}
.wizard-step-node.completed {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--glow-primary);
}

.wizard-panel {
    display: none;
}
.wizard-panel.active {
    display: block;
    animation: slideFadeIn 0.5s ease forwards;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clickable Services Checkcards */
.brief-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
}
.service-checkcard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.2rem 1.3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    user-select: none;
}
.service-checkcard input[type="checkbox"] {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
}
.service-checkcard-icon {
    font-size: 2.3rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}
.service-checkcard-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}
.service-checkcard-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.service-checkcard:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}
/* Selected state */
.service-checkcard.selected {
    border-color: var(--color-secondary);
    background: rgba(0, 240, 255, 0.04);
    box-shadow: 
        0 15px 30px rgba(0, 240, 255, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}
.service-checkcard.selected .service-checkcard-icon {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* Custom interactive sliders */
.custom-range-slider-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.2rem;
    margin-top: 1.5rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin: 1.5rem 0;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-secondary);
    cursor: pointer;
    box-shadow: var(--glow-secondary);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: var(--color-accent);
    box-shadow: var(--glow-accent);
}
.slider-value-display {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Success Animation and Details */
.brief-success-card {
    text-align: center;
    padding: 3rem 2rem;
}
.success-checkmark-wrapper {
    width: 96px;
    height: 96px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8rem;
    color: var(--color-secondary);
    margin: 0 auto 2.2rem auto;
    animation: scalePulse 1.5s infinite alternate ease-in-out;
}
@keyframes scalePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }
    100% {
        transform: scale(1.08);
        box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
    }
}

/* 10. Footer Section */
.footer-media {
    background: #030408;
    border-top: 1px solid var(--border-glass);
    padding: 5.5rem 0 2rem 0;
    color: var(--text-muted);
}
.footer-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.6rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}
.media-brand-footer .media-brand-mark {
    width: 46px;
    height: 39px;
}
.media-brand-footer .media-brand-name {
    font-size: 1.24rem;
}
.media-brand-footer .media-brand-subtitle {
    font-size: 0.58rem;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 0.8rem;
}
.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links-list a:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}
.social-icons-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.social-icon-btn:hover {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-4px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 4.5rem;
    font-size: 0.85rem;
}

/* Custom styles for form components */
.form-media-control {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 0.85rem 1.3rem !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}
.form-media-control:focus {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}
.form-media-control::placeholder {
    color: #3f4859 !important;
}

.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transition: border-color 0.3s ease;
}
.service-card.border-dashed:hover {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* ============================================================
   11. Utility Classes & Contrast Fixes
   These helpers are referenced throughout the media views but were
   previously undefined, which caused the low-contrast text, invisible
   "glass" sections, missing borders and un-styled labels.
   ============================================================ */

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(138, 43, 226, 0.45);
    color: #ffffff;
}

/* Bootstrap's default .text-muted resolves to a near-black grey that is
   almost invisible on this dark cosmic canvas. Pin it to the brand's
   readable muted tone. */
.text-muted {
    color: var(--text-muted) !important;
}

/* Keep intro / lead paragraphs at a comfortable reading measure */
.max-width-600 {
    max-width: 600px;
}

/* Typography helpers (headings, stat blocks, eyebrow labels) */
.font-heading {
    font-family: var(--font-heading) !important;
}
.font-weight-bold {
    font-weight: 700 !important;
}
.font-size-xs {
    font-size: 0.72rem !important;
}
.letter-spacing-1 {
    letter-spacing: 0.08em !important;
}
.tracking-2 {
    letter-spacing: 0.16em;
}
.uppercase {
    text-transform: uppercase;
}

/* Frosted-glass full-width section background */
.bg-glass {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.004) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--border-glass) !important;
}

/* Subtle glass hairline used on imagery / cards */
.border-glass {
    border: 1px solid var(--border-glass) !important;
}

/* Neon aura for hero / CTA glass panels */
.border-glow {
    border: 1px solid rgba(0, 240, 255, 0.22) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 45px rgba(138, 43, 226, 0.22),
        0 0 80px rgba(0, 240, 255, 0.10) !important;
}

/* Give the accent Bootstrap-Icons their intended neon colour (headings
   stay white because they are never .bi elements). */
i.bi.text-glow-primary {
    color: var(--color-primary);
}
i.bi.text-glow-secondary {
    color: var(--color-secondary);
}

/* Re-skin the stray Bootstrap primary badge to match the palette */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
    color: #ffffff !important;
    letter-spacing: 0.08em;
    box-shadow: var(--glow-primary);
}

/* Prevent gradient-text descenders (g, p, y) from being clipped */
.text-gradient,
.text-gradient-purple {
    display: inline-block;
    padding-bottom: 0.06em;
}

/* Gentle attention pulse on the video play button */
.play-btn-glowing {
    animation: playPulse 2.6s ease-in-out infinite;
}
@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    50%      { box-shadow: 0 0 55px rgba(0, 240, 255, 0.7); }
}
.video-preview-wrapper:hover .play-btn-glowing {
    animation-play-state: paused;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================================
   Agile Media Portal Expansion & UX Physics Overrides
   ======================================================== */

/* Scroll Reveal Entries */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Neomorphic Mechanical Push Buttons */
.btn-neomorphic-secondary {
    background: #0d1222;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-secondary);
    box-shadow: 
        -3px -3px 8px rgba(255, 255, 255, 0.02),
        3px 3px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
    border-radius: 12px;
}
.btn-neomorphic-secondary:active,
.btn-neomorphic-secondary.active {
    box-shadow: 
        inset -2px -2px 6px rgba(255, 255, 255, 0.02),
        inset 2px 2px 6px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-color: rgba(0, 240, 255, 0.2);
}

/* 3D Perspective Card Tilt Hover */
.card-tilt-hover {
    perspective: 1000px;
    transition: transform 0.4s ease;
}
.card-tilt-hover:hover {
    transform: rotateY(5deg) rotateX(2deg) scale(1.02);
}

/* Border-Beam Glowing Loop Animation */
.border-beam-container {
    position: relative;
    overflow: hidden;
}
.border-beam-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(0, 240, 255, 0.4), 
        rgba(138, 43, 226, 0.4), 
        transparent 30%
    );
    animation: borderBeamRotate 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes borderBeamRotate {
    100% { transform: rotate(360deg); }
}
.border-beam-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    margin: 1px;
    border-radius: inherit;
    height: calc(100% - 2px);
}

/* FAQs Accordion styling */
.faq-accordion-custom {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.faq-item-custom {
    background: rgba(13, 17, 28, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item-custom.active {
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.1);
    background: rgba(13, 17, 28, 0.6);
}
.faq-trigger-custom {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.faq-trigger-custom h4 {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}
.faq-item-custom.active .faq-trigger-custom h4 {
    color: var(--color-secondary);
}
.faq-icon-custom {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item-custom.active .faq-icon-custom {
    transform: rotate(180deg);
    color: var(--color-secondary);
}
.faq-content-custom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.faq-content-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.96rem;
}

/* Client Dashboard Mockup styling */
.dashboard-mockup-wrapper {
    background: rgba(8, 10, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
}
.dashboard-mockup-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}
.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dashboard-dot-red { background: #ff5f56; }
.dashboard-dot-yellow { background: #ffbd2e; }
.dashboard-dot-green { background: #27c93f; }

.dashboard-nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.dashboard-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.dashboard-nav-btn.active {
    background: rgba(138, 43, 226, 0.15);
    color: #ffffff;
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}
.dashboard-panel-inner {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.dashboard-panel-inner.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.dashboard-card-mini {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.2rem;
}
.dashboard-metric-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

/* Animated SVG Chart */
.svg-chart-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: svgChartDraw 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards infinite alternate;
}
@keyframes svgChartDraw {
    to { stroke-dashoffset: 0; }
}

/* Dynamic ROI Calculator widget styles */
.roi-calculator-wrapper {
    background: linear-gradient(135deg, rgba(14, 18, 30, 0.8), rgba(8, 10, 16, 0.95));
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 
        0 20px 50px rgba(0, 240, 255, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.roi-metric-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.01);
    border: 3px solid rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
    transition: all 0.3s ease;
}
.roi-calculator-wrapper:hover .roi-metric-circle {
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* ========================================================
   Light Theme: luminous studio glass
   ======================================================== */
html[data-media-theme="light"] body {
    background:
        linear-gradient(135deg, #f7faff 0%, #eef7ff 42%, #fff7fb 100%);
    color: var(--text-main);
}

html[data-media-theme="light"] body::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(2, 132, 199, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(219, 39, 119, 0.13) 0%, transparent 38%),
        radial-gradient(circle at 52% 78%, rgba(109, 40, 217, 0.14) 0%, transparent 46%);
    opacity: 1;
}

html[data-media-theme="light"] body::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-media-theme="light"] ::-webkit-scrollbar-track {
    background: #eaf2ff;
}

html[data-media-theme="light"] h1,
html[data-media-theme="light"] h2,
html[data-media-theme="light"] h3,
html[data-media-theme="light"] h4,
html[data-media-theme="light"] h5,
html[data-media-theme="light"] h6 {
    color: #0f172a;
}

html[data-media-theme="light"] .text-white {
    color: #0f172a !important;
}

html[data-media-theme="light"] .text-muted {
    color: var(--text-muted) !important;
}

html[data-media-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #0f172a 8%, var(--color-secondary) 58%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-media-theme="light"] .navbar-media {
    background: rgba(255, 255, 255, 0.78) !important;
    border-bottom-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .navbar-media.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .navbar-media .nav-link {
    color: #586174 !important;
}

html[data-media-theme="light"] .navbar-media .nav-link:hover,
html[data-media-theme="light"] .navbar-media .nav-link.active {
    color: #0f172a !important;
}

html[data-media-theme="light"] .navbar-toggler {
    border-color: rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.58);
}

html[data-media-theme="light"] .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

html[data-media-theme="light"] .media-brand-mark {
    filter:
        drop-shadow(0 8px 18px rgba(2, 132, 199, 0.18))
        drop-shadow(0 0 8px rgba(109, 40, 217, 0.2));
}

html[data-media-theme="light"] .media-brand-name {
    background: linear-gradient(
        90deg,
        #071b55 0%,
        #0284c7 24%,
        #2563eb 44%,
        #6d28d9 66%,
        #db2777 84%,
        #071b55 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-media-theme="light"] .media-brand-subtitle {
    color: rgba(15, 23, 42, 0.64);
}

html[data-media-theme="light"] .theme-toggle-btn {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.72));
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.75),
        0 12px 28px rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .theme-toggle-track {
    background:
        radial-gradient(circle at 72% 45%, rgba(251, 191, 36, 0.64), transparent 42%),
        linear-gradient(135deg, #dff4ff, #fff1f7);
    border-color: rgba(2, 132, 199, 0.18);
}

html[data-media-theme="light"] .theme-toggle-icon-dark {
    color: rgba(15, 23, 42, 0.35);
}

html[data-media-theme="light"] .theme-toggle-icon-light {
    color: #f59e0b;
}

html[data-media-theme="light"] .theme-toggle-thumb {
    transform: translateX(28px);
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0%, #fde68a 44%, #f59e0b 100%);
    box-shadow:
        0 0 18px rgba(245, 158, 11, 0.42),
        0 3px 12px rgba(15, 23, 42, 0.18);
}

html[data-media-theme="light"] .theme-toggle-label {
    color: #0f172a;
}

html[data-media-theme="light"] .media-main-site-link {
    color: #0f172a;
    background:
        linear-gradient(135deg, rgba(0, 174, 255, 0.13), rgba(236, 72, 153, 0.1)),
        rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .media-main-site-link:hover,
html[data-media-theme="light"] .media-main-site-link:focus {
    color: #0f172a;
    border-color: rgba(0, 174, 255, 0.32);
}

html[data-media-theme="light"] .hero-agency {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 246, 255, 0.52) 46%, rgba(236, 253, 255, 0.42) 100%);
}

html[data-media-theme="light"] .hero-agency::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 255, 0.64) 36%, rgba(236, 253, 255, 0.2) 68%, rgba(255, 247, 251, 0.44) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 48%, var(--bg-dark) 100%);
}

html[data-media-theme="light"] .hero-bg-video-container {
    opacity: 0.34;
    filter: saturate(1.04) brightness(1.08) blur(0.1px);
}

html[data-media-theme="light"] .hero-title {
    text-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}

html[data-media-theme="light"] .hero-subtitle {
    color: #3e4a5d;
}

html[data-media-theme="light"] .hero-tagline-ticker {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(109, 40, 217, 0.18);
    color: #075985;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        0 12px 28px rgba(109, 40, 217, 0.1);
}

html[data-media-theme="light"] .btn-media-outline {
    color: #075985;
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(2, 132, 199, 0.74);
}

html[data-media-theme="light"] .btn-media-outline:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-color: transparent;
}

html[data-media-theme="light"] .glass-panel,
html[data-media-theme="light"] .service-card,
html[data-media-theme="light"] .service-checkcard,
html[data-media-theme="light"] .custom-range-slider-wrapper,
html[data-media-theme="light"] .faq-item-custom,
html[data-media-theme="light"] .dashboard-card-mini {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(15, 23, 42, 0.11);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.82),
        0 18px 48px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .glass-panel:hover,
html[data-media-theme="light"] .service-card:hover,
html[data-media-theme="light"] .service-checkcard:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        0 24px 56px rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .bg-glass {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 246, 255, 0.4) 100%);
    border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-media-theme="light"] .border-glow {
    border-color: rgba(2, 132, 199, 0.22) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.86),
        0 20px 52px rgba(109, 40, 217, 0.14),
        0 0 74px rgba(2, 132, 199, 0.1) !important;
}

html[data-media-theme="light"] .service-icon-box {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.18);
    color: #0369a1;
}

html[data-media-theme="light"] .portfolio-filter-btn {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(15, 23, 42, 0.12);
    color: #526173;
}

html[data-media-theme="light"] .portfolio-filter-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-color: rgba(2, 132, 199, 0.22);
}

html[data-media-theme="light"] .portfolio-filter-btn.active {
    color: #ffffff;
}

html[data-media-theme="light"] .portfolio-card {
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .portfolio-card-overlay,
html[data-media-theme="light"] .portfolio-card-overlay h1,
html[data-media-theme="light"] .portfolio-card-overlay h2,
html[data-media-theme="light"] .portfolio-card-overlay h3,
html[data-media-theme="light"] .portfolio-card-overlay h4,
html[data-media-theme="light"] .portfolio-card-overlay h5,
html[data-media-theme="light"] .portfolio-card-overlay h6,
html[data-media-theme="light"] .portfolio-card-overlay .text-white {
    color: #ffffff !important;
}

html[data-media-theme="light"] .wizard-steps::before,
html[data-media-theme="light"] .custom-slider {
    background: rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .wizard-step-node {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    color: #526173;
}

html[data-media-theme="light"] .wizard-step-node.active,
html[data-media-theme="light"] .wizard-step-node.completed {
    color: #ffffff;
}

html[data-media-theme="light"] .service-checkcard.selected {
    background: rgba(2, 132, 199, 0.08);
    box-shadow:
        0 18px 42px rgba(2, 132, 199, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-media-theme="light"] .border-beam-content {
    background: rgba(255, 255, 255, 0.86);
}

html[data-media-theme="light"] .faq-item-custom.active {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(109, 40, 217, 0.2);
    box-shadow: 0 18px 42px rgba(109, 40, 217, 0.1);
}

html[data-media-theme="light"] .faq-trigger-custom h4 {
    color: #0f172a;
}

html[data-media-theme="light"] .dashboard-mockup-wrapper,
html[data-media-theme="light"] .roi-calculator-wrapper {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.72));
    border-color: rgba(2, 132, 199, 0.16);
    box-shadow:
        0 24px 58px rgba(15, 23, 42, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-media-theme="light"] .dashboard-mockup-header {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .dashboard-nav-btn {
    color: #526173;
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

html[data-media-theme="light"] .dashboard-nav-btn.active {
    background: rgba(109, 40, 217, 0.1);
    color: #4c1d95;
    border-color: rgba(109, 40, 217, 0.24);
}

html[data-media-theme="light"] .dashboard-metric-value {
    color: #0f172a;
}

html[data-media-theme="light"] .roi-metric-circle {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(2, 132, 199, 0.18);
    box-shadow: inset 0 0 16px rgba(2, 132, 199, 0.08);
}

html[data-media-theme="light"] .form-media-control {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

html[data-media-theme="light"] .form-media-control:focus {
    background: #ffffff !important;
    box-shadow:
        0 0 0 0.25rem rgba(2, 132, 199, 0.12),
        0 12px 28px rgba(2, 132, 199, 0.1) !important;
}

html[data-media-theme="light"] .form-media-control::placeholder {
    color: #8a97a8 !important;
}

html[data-media-theme="light"] .border-dashed {
    border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-media-theme="light"] .btn-neomorphic-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.12);
    color: #075985;
    box-shadow:
        -3px -3px 8px rgba(255, 255, 255, 0.8),
        3px 3px 10px rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .btn-neomorphic-secondary:active,
html[data-media-theme="light"] .btn-neomorphic-secondary.active {
    color: #4c1d95;
    box-shadow:
        inset -2px -2px 6px rgba(255, 255, 255, 0.8),
        inset 2px 2px 6px rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .footer-media {
    background:
        linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(232, 242, 255, 0.98));
    border-top-color: rgba(15, 23, 42, 0.1);
    color: var(--text-muted);
}

html[data-media-theme="light"] .footer-title {
    color: #0f172a;
}

html[data-media-theme="light"] .social-icon-btn {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.12);
    color: #526173;
}

html[data-media-theme="light"] .social-icon-btn:hover {
    color: #ffffff;
}

html[data-media-theme="light"] .footer-bottom {
    border-top-color: rgba(15, 23, 42, 0.1);
}

@media (max-width: 991.98px) {
    .media-navbar-actions {
        align-items: flex-start !important;
        margin-top: 1rem;
    }
}

/* ========================================================
   Operational Division Cards & Detail Pages
   ======================================================== */
a.division-card-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
    text-decoration-line: none !important;
    min-height: 100%;
}

a.division-card-link:hover,
a.division-card-link:focus,
a.division-card-link:visited {
    color: inherit;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

a.division-card-link *,
a.division-card-link:hover *,
a.division-card-link:focus * {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.division-card-link .border-beam-content {
    display: flex;
    flex-direction: column;
}

.division-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin-top: 1.5rem;
    color: var(--color-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.25s ease, color 0.25s ease;
}

.division-card-link:hover .division-card-cta {
    color: var(--color-accent);
    transform: translateX(4px);
}

.division-detail-hero {
    --division-a: var(--color-secondary);
    --division-b: var(--color-primary);
    --division-c: var(--color-accent);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 11rem 0 5.5rem;
}

.division-hero-video-container {
    position: absolute;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.34;
    background: #06080e;
}

.division-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04) brightness(0.84);
    transform: scale(1.025);
}

.division-detail-cinema .division-hero-video-container {
    opacity: 0.42;
}

.division-detail-performance {
    --division-a: #00f0ff;
    --division-b: #8a2be2;
    --division-c: #ec4899;
}

.division-detail-cinema {
    --division-a: #ec4899;
    --division-b: #8a2be2;
    --division-c: #00f0ff;
}

.division-detail-seo {
    --division-a: #00f0ff;
    --division-b: #22c55e;
    --division-c: #8a2be2;
}

.division-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--division-a) 26%, transparent), transparent 38%),
        radial-gradient(circle at 84% 28%, color-mix(in srgb, var(--division-b) 24%, transparent), transparent 42%),
        radial-gradient(circle at 56% 78%, color-mix(in srgb, var(--division-c) 18%, transparent), transparent 45%),
        linear-gradient(135deg, rgba(6, 8, 14, 0.84), rgba(10, 13, 23, 0.76));
}

.division-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.division-back-row {
    margin-bottom: 2rem;
}

.division-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: color 0.25s ease, transform 0.25s ease;
}

.division-back-link:hover {
    color: var(--color-secondary);
    transform: translateX(-4px);
}

.division-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    color: var(--division-a);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid color-mix(in srgb, var(--division-a) 34%, transparent);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.division-detail-title {
    max-width: 720px;
    margin: 1.4rem 0 1.4rem;
    font-size: clamp(3rem, 6vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.division-detail-summary {
    max-width: 650px;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.division-detail-copy {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.division-detail-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.division-visual-shell {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 32px;
    padding: 1.3rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
        radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--division-a) 18%, transparent), transparent 45%);
    border: 1px solid var(--border-glass);
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.38),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.division-visual-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem 0.8rem;
}

.division-visual-topline i {
    color: var(--division-a);
}

.division-radar-graphic {
    position: relative;
    min-height: 350px;
    margin: 1rem 0;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--division-a) 28%, transparent), transparent 46%),
        linear-gradient(135deg, rgba(5, 7, 12, 0.68), rgba(12, 16, 28, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.division-radar-ring,
.division-radar-beam,
.division-radar-core,
.division-radar-node {
    position: absolute;
}

.division-radar-ring {
    inset: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid color-mix(in srgb, var(--division-a) 28%, transparent);
    border-radius: 50%;
}

.division-radar-ring-one {
    width: 120px;
    height: 120px;
}

.division-radar-ring-two {
    width: 220px;
    height: 220px;
}

.division-radar-ring-three {
    width: 320px;
    height: 320px;
}

.division-radar-beam {
    inset: 8%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--division-a) 36%, transparent) 24deg, transparent 62deg);
    animation: divisionRadarSweep 8s linear infinite;
}

@keyframes divisionRadarSweep {
    to { transform: rotate(360deg); }
}

.division-radar-core {
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    transform: translate(-50%, -50%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--division-a), var(--division-b));
    box-shadow:
        0 0 34px color-mix(in srgb, var(--division-a) 48%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.34);
}

.division-radar-node {
    z-index: 2;
    padding: 0.48rem 0.74rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid color-mix(in srgb, var(--division-a) 28%, transparent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.division-radar-node:nth-of-type(1) {
    top: 9%;
    left: 50%;
    transform: translateX(-50%);
}

.division-radar-node:nth-of-type(2) {
    top: 32%;
    right: 6%;
}

.division-radar-node:nth-of-type(3) {
    right: 14%;
    bottom: 13%;
}

.division-radar-node:nth-of-type(4) {
    left: 10%;
    bottom: 14%;
}

.division-radar-node:nth-of-type(5) {
    top: 32%;
    left: 6%;
}

.division-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.division-metric-tile {
    min-height: 102px;
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.division-metric-tile strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1;
}

.division-metric-tile span {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.45rem;
    line-height: 1.35;
}

.division-detail-section {
    padding: 5rem 0;
}

.division-module-card,
.division-process-panel,
.division-deliverables-panel,
.division-stack-panel,
.division-next-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 24px 56px rgba(0, 0, 0, 0.24);
}

.division-module-card {
    padding: 2.2rem;
}

.division-module-card::before,
.division-process-panel::before,
.division-deliverables-panel::before,
.division-stack-panel::before,
.division-next-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent 42%);
}

.division-module-number {
    display: inline-flex;
    margin-bottom: 1.4rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.division-module-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.division-module-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.division-scene-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 2.2rem;
    align-items: center;
}

.division-scene-copy {
    position: relative;
    padding: 1.4rem 0 1.4rem 1.5rem;
}

.division-scene-copy::before {
    content: '';
    position: absolute;
    top: 1.6rem;
    bottom: 1.6rem;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--division-a), var(--division-b), var(--division-c));
    box-shadow: 0 0 22px color-mix(in srgb, var(--division-a) 32%, transparent);
}

.division-scene-copy h2 {
    max-width: 520px;
}

.division-scene-copy p {
    max-width: 520px;
    line-height: 1.75;
}

.division-scene-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    gap: 1rem;
    min-height: 500px;
}

.division-scene-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    margin: 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--division-a) 26%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--division-b) 28%, #070a12), #070a12 56%, color-mix(in srgb, var(--division-c) 22%, #070a12));
    border: 1px solid color-mix(in srgb, var(--division-a) 22%, var(--border-glass));
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 34px color-mix(in srgb, var(--division-b) 13%, transparent);
}

.division-scene-card-featured {
    grid-row: span 2;
}

.division-scene-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transform: scale(1.01);
    opacity: 0.82;
    filter: saturate(0.96) contrast(1.08) brightness(0.86);
    mix-blend-mode: normal;
    transition: transform 0.55s ease, filter 0.55s ease, opacity 0.55s ease;
}

.division-scene-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(6, 8, 14, 0.9), rgba(6, 8, 14, 0.26) 54%, rgba(6, 8, 14, 0.04)),
        linear-gradient(135deg, color-mix(in srgb, var(--division-a) 42%, transparent), transparent 42%),
        linear-gradient(315deg, color-mix(in srgb, var(--division-c) 36%, transparent), transparent 48%);
}

.division-scene-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 44%, transparent 70%),
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--division-b) 42%, transparent), transparent 40%),
        radial-gradient(circle at 14% 88%, color-mix(in srgb, var(--division-a) 32%, transparent), transparent 42%);
    opacity: 0.62;
    mix-blend-mode: screen;
    transition: opacity 0.35s ease, transform 0.55s ease;
}

.division-scene-card:hover img {
    transform: scale(1.06);
    opacity: 0.94;
    filter: saturate(1.08) contrast(1.08) brightness(0.92);
}

.division-scene-card:hover::after {
    opacity: 0.88;
    transform: translateX(2%);
}

.division-scene-card figcaption {
    position: absolute;
    z-index: 2;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.division-scene-card figcaption span {
    width: fit-content;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    color: var(--division-a);
    background: rgba(6, 8, 14, 0.68);
    border: 1px solid color-mix(in srgb, var(--division-a) 34%, transparent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.division-scene-card figcaption strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.18;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.division-process-panel,
.division-deliverables-panel,
.division-stack-panel,
.division-next-panel {
    padding: 2.4rem;
}

.division-process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.division-process-list li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.division-process-list span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    font-weight: 900;
}

.division-process-list p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.division-deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.95rem;
}

.division-deliverables-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-main);
    line-height: 1.55;
}

.division-deliverables-list i {
    color: var(--color-secondary);
    font-size: 1.1rem;
    margin-top: 0.12rem;
}

.division-stack-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
    gap: 2rem;
    align-items: center;
}

.division-stack-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.division-stack-cloud span {
    display: inline-flex;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
    font-weight: 800;
    font-size: 0.86rem;
}

.division-next-card {
    min-height: 104px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.division-next-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--color-secondary) 38%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.division-next-card > i:first-child {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    background: rgba(0, 240, 255, 0.08);
}

.division-next-card strong,
.division-next-card small {
    display: block;
}

.division-next-card strong {
    color: var(--text-main);
    font-family: var(--font-heading);
}

.division-next-card small {
    color: var(--text-muted);
    margin-top: 0.2rem;
}

html[data-media-theme="light"] .division-detail-hero::before {
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--division-a) 18%, transparent), transparent 38%),
        radial-gradient(circle at 84% 28%, color-mix(in srgb, var(--division-b) 16%, transparent), transparent 42%),
        radial-gradient(circle at 56% 78%, color-mix(in srgb, var(--division-c) 14%, transparent), transparent 45%),
        linear-gradient(135deg, rgba(248, 251, 255, 0.82), rgba(239, 246, 255, 0.74));
}

html[data-media-theme="light"] .division-hero-video-container {
    opacity: 0.2;
}

html[data-media-theme="light"] .division-hero-video {
    filter: saturate(0.94) contrast(0.94) brightness(1.08);
}

html[data-media-theme="light"] .division-detail-hero::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

html[data-media-theme="light"] .division-kicker,
html[data-media-theme="light"] .division-module-card,
html[data-media-theme="light"] .division-process-panel,
html[data-media-theme="light"] .division-deliverables-panel,
html[data-media-theme="light"] .division-stack-panel,
html[data-media-theme="light"] .division-next-panel {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.86),
        0 22px 52px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .division-detail-summary,
html[data-media-theme="light"] .division-metric-tile strong,
html[data-media-theme="light"] .division-radar-node,
html[data-media-theme="light"] .division-radar-core {
    color: #0f172a;
}

html[data-media-theme="light"] .division-visual-shell {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.58)),
        radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--division-a) 14%, transparent), transparent 45%);
    box-shadow:
        0 28px 72px rgba(15, 23, 42, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-media-theme="light"] .division-radar-graphic {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), transparent 18%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--division-a) 18%, transparent), transparent 46%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(239, 246, 255, 0.86));
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .division-radar-core {
    color: #ffffff;
}

html[data-media-theme="light"] .division-radar-node,
html[data-media-theme="light"] .division-metric-tile,
html[data-media-theme="light"] .division-process-list li,
html[data-media-theme="light"] .division-stack-cloud span,
html[data-media-theme="light"] .division-next-card {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .division-next-card:hover {
    background: rgba(255, 255, 255, 0.94);
}

html[data-media-theme="light"] .division-scene-copy::before {
    box-shadow: 0 0 18px color-mix(in srgb, var(--division-a) 24%, transparent);
}

html[data-media-theme="light"] .division-scene-card {
    background:
        radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--division-a) 20%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--division-b) 18%, #ffffff), #ffffff 58%, color-mix(in srgb, var(--division-c) 16%, #ffffff));
    border-color: color-mix(in srgb, var(--division-a) 18%, rgba(15, 23, 42, 0.11));
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.68) inset;
}

html[data-media-theme="light"] .division-scene-card img {
    opacity: 0.84;
    filter: saturate(0.92) contrast(1.04) brightness(1);
}

html[data-media-theme="light"] .division-scene-card::before {
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.18) 58%, rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, color-mix(in srgb, var(--division-a) 34%, transparent), transparent 38%),
        linear-gradient(315deg, color-mix(in srgb, var(--division-c) 30%, transparent), transparent 42%);
}

html[data-media-theme="light"] .division-scene-card::after {
    opacity: 0.42;
}

@media (max-width: 991.98px) {
    .division-detail-hero {
        padding-top: 9.5rem;
    }

    .division-visual-shell {
        min-height: 500px;
    }

    .division-stack-panel {
        grid-template-columns: 1fr;
    }

    .division-stack-cloud {
        justify-content: flex-start;
    }

    .division-scene-panel {
        grid-template-columns: 1fr;
    }

    .division-scene-grid {
        min-height: 440px;
    }
}

@media (max-width: 575.98px) {
    .division-detail-hero {
        padding-top: 8.5rem;
    }

    .division-detail-title {
        font-size: clamp(2.35rem, 13vw, 4rem);
    }

    .division-detail-summary {
        font-size: 1.05rem;
    }

    .division-visual-shell,
    .division-process-panel,
    .division-deliverables-panel,
    .division-stack-panel,
    .division-next-panel {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .division-radar-graphic {
        min-height: 310px;
    }

    .division-radar-ring-three {
        width: 260px;
        height: 260px;
    }

    .division-radar-node {
        font-size: 0.64rem;
        padding: 0.42rem 0.58rem;
    }

    .division-metric-grid {
        grid-template-columns: 1fr;
    }

    .division-process-list li {
        grid-template-columns: 1fr;
    }

    .division-scene-copy {
        padding-left: 1.1rem;
    }

    .division-scene-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }

    .division-scene-card,
    .division-scene-card-featured {
        grid-row: auto;
        min-height: 260px;
        border-radius: 22px;
    }
}

/* Media Blog */
.media-studio-link,.media-login-link,.media-account-btn { display:inline-flex; gap:.45rem; align-items:center; padding:.48rem .7rem; border:1px solid var(--border-glass); border-radius:999px; color:var(--text-main); background:var(--bg-glass); font-size:.82rem; font-weight:800; text-decoration:none; white-space:nowrap; }
.media-studio-link { color:var(--color-secondary); }
.media-account-btn img { border-radius:50%; object-fit:cover; }
.media-account-menu { overflow:hidden; border:1px solid var(--border-glass); border-radius:1rem; color:var(--text-main); background:color-mix(in srgb,var(--bg-dark) 94%,transparent); box-shadow:0 22px 55px rgba(0,0,0,.32); }
.media-account-menu .dropdown-item { display:flex; gap:.55rem; align-items:center; color:var(--text-main); }
.media-account-menu .dropdown-item:hover { color:var(--color-secondary); background:var(--bg-glass); }
.media-blog-hero { position:relative; overflow:hidden; padding:clamp(10rem,15vw,14rem) 0 clamp(5rem,9vw,8rem); border-bottom:1px solid var(--border-glass); }
.media-blog-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 20% 30%,rgba(138,43,226,.3),transparent 28rem),radial-gradient(circle at 82% 70%,rgba(0,240,255,.18),transparent 25rem); pointer-events:none; }
.media-blog-hero .container { position:relative; }
.media-eyebrow { display:inline-flex; gap:.45rem; align-items:center; color:var(--color-secondary); font-size:.75rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.media-blog-hero h1 { max-width:930px; margin:.8rem 0 1.3rem; font-size:clamp(3rem,6vw,6.7rem); line-height:.98; }
.media-blog-hero p { max-width:700px; margin:0; color:var(--text-muted); font-size:clamp(1.08rem,1.6vw,1.35rem); }
.media-blog-search { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.6rem; align-items:center; padding:.55rem; border:1px solid var(--border-glass); border-radius:1.1rem; background:var(--bg-card); box-shadow:0 26px 70px rgba(0,0,0,.25); backdrop-filter:blur(18px); }
.media-blog-search>i { margin-left:.5rem; color:var(--color-secondary); }
.media-blog-search input { min-width:0; padding:.75rem .25rem; border:0; outline:0; color:var(--text-main); background:transparent; }
.media-blog-search button { padding:.72rem .9rem; border:0; border-radius:.75rem; color:#061018; background:linear-gradient(135deg,var(--color-secondary),#67e8f9); font-weight:900; }
.media-blog-section,.media-related { padding:clamp(4rem,8vw,8rem) 0; }
.media-blog-filters { display:flex; gap:.6rem; overflow-x:auto; margin-bottom:2rem; padding-bottom:.4rem; scrollbar-width:none; }
.media-blog-filters a { display:inline-flex; gap:.45rem; align-items:center; flex:0 0 auto; padding:.58rem .85rem; border:1px solid var(--border-glass); border-radius:999px; color:var(--text-muted); background:var(--bg-glass); font-weight:800; text-decoration:none; }
.media-blog-filters a span { padding:.12rem .35rem; border-radius:999px; background:var(--bg-glass); font-size:.68rem; }
.media-blog-filters a.active,.media-blog-filters a:hover { color:#071016; border-color:transparent; background:var(--color-secondary); box-shadow:var(--glow-secondary); }
.media-blog-featured { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(21rem,.8fr); overflow:hidden; margin-bottom:clamp(4rem,8vw,7rem); border:1px solid var(--border-glass); border-radius:2rem; background:var(--bg-card); box-shadow:0 35px 85px rgba(0,0,0,.28); }
.media-blog-featured-image { position:relative; min-height:500px; overflow:hidden; }
.media-blog-featured-image img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.media-blog-featured:hover img { transform:scale(1.035); }
.media-blog-featured-image>span { position:absolute; top:1.2rem; left:1.2rem; padding:.45rem .7rem; border-radius:999px; color:#071016; background:var(--color-secondary); font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.media-blog-featured-copy { display:flex; flex-direction:column; justify-content:center; padding:clamp(2rem,4vw,4rem); }
.media-blog-featured-copy h2 { margin:.65rem 0 1rem; font-size:clamp(2rem,3.3vw,3.8rem); }
.media-blog-featured-copy h2 a,.media-blog-card h3 a { color:var(--text-main); text-decoration:none; }
.media-blog-featured-copy p,.media-blog-card p { color:var(--text-muted); }
.media-blog-author { display:flex; gap:.7rem; align-items:center; margin-top:1rem; }
.media-blog-author img { width:42px; height:42px; border-radius:50%; object-fit:cover; background:var(--bg-glass); }
.media-blog-author span { display:grid; }
.media-blog-author b { color:var(--text-main); font-size:.88rem; }
.media-blog-author small { color:var(--text-muted); }
.media-blog-read { display:inline-flex; gap:.45rem; align-items:center; align-self:flex-start; margin-top:1.5rem; color:var(--color-secondary); font-weight:900; text-decoration:none; }
.media-blog-heading { display:flex; gap:1.5rem; align-items:end; justify-content:space-between; margin-bottom:1.5rem; }
.media-blog-heading h2 { margin:.4rem 0 0; font-size:clamp(2rem,3.5vw,3.5rem); }
.media-blog-heading>span { color:var(--text-muted); }
.media-blog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.35rem; }
.media-blog-card { overflow:hidden; border:1px solid var(--border-glass); border-radius:1.35rem; background:var(--bg-card); box-shadow:0 20px 55px rgba(0,0,0,.2); transition:transform .25s ease,border-color .25s ease; }
.media-blog-card:hover { transform:translateY(-6px); border-color:color-mix(in srgb,var(--color-secondary) 50%,transparent); }
.media-blog-card-image { position:relative; display:block; overflow:hidden; aspect-ratio:16/10; }
.media-blog-card-image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.media-blog-card:hover img { transform:scale(1.05); }
.media-blog-card-image>span { position:absolute; right:.7rem; bottom:.7rem; padding:.3rem .5rem; border:1px solid rgba(255,255,255,.1); border-radius:999px; color:#fff; background:rgba(6,8,14,.78); font-size:.7rem; backdrop-filter:blur(8px); }
.media-blog-card-body { display:flex; flex-direction:column; min-height:270px; padding:1.25rem; }
.media-blog-taxonomy { display:flex; flex-wrap:wrap; gap:.5rem; }
.media-blog-taxonomy a { color:var(--color-secondary); font-size:.68rem; font-weight:900; letter-spacing:.09em; text-decoration:none; text-transform:uppercase; }
.media-blog-card h3 { margin:.65rem 0; font-size:1.3rem; line-height:1.25; }
.media-blog-card p { display:-webkit-box; overflow:hidden; margin:0; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.media-blog-card .media-blog-author { margin-top:auto; padding-top:1rem; }
.media-blog-pagination { margin-top:3rem; }
.media-blog-pagination .page-link { color:var(--text-main); border-color:var(--border-glass); background:var(--bg-card); }
.media-blog-pagination .active>.page-link { color:#061018; background:var(--color-secondary); }
.media-blog-empty { grid-column:1/-1; padding:4rem; border:1px dashed var(--border-glass); border-radius:1.4rem; text-align:center; }
.media-blog-empty>i { color:var(--color-secondary); font-size:3rem; }
.media-blog-empty a { color:var(--color-secondary); font-weight:900; }
.media-blog-newsletter { display:grid; grid-template-columns:minmax(0,1fr) minmax(20rem,.7fr); gap:2rem; align-items:center; overflow:hidden; margin-top:6rem; padding:clamp(2rem,5vw,4.5rem); border:1px solid var(--border-glass); border-radius:2rem; background:radial-gradient(circle at 90% 0,rgba(0,240,255,.22),transparent 20rem),radial-gradient(circle at 10% 100%,rgba(138,43,226,.35),transparent 22rem),var(--bg-card); }
.media-blog-newsletter h2 { margin:.5rem 0; font-size:clamp(2rem,3.3vw,3.5rem); }
.media-blog-newsletter p { color:var(--text-muted); }
.media-blog-newsletter form { display:grid; grid-template-columns:1fr auto; gap:.6rem; }
.media-blog-newsletter input { min-width:0; padding:.85rem; border:1px solid var(--border-glass); border-radius:.8rem; color:var(--text-main); background:var(--bg-glass); }
.media-blog-newsletter button { padding:.8rem 1rem; border:0; border-radius:.8rem; color:#061018; background:var(--color-secondary); font-weight:900; }
.media-blog-newsletter small { grid-column:1/-1; color:var(--color-secondary); }

/* Media article */
.media-article-header { padding:clamp(10rem,15vw,13rem) 0 4rem; }
.media-reading-width { width:min(100% - 2rem,860px); }
.media-article-back { display:inline-flex; gap:.4rem; align-items:center; margin-bottom:2rem; color:var(--color-secondary); font-weight:900; text-decoration:none; }
.media-article-header h1 { margin:.8rem 0 1rem; font-size:clamp(2.8rem,5.6vw,6rem); line-height:1; }
.media-article-deck { color:var(--text-muted); font-size:clamp(1.15rem,2vw,1.5rem); }
.media-article-byline { display:flex; gap:.75rem; align-items:center; margin-top:1.8rem; }
.media-article-byline>img { width:54px; height:54px; border-radius:50%; object-fit:cover; }
.media-article-byline>span { display:grid; }
.media-article-byline b { color:var(--text-main); }
.media-article-byline small { color:var(--text-muted); }
.media-article-byline form { margin-left:auto; }
.media-bookmark-btn { display:inline-flex; gap:.4rem; align-items:center; padding:.55rem .75rem; border:1px solid var(--border-glass); border-radius:999px; color:var(--text-main); background:var(--bg-glass); font-weight:800; }
.media-bookmark-btn.active { color:#061018; border-color:var(--color-secondary); background:var(--color-secondary); }
.media-article-image { width:min(100% - 2rem,1220px); }
.media-article-image img { width:100%; max-height:720px; border-radius:1.8rem; object-fit:cover; box-shadow:0 35px 90px rgba(0,0,0,.32); }
.media-post-content { padding:clamp(3rem,7vw,6rem) 0 2rem; color:var(--text-main); font-size:1.12rem; line-height:1.9; }
.media-post-content p,.media-post-content li { color:var(--text-muted); }
.media-post-content h2,.media-post-content h3 { margin:2.2em 0 .7em; }
.media-post-content h2 { font-size:clamp(1.8rem,3vw,2.6rem); }
.media-post-content img { display:block; width:auto; max-width:100%; height:auto; margin:2rem auto; border-radius:1rem; }
.media-post-content blockquote { margin:2rem 0; padding:1.3rem 1.5rem; border-left:4px solid var(--color-secondary); border-radius:0 1rem 1rem 0; background:var(--bg-card); font-size:1.25rem; }
.media-post-content pre { overflow:auto; padding:1.2rem; border:1px solid var(--border-glass); border-radius:1rem; background:#02040a; }
.media-post-content table { width:100%; margin:2rem 0; border-collapse:collapse; }
.media-post-content td,.media-post-content th { padding:.7rem; border:1px solid var(--border-glass); }
.media-reaction-panel { display:flex; gap:1.5rem; align-items:center; justify-content:space-between; padding:1.25rem; border:1px solid var(--border-glass); border-radius:1.2rem; background:var(--bg-card); }
.media-reaction-panel>div:first-child span { color:var(--text-main); font-weight:900; }
.media-reaction-panel p { margin:0; color:var(--text-muted); }
.media-reaction-panel>div:last-child { display:flex; flex-wrap:wrap; gap:.45rem; }
.media-reaction-panel form { margin:0; }
.media-reaction-panel button,.media-reaction-panel a { display:inline-flex; gap:.4rem; align-items:center; padding:.6rem .75rem; border:1px solid var(--border-glass); border-radius:999px; color:var(--text-main); background:var(--bg-glass); font-size:.8rem; font-weight:800; text-decoration:none; }
.media-reaction-panel button.active { color:#061018; background:var(--color-secondary); }
.media-share-row { display:flex; gap:.5rem; align-items:center; padding:1.5rem 0 3rem; border-bottom:1px solid var(--border-glass); }
.media-share-row>span { margin-right:auto; color:var(--text-main); font-weight:900; }
.media-share-row a,.media-share-row button { display:grid; place-items:center; width:2.55rem; height:2.55rem; border:1px solid var(--border-glass); border-radius:50%; color:var(--color-secondary); background:var(--bg-glass); }
.media-author-card { display:grid; grid-template-columns:auto 1fr; gap:1.25rem; align-items:center; margin:3rem 0; padding:1.5rem; border:1px solid var(--border-glass); border-radius:1.3rem; background:var(--bg-card); }
.media-author-card>img { width:110px; height:110px; border-radius:1rem; object-fit:cover; }
.media-author-card span { color:var(--color-secondary); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; }
.media-author-card h2 { margin:.2rem 0; }
.media-author-card p { margin:.25rem 0; color:var(--text-muted); }
.media-comments { padding:2rem 0 5rem; }
.media-comment-form { display:grid; grid-template-columns:auto 1fr; gap:1rem; margin-bottom:2rem; padding:1.2rem; border:1px solid var(--border-glass); border-radius:1.2rem; background:var(--bg-card); }
.media-comment-form>img,.media-comment-list>article>img { width:46px; height:46px; border-radius:50%; object-fit:cover; }
.media-comment-form>div { display:grid; gap:.6rem; }
.media-comment-form textarea,.media-comment-list form textarea { width:100%; padding:.8rem; border:1px solid var(--border-glass); border-radius:.8rem; color:var(--text-main); background:var(--bg-glass); }
.media-comment-form button,.media-comment-list form button { justify-self:start; padding:.55rem .75rem; border:0; border-radius:.65rem; color:#061018; background:var(--color-secondary); font-weight:900; }
.media-comment-form small { color:var(--text-muted); }
.media-comment-login { display:flex; gap:.75rem; align-items:center; padding:1rem; border:1px solid var(--border-glass); border-radius:1rem; background:var(--bg-card); }
.media-comment-login i { color:var(--color-secondary); font-size:1.5rem; }
.media-comment-login p { margin:0; }
.media-comment-login a { color:var(--color-secondary); }
.media-comment-list { display:grid; gap:1rem; }
.media-comment-list>article { display:grid; grid-template-columns:auto 1fr; gap:1rem; padding:1.2rem; border:1px solid var(--border-glass); border-radius:1rem; background:var(--bg-card); }
.media-comment-list header { display:flex; gap:.75rem; }
.media-comment-list header b { color:var(--text-main); }
.media-comment-list header span { color:var(--text-muted); font-size:.78rem; }
.media-comment-list p { margin:.4rem 0; color:var(--text-muted); }
.media-comment-list [data-media-reply] { padding:0; border:0; color:var(--color-secondary); background:transparent; font-weight:900; }
.media-comment-list form { display:grid; gap:.5rem; margin-top:.6rem; }
.media-comment-reply { display:grid; grid-template-columns:auto 1fr; gap:.7rem; margin-top:1rem; padding:1rem; border-left:3px solid var(--color-secondary); background:var(--bg-glass); }
.media-comment-reply img { width:34px; height:34px; border-radius:50%; object-fit:cover; }
.media-related { border-top:1px solid var(--border-glass); }

html[data-media-theme="light"] .media-blog-hero h1,html[data-media-theme="light"] .media-blog-heading h2,html[data-media-theme="light"] .media-blog-featured h2,html[data-media-theme="light"] .media-blog-card h3,html[data-media-theme="light"] .media-article h1,html[data-media-theme="light"] .media-article h2,html[data-media-theme="light"] .media-article h3 { color:#111827; }
html[data-media-theme="light"] .text-gradient { background:linear-gradient(135deg,#111827 20%,var(--color-secondary) 70%,var(--color-primary)); -webkit-background-clip:text; }

@media (max-width:1199.98px) { .media-navbar-actions { gap:.5rem!important; } .media-studio-link span,.media-account-btn span { display:none; } }
@media (max-width:991.98px) {
    .media-navbar-actions { flex-wrap:wrap; align-items:stretch!important; padding-top:1rem; }
    .media-studio-link span,.media-account-btn span { display:inline; }
    .media-blog-featured,.media-blog-newsletter { grid-template-columns:1fr; }
    .media-blog-featured-image { min-height:360px; }
    .media-blog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767.98px) { .media-blog-grid { grid-template-columns:1fr; } .media-reaction-panel { align-items:flex-start; flex-direction:column; } }
@media (max-width:575.98px) {
    .media-blog-search { grid-template-columns:auto 1fr; }
    .media-blog-search button { grid-column:1/-1; }
    .media-blog-featured { border-radius:1.25rem; }
    .media-blog-featured-copy { padding:1.4rem; }
    .media-blog-newsletter form { grid-template-columns:1fr; }
    .media-blog-newsletter small { grid-column:1; }
    .media-article-byline { flex-wrap:wrap; }
    .media-article-byline form { width:100%; margin:0; }
    .media-author-card,.media-comment-form { grid-template-columns:1fr; }
}
