/*
Theme Name: Bishal Aryal Portfolio
Theme URI: bishalaryal.com.np
Author: Bishal Aryal
Author URI: bishalaryal.com.np
Description: Personal portfolio theme for Bishal Aryal — Social Media Manager, Graphic Designer & Website Handler.
Version: 7.2
*/

:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-accent: #2d3e50;
    /* Dark Muted Blue/Gray */
    --color-accent-light: #e0e7ff;
    --color-primary: #3b82f6;
    /* Bright Blue for CTA */
    --color-card-bg: #f5f5f5;
    --color-border: #e5e5e5;

    /* Dark Mode (Class-based toggle planned) */
    --color-bg-dark: #121212;
    --color-text-dark: #eeeeee;
    --color-card-bg-dark: #1e1e1e;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Hero Specific Styles */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

/* .hero-image styles removed as image moved to About section */

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222;
    /* Darker for better readability */
    margin-bottom: 1.5rem;
}

.about-text ul li {
    font-size: 1rem;
    color: #333;
}

.about-visual {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

.about-visual img {
    max-width: 280px;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.about-visual img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

/* About Section — two-column editorial layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-media .about-visual {
    padding: 0;
}

.about-media .about-visual img {
    max-width: 240px;
}

.experience-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.8rem 1.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.experience-badge b {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    line-height: 1;
    color: var(--color-accent);
}

.experience-badge span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-light);
}

.about-eyebrow {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    margin: 0 0 1.5rem;
    text-wrap: balance;
}

.about-tags {
    margin: 1.75rem 0;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.about-highlight b {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-primary);
}

.about-highlight strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.about-highlight p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.25rem;
    }
}

@media (max-width: 480px) {
    .about-heading {
        font-size: 2rem;
    }

    .about-media .about-visual img {
        max-width: 200px;
    }

    .experience-badge {
        left: -0.6rem;
        bottom: -0.6rem;
        padding: 0.7rem 1rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent-light);
}

.service-card .icon-lg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Portfolio - Reels */
.reels-grid {
    display: grid;
    /* TikTok and Instagram embeds have a min-width approx 325px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-items: center;
    /* Center the embeds if they are smaller than the col */
}

.reel-video-container {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reel-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the video fills the 9:16 container nicely */
    display: block;
}

/* Portfolio - Campaigns */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.campaign-card h4 {
    margin-bottom: 0.5rem;
}

.tags {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.campaign-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.result-box {
    background: #f0fdf4;
    /* Light green bg */
    border-left: 3px solid #16a34a;
    /* Green border */
    padding: 0.75rem;
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.skills-list li {
    margin-bottom: 1.5rem;
}

.skills-list span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--color-accent);
    border-radius: 4px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tool-item {
    background: white;
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.edu-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 12px;
}

.edu-icon {
    min-width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.edu-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.institution {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edu-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-info h5 {
    margin: 0;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Ensure contact section styles don't conflict */
#contact {
    background-color: var(--color-accent);
    color: white;
}

/* ==========================================
   Contact Form States
   ========================================== */
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ==========================================
   Experience Page
   ========================================== */
.xp-hero {
    background: var(--color-card-bg);
    text-align: center;
}

.xp-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 1.25rem;
}

.xp-tagline {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
    max-width: 760px;
    margin: 0 auto 1.25rem;
}

.xp-intro {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--color-text-light);
    max-width: 820px;
    margin: 0 auto;
}

/* Career Overview — one panel, four facts */
.xp-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.xp-ov {
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-left: 1px solid var(--color-border);
}

.xp-ov:first-child {
    border-left: 0;
}

.xp-ov strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.xp-ov span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* Professional Journey — vertical timeline */
.xp-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.xp-entry {
    display: flex;
    gap: 2rem;
}

.xp-entry + .xp-entry {
    margin-top: var(--spacing-xl);
}

.xp-rail {
    position: relative;
    flex: 0 0 24px;
}

.xp-rail::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 26px;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: var(--color-border);
}

.xp-entry:last-child .xp-rail::before {
    display: none;
}

.xp-dot {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 0 5px rgba(45, 62, 80, 0.1);
}

.xp-body {
    flex: 1;
    min-width: 0;
}

.xp-period {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.xp-body h3 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-accent);
    margin: 0 0 0.35rem;
}

.xp-org {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.xp-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0 0 1.25rem;
}

.xp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Current role — category cards */
.xp-role-meta {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.xp-role-meta strong {
    color: var(--color-accent);
}

.xp-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.xp-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.xp-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--color-accent);
    margin: 0 0 0.75rem;
}

.xp-card h3 i {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.xp-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-light);
    margin: 0;
}

.xp-cards--compact .xp-card {
    padding: 1.25rem;
}

.xp-cards--compact .xp-card h3 {
    font-size: 1rem;
}

/* Core expertise — grouped chips */
.xp-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.xp-group h3,
.xp-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
}

.xp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Market experience */
.xp-market-copy {
    max-width: 760px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-light);
}

.xp-markets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.xp-market {
    border-top: 3px solid var(--color-accent);
    padding-top: 1.5rem;
}

.xp-market h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.xp-market p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-light);
    margin: 0;
}

/* Approach — four steps */
.xp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.xp-step {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.xp-step-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.xp-step h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.xp-step p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-light);
    margin: 0;
}

/* Education + languages */
.xp-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 760px;
    margin: 0 auto;
}

.xp-edu-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.xp-edu-note {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

/* Final CTA — dark closing band, mirrors #contact */
.xp-cta {
    background: var(--color-accent);
    text-align: center;
    color: #fff;
}

.xp-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 1rem;
}

.xp-cta p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.xp-cta .btn {
    background: #fff;
    color: var(--color-accent);
}

.xp-cta .btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Experience page responsive */
@media (max-width: 900px) {
    .xp-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .xp-overview .xp-ov {
        border-left: 0;
        border-top: 1px solid var(--color-border);
    }

    .xp-overview .xp-ov:nth-child(-n+2) {
        border-top: 0;
    }

    .xp-overview .xp-ov:nth-child(odd) {
        border-right: 1px solid var(--color-border);
    }

    .xp-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .xp-markets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .xp-entry {
        gap: 1.25rem;
    }

    .xp-body h3 {
        font-size: 1.35rem;
    }

    .xp-overview {
        grid-template-columns: 1fr;
    }

    .xp-overview .xp-ov:nth-child(odd) {
        border-right: 0;
    }

    .xp-overview .xp-ov {
        border-top: 1px solid var(--color-border);
    }

    .xp-overview .xp-ov:first-child {
        border-top: 0;
    }

    .xp-cards,
    .xp-groups,
    .xp-steps,
    .xp-info {
        grid-template-columns: 1fr;
    }

    .xp-hero h1 {
        font-size: 2.25rem;
    }
}

/* ==========================================
   Homepage (redesigned minimal sections)
   ========================================== */

/* Shared section support line */
.home-support {
    max-width: 640px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Hero — two-column editorial */
.home-hero {
    background: #fff;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 5.5rem 0 4.5rem;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.home-eyebrow {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.home-byline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
}

.home-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.9rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    margin: 0 0 1.5rem;
    text-wrap: balance;
}

.home-hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 34em;
    margin: 0 0 2rem;
}

.home-hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-hero-link {
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 2px;
    text-decoration: none;
}

.home-hero-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 2.5rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--color-border);
}

.home-hero-meta li {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.home-hero-visual {
    display: flex;
    justify-content: center;
}

.home-hero-visual img {
    max-width: 420px;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid #fff;
    box-shadow:
        15px 15px 0 -5px var(--color-accent),
        15px 15px 0 0px var(--color-primary),
        20px 25px 40px rgba(0, 0, 0, 0.12);
    transform: rotate(-2deg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.home-hero-visual img:hover {
    transform: rotate(0deg) scale(1.01);
}

/* Subtle entrance animation — disabled under prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .profile-screen > .profile-cover,
    .profile-head > *,
    .profile-cols {
        opacity: 0;
        animation: hero-reveal 0.7s ease forwards;
    }

    .profile-screen > .profile-cover { animation-delay: 0.05s; }
    .profile-head > *:nth-child(1) { animation-delay: 0.12s; }
    .profile-head > *:nth-child(2) { animation-delay: 0.19s; }
    .profile-cols { animation-delay: 0.28s; }

    @keyframes hero-reveal {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Selected work */
.category-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.reel-item {
    width: 100%;
}

.reel-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--color-text-light);
    margin: 0.75rem 0 0;
}

.project-list {
    display: grid;
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
}

.project-row:last-child {
    border-bottom: 1px solid var(--color-border);
}

.project-row-tag {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.project-row h3 {
    font-size: 1.35rem;
    color: var(--color-accent);
    margin: 0.5rem 0;
}

.project-row p {
    color: var(--color-text-light);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.project-row-link {
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
}

.project-row-link:hover {
    color: var(--color-primary);
}

/* Services — numbered editorial rows */
.service-rows {
    max-width: 860px;
    margin: 0 auto;
}

.service-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.75rem 0;
    border-top: 1px solid var(--color-border);
}

.service-row:last-child {
    border-bottom: 1px solid var(--color-border);
}

.service-row-num {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.service-row h3 {
    font-size: 1.25rem;
    color: var(--color-accent);
    margin: 0;
}

/* How I Work — four steps */
.proc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.proc-step {
    border-top: 3px solid var(--color-accent);
    padding-top: 1.25rem;
}

.proc-step-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.proc-step h3 {
    font-size: 1.15rem;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.proc-step p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

/* Experience snapshot */
.exp-snap {
    max-width: 820px;
    margin: 0 auto;
}

.exp-snap-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.exp-snap-stat b {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    line-height: 1;
    color: var(--color-accent);
}

.exp-snap-stat span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.exp-snap-rows {
    display: grid;
    gap: 1.25rem;
}

.exp-snap-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.25rem 0;
    border-top: 1px solid var(--color-border);
}

.exp-snap-row:last-child {
    border-bottom: 1px solid var(--color-border);
}

.exp-snap-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.exp-snap-row h3 {
    font-size: 1.15rem;
    color: var(--color-accent);
    margin: 0 0 0.25rem;
}

.exp-snap-row p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

.exp-snap-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.exp-snap-link:hover {
    color: var(--color-primary);
}

/* Final CTA / contact */
#contact .section-title {
    color: #fff;
}

#contact .section-title::after {
    background: #fff;
}

.final-cta-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 2.25rem;
}

.cta-actions {
    text-align: center;
    margin-bottom: 2.5rem;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #1eb958;
    color: #fff;
    transform: translateY(-2px);
}

.contact-list--inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.contact-list--inline li {
    gap: 0.6rem;
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-list--inline i {
    color: #fff;
}

.contact-list--inline a {
    color: #fff;
}

.contact-list--inline a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Homepage responsive */
@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        text-align: center;
    }

    .home-hero-cta,
    .home-hero-meta {
        justify-content: center;
    }

    .home-hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .proc-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-hero h1 {
        font-size: clamp(2.25rem, 9vw, 3rem);
    }

    .proc-steps {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: 2.75rem 1fr;
        gap: 1rem;
    }

    .exp-snap-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .project-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-list--inline {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================================
   HOME PAGE — FIXED SINGLE-SCREEN LANDING
   Scoped to body.screen-home (front page only) via the
   bishalaryal_screen_home_class filter in functions.php.
   Other pages are not affected.
   ============================================================ */

/* Lock the page to the viewport — no scrolling, no horizontal overflow. */
body.screen-home {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Hero fills exactly one screen. dvh keeps mobile URL-bar behavior correct. */
body.screen-home .home-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 5rem 0 3.5rem;
    overflow: hidden;
}

/* Hero content sits above the decorative background layer. */
body.screen-home .home-hero .container {
    position: relative;
    z-index: 2;
}

/* Short desktop viewports (laptops: 1366×768, smaller heights) */
@media (max-height: 760px) and (min-width: 901px) {
    body.screen-home .home-hero {
        padding: 4.5rem 0 2.5rem;
    }

    .home-hero-grid {
        gap: 2.5rem;
        max-width: 1020px;
    }

    .home-hero h1 {
        font-size: clamp(2.5rem, 4.5vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .home-hero-lead {
        margin-bottom: 1.5rem;
    }

    .home-hero-meta {
        margin-top: 1.75rem;
    }

    .home-hero-visual img {
        max-width: 340px;
    }
}

/* Very short viewports — drop the secondary meta line, preserve headline + CTA */
@media (max-height: 620px) {
    body.screen-home .home-hero {
        padding: 4rem 0 2rem;
    }

    .home-hero-meta {
        display: none;
    }

    .home-hero h1 {
        font-size: clamp(2.25rem, 5vw, 3rem);
    }
}

/* MOBILE — fixed screen, rearranged composition:
   identity → headline → text → CTA → portrait (portrait stays last). */
@media (max-width: 900px) {
    body.screen-home .home-hero {
        padding: 4.5rem 0 2.5rem;
        overflow: hidden;
    }

    .home-hero-grid {
        gap: 1.5rem;
    }

    .home-byline {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .home-eyebrow {
        margin-bottom: 0.9rem;
    }

    .home-hero h1 {
        margin-bottom: 0.9rem;
    }

    .home-hero-lead {
        font-size: 1.05rem;
        margin-bottom: 1.4rem;
    }

    .home-hero-meta {
        margin-top: 1.5rem;
    }

    .home-hero-visual img {
        max-width: 220px;
    }
}

/* Short mobile viewports — prioritize headline + CTA over the portrait/meta */
@media (max-width: 900px) and (max-height: 620px) {
    body.screen-home .home-hero {
        padding: 4rem 0 1.5rem;
    }

    .home-hero-grid {
        gap: 1rem;
    }

    .home-hero-meta {
        display: none;
    }

    .home-hero-visual img {
        max-width: 150px;
    }

    .home-hero-lead {
        margin-bottom: 1rem;
    }
}

/* ============================================================
   HOME PAGE — LAYERED FULL-SCREEN BACKGROUND COMPOSITION
   A distributed digital/editorial canvas behind the hero and the
   glass navbar. Pure CSS (gradients, borders, one tiny SVG) plus
   a single subtle cursor-parallax var-driven transform. Nothing
   here is interactive and everything is aria-hidden.
   Layering: atmosphere (0) → large objects → details → hero
   content (z2) → glass navbar (z-index: 100, inline in header).
   ============================================================ */

.hero-bg {
    position: absolute;
    inset: -48px; /* overscan so the parallax never reveals the edges */
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translate3d(calc(var(--pX, 0) * 16px), calc(var(--pY, 0) * 12px), 0);
}

/* LEVEL 1 — atmosphere */

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 62, 80, 0.18) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%);
    opacity: 0.45;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Soft blurred blurred gradient, top-left corner — beside the navbar, not under it */
.hero-orb--main {
    width: 460px;
    height: 460px;
    top: -170px;
    left: -150px;
    background: radial-gradient(circle at 68% 68%, rgba(59, 130, 246, 0.26), rgba(59, 130, 246, 0.05) 56%, transparent 72%);
    filter: blur(64px);
    animation: hero-drift 20s ease-in-out infinite alternate;
}

/* Gentle glow behind the portrait */
.hero-orb--portrait {
    width: 520px;
    height: 520px;
    right: 7%;
    top: 36%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), rgba(45, 62, 80, 0.04) 55%, transparent 70%);
    filter: blur(44px);
}

/* Moving dark-blue gradient + small objects behind the glass navbar */
.hero-orb--nav {
    width: 400px;
    height: 220px;
    top: -110px;
    left: 50%;
    margin-left: -200px;
    background: radial-gradient(ellipse at 50% 50%, rgba(45, 62, 80, 0.30), rgba(45, 62, 80, 0.12) 55%, transparent 72%);
    filter: blur(50px);
    animation: hero-drift 14s ease-in-out infinite alternate, hero-pulse 9s ease-in-out infinite alternate;
}

.hero-navdot {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 96px;
    left: 62%;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
    opacity: 0.55;
    animation: hero-sway 16s ease-in-out infinite alternate;
}

.hero-navring {
    position: absolute;
    width: 56px;
    height: 56px;
    top: 72px;
    right: 24%;
    border: 1px solid rgba(45, 62, 80, 0.28);
    border-radius: 50%;
    animation: hero-spin 30s linear infinite;
}

.hero-navring::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.5;
}

/* LEVEL 2 — large compositional objects */

/* Oversized ring, mostly cropped by the bottom-left viewport edge */
.hero-arc {
    position: absolute;
    width: 700px;
    height: 700px;
    bottom: -440px;
    left: -260px;
    border: 1px solid rgba(45, 62, 80, 0.14);
    border-radius: 50%;
}

.hero-arc::before {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(45, 62, 80, 0.07);
    border-radius: 50%;
}

/* Thin orbit ring behind the portrait */
.hero-orbit {
    position: absolute;
    width: 440px;
    height: 440px;
    right: 9%;
    top: 22%;
    border: 1px solid rgba(45, 62, 80, 0.16);
    border-radius: 50%;
    animation: hero-spin 48s linear infinite;
}

.hero-orbit::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.35;
}

.hero-orbit::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(45, 62, 80, 0.09);
    border-radius: 50%;
}

/* Glass sphere in the gap between the text column and the portrait */
.hero-sphere {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 40%;
    right: 33%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25) 48%, rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 45px -20px rgba(45, 62, 80, 0.28), inset 0 0 26px rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: hero-drift 14s ease-in-out infinite alternate;
}

/* LEVEL 3 — small details */

/* Floating translucent glass panel, left of the content */
.hero-panel {
    position: absolute;
    left: 7%;
    bottom: 14%;
    width: 160px;
    height: 104px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.25));
    border: 1px solid rgba(45, 62, 80, 0.10);
    box-shadow: 0 24px 48px -28px rgba(45, 62, 80, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Abstract data visualization line, bottom-left */
.hero-line {
    position: absolute;
    left: 11%;
    bottom: 21%;
    width: 180px;
    height: 60px;
    opacity: 0.45;
}

.hero-line svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Tiny frosted data card, bottom-right */
.hero-card--chart {
    position: absolute;
    right: 5%;
    bottom: 12%;
    width: 148px;
    height: 62px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(45, 62, 80, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 45px -24px rgba(45, 62, 80, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-card--chart span {
    flex: 1;
    display: block;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, var(--color-primary), rgba(59, 130, 246, 0.3));
    opacity: 0.4;
}

.hero-card--chart span:nth-child(1) { height: 16px; }
.hero-card--chart span:nth-child(2) { height: 30px; }
.hero-card--chart span:nth-child(3) { height: 21px; }
.hero-card--chart span:nth-child(4) { height: 38px; }
.hero-card--chart span:nth-child(5) { height: 27px; }

/* Oversized, heavily cropped background typography (decorative only) */
.hero-type {
    position: absolute;
    right: -0.02em;
    bottom: -0.30em;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(8rem, 22vw, 22rem);
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.04;
    user-select: none;
}

/* Motion — only a few elements move; most stay calm for hierarchy */
@media (prefers-reduced-motion: no-preference) {
    @keyframes hero-drift {
        from { transform: translateY(-10px); }
        to { transform: translateY(12px); }
    }

    @keyframes hero-spin {
        to { transform: rotate(360deg); }
    }

    @keyframes hero-sway {
        from { transform: translateX(-70px); }
        to { transform: translateX(70px); }
    }

    @keyframes hero-pulse {
        from { opacity: 0.55; }
        to { opacity: 0.95; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb--main,
    .hero-orbit,
    .hero-sphere,
    .hero-orb--nav,
    .hero-navdot,
    .hero-navring {
        animation: none;
    }
}

/* Tablet — reduce to ~6 layers */
@media (max-width: 1200px) {
    .hero-panel,
    .hero-line,
    .hero-card--chart,
    .hero-sphere,
    .hero-navring {
        display: none;
    }

    .hero-orb--main {
        width: 380px;
        height: 380px;
    }

    .hero-orbit {
        opacity: 0.7;
    }
}

/* Mobile — keep only 4 essential layers */
@media (max-width: 900px) {
    .hero-arc,
    .hero-sphere,
    .hero-panel,
    .hero-line,
    .hero-card--chart,
    .hero-orb--portrait,
    .hero-navdot,
    .hero-navring {
        display: none;
    }

    .hero-orb--main {
        width: 300px;
        height: 300px;
        top: -110px;
        left: -130px;
    }

    .hero-orb--nav {
        width: 280px;
        height: 150px;
        top: -70px;
        margin-left: -140px;
    }

    .hero-orbit {
        width: 240px;
        height: 240px;
        right: -40px;
        top: 42%;
        opacity: 0.6;
    }

    .hero-type {
        font-size: 11rem;
        opacity: 0.03;
    }
}

/* ============================================================
   CONTACT PAGE — premium editorial contact
   Calm, minimal, form-first. Reuses global tokens, buttons,
   form-group styling, and the about-eyebrow pill. Contact
   details are editable via Customizer → Contact Page.
   ============================================================ */

.contact-page {
    position: relative;
    padding: 7.5rem 0 5rem;
    overflow: hidden;
}

.contact-page > .container {
    position: relative;
    z-index: 2;
}

/* Atmospheric background — soft, sparse, calmer than the homepage */
.contact-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.contact-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 62, 80, 0.14) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 64%);
    mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 64%);
    opacity: 0.45;
}

.contact-orb {
    position: absolute;
    width: 540px;
    height: 540px;
    top: -190px;
    right: -150px;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.04) 55%, transparent 72%);
    filter: blur(60px);
}

.contact-orb--alt {
    top: auto;
    bottom: -230px;
    left: -170px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(45, 62, 80, 0.10), rgba(45, 62, 80, 0.03) 55%, transparent 70%);
}

/* Hero */
.contact-hero {
    max-width: 780px;
    margin: 0 auto 4rem;
    text-align: center;
}

.contact-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    margin: 0 0 1.25rem;
    text-wrap: balance;
}

.contact-support {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--color-text-light);
    max-width: 620px;
    margin: 0 auto;
}

/* Two-column layout: info | form */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 3rem 4.5rem;
    align-items: start;
}

.contact-aside {
    display: flex;
}

/* Selective glass surfaces — the two cards, nothing else */
.c-card {
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    box-shadow: 0 18px 50px -28px rgba(45, 62, 80, 0.28);
    padding: 2rem;
    width: 100%;
}

.c-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 1.25rem;
}

/* Person + refined editorial info list */
.c-person-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
    margin: 0 0 0.15rem;
}

.c-person-role {
    font-size: 0.98rem;
    color: var(--color-text-light);
    margin: 0;
}

.c-person-loc {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin: 0.4rem 0 0;
}

.c-person-loc i {
    width: 15px;
    height: 15px;
    color: var(--color-primary);
}

.c-list {
    border-top: 1px solid var(--color-border);
    margin: 1.4rem 0 0;
    padding-top: 0.4rem;
}

.c-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.c-label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.c-value {
    font-weight: 600;
    color: var(--color-accent);
    text-align: right;
    overflow-wrap: anywhere;
}

a.c-value:hover {
    color: var(--color-primary);
}

.c-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
}

.c-social .c-label {
    margin: 0;
}

.c-social-links {
    display: flex;
    gap: 1.25rem;
}

.c-social-links a {
    font-weight: 700;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 1px;
}

.c-social-links a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Availability — a dot plus words, never color alone */
.c-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0.95rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.c-availability::before {
    content: '●';
    color: #16a34a;
    font-size: 0.7rem;
}

/* Form */
.c-card--form {
    padding: 2.5rem;
}

.contact-form-new .form-group input,
.contact-form-new .form-group select,
.contact-form-new .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: #fff;
    transition: var(--transition-fast);
}

.contact-form-new .form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.contact-form-new .form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form-new .form-group input:focus,
.contact-form-new .form-group select:focus,
.contact-form-new .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.contact-form-new .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
}

.contact-form-new .req {
    color: var(--color-primary);
}

.contact-form-new .optional {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Inline field errors — text-prefixed, not color alone */
.form-error {
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b91c1c;
    margin-top: 0.35rem;
}

.form-error::before {
    content: '! ';
    font-weight: 800;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc2626;
}

.form-group.has-error .form-error {
    display: block;
}

/* Submit row + status */
.c-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.c-submit {
    padding: 14px 30px;
    font-size: 1rem;
}

.c-status {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.contact-form-new.is-loading .c-submit {
    opacity: 0.7;
    pointer-events: none;
}

/* General error alert (network / mail failure / no-JS fallback) */
.c-form-alert {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.c-form-alert.visible {
    display: block;
}

/* Success state */
.c-success {
    display: none;
    text-align: center;
    padding: 3.25rem 1rem;
}

.c-success.visible {
    display: block;
}

.c-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-success-icon i {
    width: 26px;
    height: 26px;
}

.c-success h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.c-success-note {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 44ch;
    margin: 0 auto;
}

/* Closing line */
.contact-close {
    text-align: center;
    margin-top: 4rem;
    font-size: 1.08rem;
    color: var(--color-text-light);
}

.contact-close strong {
    font-weight: 700;
    color: var(--color-accent);
}

/* Visual hidden helper */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot — completely hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Motion — only the orbs drift, everything else stays calm */
@media (prefers-reduced-motion: no-preference) {
    .contact-orb,
    .contact-orb--alt {
        animation: hero-drift 18s ease-in-out infinite alternate;
    }

    .contact-orb--alt {
        animation-duration: 26s;
        animation-delay: -8s;
    }

    .contact-hero > * {
        opacity: 0;
        animation: hero-reveal 0.7s ease forwards;
    }

    .contact-hero > *:nth-child(1) { animation-delay: 0.05s; }
    .contact-hero > *:nth-child(2) { animation-delay: 0.12s; }
    .contact-hero > *:nth-child(3) { animation-delay: 0.19s; }

    .contact-aside,
    .contact-form-wrap {
        opacity: 0;
        animation: hero-reveal 0.7s ease forwards;
        animation-delay: 0.24s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-orb,
    .contact-orb--alt {
        animation: none;
    }
}

/* Two columns → stacked (information first, then form) */
@media (max-width: 980px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .contact-page {
        padding: 6.5rem 0 3.5rem;
    }

    .contact-hero {
        margin-bottom: 3rem;
    }

    .c-card,
    .c-card--form {
        padding: 1.5rem;
    }

    .c-list li {
        flex-direction: column;
        gap: 0.2rem;
        align-items: flex-start;
    }

    .c-value {
        text-align: left;
    }

    .c-social {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .c-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .c-submit {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   HOME — ONE-SCREEN PROFESSIONAL PROFILE
   Premium profile composition inside the locked 100dvh hero:
   abstract cover band → avatar + identity (name, role, location,
   statement, summary, CTAs, meta) → Featured / Experience /
   Expertise. LinkedIn-inspired information structure, original
   visual language. Glass navbar stays untouched above.
   ============================================================ */

/* Frame: content flows from the top of the fixed screen. */
body.screen-home .home-hero {
    display: block;
    padding: 0;
}

body.screen-home .home-hero .profile-screen {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Cover band — the "cover art" strip behind the floating glass navbar.
   Soft brand-tinted gradients over the ambient hero-bg. */
.profile-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 100% at 78% 0%, rgba(59, 130, 246, 0.16), transparent 58%),
        radial-gradient(140% 120% at 12% 0%, rgba(45, 62, 80, 0.10), transparent 62%);
    border-bottom: 1px solid rgba(45, 62, 80, 0.08);
}

.profile-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 17vh 4.5rem 0;
}

/* Portrait straddles the cover seam — the only glass-accented card. */
.profile-avatar {
    flex: 0 0 auto;
    width: 190px;
}

.profile-avatar img {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 24px 48px -18px rgba(45, 62, 80, 0.38);
}

.profile-id {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-id .home-eyebrow {
    margin-bottom: 0.9rem;
}

.profile-id h1 {
    font-size: clamp(2.5rem, 4.6vw, 3.75rem);
    line-height: 1.04;
    margin: 0 0 0.4rem;
}

.profile-loc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.98rem;
    color: var(--color-text-light);
    margin: 0 0 0.55rem;
}

.profile-loc i {
    color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.profile-statement {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    line-height: 1.24;
    color: var(--color-accent);
    margin: 0 0 0.45rem;
}

.profile-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 48ch;
    margin: 0 0 1.1rem;
}

.profile-more {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 1px;
    margin-left: 0.4rem;
    white-space: nowrap;
}

.profile-more:hover {
    color: var(--color-accent);
    border-color: var(--color-primary);
}

.profile-id .home-hero-meta {
    margin-top: 1.5rem;
    padding-top: 0.9rem;
    max-width: 560px;
}

/* Bottom band — Featured / Experience / Expertise */
.profile-cols {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 2.5rem;
    padding: 2rem 4.5rem 2.75rem;
    border-top: 1px solid var(--color-border);
    align-items: stretch;
}

.profile-col {
    min-width: 0;
}

.profile-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 1.1rem;
}

.profile-col-link {
    display: inline-block;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: 0.9rem;
}

.profile-col-link:hover {
    color: var(--color-primary);
}

/* Featured preview cards (only when real projects exist) */
.profile-feat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-feat-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.6);
}

.profile-feat-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-accent-light);
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 0.6rem;
}

.profile-feat-card h3 {
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--color-accent);
    margin: 0 0 0.35rem;
}

.profile-feat-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-light);
    margin: 0;
}

.profile-feat-card .profile-col-link {
    font-size: 0.9rem;
    margin-top: 0.6rem;
}

/* Experience preview */
.profile-exp-item {
    margin-bottom: 1.2rem;
}

.profile-exp-item:last-of-type {
    margin-bottom: 0;
}

.profile-exp-role {
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.2rem;
}

.profile-exp-org {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin: 0 0 0.2rem;
}

.profile-exp-dates {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0;
}

/* Expertise — pill tags inherit the theme chip style */
.profile-col .tags {
    margin-bottom: 0;
}

.profile-col .tag {
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Desktop narrowing */
@media (max-width: 1200px) {
    .profile-head {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        gap: 2rem;
    }

    .profile-avatar {
        width: 170px;
    }

    .profile-cols {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        gap: 1.75rem;
    }
}

/* Short desktop viewports (laptops) — compress vertical rhythm */
@media (max-height: 760px) and (min-width: 901px) {
    .profile-head {
        padding-top: 15vh;
    }

    .profile-avatar {
        width: 160px;
    }

    .profile-statement {
        font-size: 1.28rem;
    }

    .profile-summary {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }

    .profile-id .home-hero-meta {
        margin-top: 1.1rem;
    }

    .profile-cols {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .profile-feat-list {
        grid-template-columns: 1fr;
    }

    .profile-feat-card {
        padding: 0.9rem;
    }
}

/* Very short viewports — secondary content yields, identity + CTA stay */
@media (max-height: 620px) {
    .profile-head {
        padding-top: 13vh;
        gap: 1.75rem;
    }

    .profile-avatar {
        width: 140px;
    }

    .profile-statement {
        font-size: 1.15rem;
    }

    .profile-summary {
        display: none;
    }

    .profile-cols {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .profile-col-title {
        margin-bottom: 0.8rem;
    }

    .profile-exp-item {
        margin-bottom: 0.85rem;
    }
}

/* MOBILE — stacked single-screen profile:
   cover → avatar → name → role pill → location → statement →
   summary → CTAs → meta, then a compact Experience + Expertise
   band. Featured lives on the Work page on small screens. */
@media (max-width: 900px) {
    .profile-cover {
        height: 30%;
    }

    .profile-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.15rem;
        padding: 15vh 1.5rem 0;
    }

    .profile-avatar {
        width: 118px;
    }

    .profile-id {
        align-items: center;
    }

    .profile-id .home-eyebrow {
        margin-bottom: 0.7rem;
    }

    .profile-id h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
        margin-bottom: 0.3rem;
    }

    .profile-statement {
        font-size: 1.12rem;
    }

    .profile-summary {
        font-size: 0.94rem;
        max-width: 32ch;
        margin-bottom: 1rem;
    }

    .profile-id .home-hero-meta {
        justify-content: center;
        gap: 0.4rem 0.9rem;
        margin-top: 1.2rem;
    }

    .profile-cols {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1.5rem 1.25rem;
        border-top: none;
    }

    .profile-col--featured {
        display: none;
    }

    .profile-col-title {
        margin-bottom: 0.8rem;
    }
}

/* Short mobile viewports — prioritize identity + CTA */
@media (max-width: 900px) and (max-height: 700px) {
    .profile-cover {
        height: 24%;
    }

    .profile-head {
        padding-top: 12vh;
        gap: 0.9rem;
    }

    .profile-avatar {
        width: 96px;
    }

    .profile-id .home-eyebrow {
        margin-bottom: 0.5rem;
    }

    .profile-id h1 {
        font-size: 1.85rem;
    }

    .profile-loc {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .profile-statement {
        font-size: 1rem;
    }

    .profile-exp-item {
        margin-bottom: 0.7rem;
    }

    .profile-exp-org {
        font-size: 0.85rem;
    }

    .profile-cols {
        padding: 1.25rem;
        gap: 1rem;
    }

    .profile-col-title {
        margin-bottom: 0.6rem;
    }
}

/* Very short mobile — collapse quickly, keep only the essential identity */
@media (max-width: 900px) and (max-height: 560px) {
    .profile-cover {
        height: 18%;
    }

    .profile-head {
        padding-top: 10vh;
        gap: 0.6rem;
    }

    .profile-avatar {
        width: 76px;
    }

    .profile-id .home-eyebrow {
        font-size: 0.7rem;
    }

    .profile-statement {
        font-size: 0.95rem;
    }

    .profile-loc {
        font-size: 0.85rem;
    }
}

/* ----------------------------------------------------------
   Back to Top — floating glass arrow
   Hidden by default; .is-visible is toggled from main.js once
   the page has scrolled. Not rendered on the fixed homepage.
   ---------------------------------------------------------- */
.back-to-top-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--color-accent);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-smooth), background var(--transition-fast), visibility 0s linear 0.25s;
}

.back-to-top-btn svg {
    width: 20px;
    height: 20px;
    animation: btt-nudge 2.4s ease-in-out infinite;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--transition-fast), transform var(--transition-smooth), background var(--transition-fast);
}

.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
    background: var(--color-accent);
    color: #fff;
}

.back-to-top-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Gentle upward pulse — suggests "take me up" without being distracting */
@keyframes btt-nudge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .back-to-top-btn,
    .back-to-top-btn.is-visible {
        transition: opacity var(--transition-fast);
        transform: none;
    }

    .back-to-top-btn svg {
        animation: none;
    }
}

/* ----------------------------------------------------------
   Clickable Blog Cards — one link covers the whole card.
   The <a> wraps image, title and read button (no nested
   anchors); hover cues signal the whole card is clickable.
   ---------------------------------------------------------- */
.blog-card-link,
.featured-post-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-link:focus-visible,
.featured-post-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    border-radius: inherit;
}

.blog-card:hover,
.featured-post:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Featured image — gentle scale on hover, aspect kept (object-fit) */
.blog-card .blog-img img,
.featured-post .featured-post-img img {
    transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.featured-post:hover .featured-post-img img {
    transform: scale(1.02);
}

.blog-card:hover .blog-content h3,
.featured-post:hover .featured-post-content h3 {
    color: var(--color-primary);
}

/* "Read Article" — still looks like the original button */
.read-article-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-accent);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background var(--transition-fast);
}

.read-article-link-lg {
    margin-top: var(--spacing-sm);
    padding: 12px 24px;
}

.blog-card:hover .read-article-link,
.featured-post:hover .read-article-link,
.read-article-link:focus-visible {
    background: var(--color-primary);
}

.card-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform var(--transition-fast);
}

.blog-card:hover .card-arrow,
.featured-post:hover .card-arrow {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .blog-card:hover .blog-img img,
    .featured-post:hover .featured-post-img img,
    .blog-card:hover .card-arrow,
    .featured-post:hover .card-arrow {
        transform: none;
    }

    .blog-card:hover,
    .featured-post:hover {
        transform: none;
    }
}

/* ============================================================
   MOBILE NAVIGATION — glass brand bar + dropdown panel.
   Desktop keeps the floating glass pill (.glass-nav) unchanged.
   Below 768px the pill hides and a full-width glass bar showing
   the brand + a hamburger button takes over. The bar/panel are
   hidden on desktop; .is-open / body.nav-locked are toggled from
   main.js (the single source of truth — no inline toggle script).
   ============================================================ */
.mobile-nav-bar,
.mobile-hamburger,
.mobile-nav-panel {
    display: none;
}

@media (max-width: 900px) {
    .glass-nav {
        display: none;
    }

    .mobile-nav-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 16px;
        left: 16px;
        right: 16px;
        z-index: 101;
        border-radius: 999px;
        padding: 0.5rem 0.9rem 0.5rem 1.25rem;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .mobile-nav-brand {
        font-family: var(--font-heading);
        font-size: 1.3rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        line-height: 1;
        color: var(--color-accent);
        text-decoration: none;
    }

    .mobile-hamburger {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: transparent;
        color: var(--color-accent);
        cursor: pointer;
        transition: background var(--transition-fast);
    }

    .mobile-hamburger:hover {
        background: rgba(255, 255, 255, 0.6);
    }

    .mobile-hamburger:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    .mobile-hamburger svg {
        display: block;
        width: 22px;
        height: 22px;
    }

    .mobile-hamburger .icon-close,
    .mobile-nav-bar.is-open .icon-menu {
        display: none;
    }

    .mobile-nav-bar.is-open .icon-close {
        display: block;
    }

    .mobile-nav-panel {
        display: block;
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        z-index: 100;
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 18px 50px -20px rgba(45, 62, 80, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition-fast), transform var(--transition-smooth), visibility 0s linear 0.25s;
    }

    .mobile-nav-panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity var(--transition-fast), transform var(--transition-smooth);
    }

    .mobile-nav-links {
        list-style: none;
        margin: 0;
        padding: 0.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .mobile-nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        border-radius: 12px;
        font-family: var(--font-heading);
        font-weight: 500;
        font-size: 1.02rem;
        color: var(--color-accent);
        text-decoration: none;
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a:focus-visible {
        background: rgba(59, 130, 246, 0.08);
        color: var(--color-primary);
    }

    .mobile-nav-links a:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: -2px;
    }

    body.nav-locked {
        overflow: hidden;
    }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .mobile-nav-panel,
    .mobile-nav-panel.is-open {
        transition: opacity var(--transition-fast);
        transform: none;
    }
}

/* ============================================================
   MOBILE RESPONSIVENESS — hardening pass
   Guarantees no horizontal scroll from content whichever
   template renders. Applies to the live routes only.
   ============================================================ */

/* Unbreakable words (URLs, long tokens) wrap instead of overflowing. */
body {
    overflow-wrap: break-word;
}

/* Fallback page content (page.php / index.php raw the_content output). */
.site-main img,
.site-main iframe,
.site-main video,
.site-main embed {
    max-width: 100%;
}

.site-main img {
    height: auto;
}

.site-main pre {
    max-width: 100%;
    overflow-x: auto;
}

.site-main table {
    width: 100%;
    max-width: 100%;
}

.site-main .wp-block-table {
    overflow-x: auto;
    display: block;
}

/* Old grids used a hard minmax(300px/280px, 1fr) track, which forced a
   300px column on tiny screens and overflowed them. Clamp to 100%. */
.services-grid,
.campaign-grid,
.education-grid,
.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.reels-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* Touch targets + iOS safe areas for the floating controls. */
@media (max-width: 768px) {
    .back-to-top-btn {
        right: calc(1rem + env(safe-area-inset-right, 0px));
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }
}

/* Tighten the shared container on narrow phones. */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}