/* ====================================================
   Font Definitions
   ==================================================== */
@font-face {
    font-family: 'IRANSansX';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSansX/IRANSansX-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: optional;
}
@font-face {
    font-family: 'IRANSansX';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSansX/IRANSansX-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: optional;
}
@font-face {
    font-family: 'IRANSansX';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSansX/IRANSansX-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: optional;
}

/* Impeccable Premium Warm Light Design System */
:root {
    /* Deliberate "Stone & Gold" Palette (Bypasses AI-default cream) */
    --color-bg: oklch(97.5% 0.005 240); /* Very light cool slate-stone */
    --color-bg-warm: oklch(94.5% 0.008 240); /* Warmer concrete/stone gray for alternative backdrops */
    --color-surface: oklch(100% 0 0); /* Pure White */
    --color-surface-hover: oklch(98.5% 0.003 240);
    
    /* Typography & Contrast (Highly readable, ≥4.5:1 contrast) */
    --color-text-primary: oklch(18% 0.015 240); /* Deep Slate Black */
    --color-text-muted: oklch(42% 0.015 240); /* Highly legible soft slate gray */
    
    /* Warm Accents (WCAG compliant contrast) */
    --color-accent: oklch(45% 0.15 250); /* Deep Navy Blue */ /* Rich Kinpaku Gold */
    --color-accent-text: oklch(30% 0.12 250); /* Dark Navy for text contrast */ /* Darkened Gold/Bronze for perfect contrast (4.8:1) */
    --color-accent-patina: oklch(38% 0.12 235); /* Slate Navy for secondary accents */ /* Deep Teal Patina for high contrast on slate-stone */
    
    /* Typography pairing (Display + Body) */
    --font-display: 'IRANSansX', 'IRANSans', system-ui, sans-serif;
    --font-body: 'IRANSansX', 'IRANSans', system-ui, sans-serif;
    
    /* Golden Ratio Base (1.618) */
    --base-size: 1rem;
    --ratio: 1.618;
    
    /* Golden Spacing Scale */
    --space-xs: calc(var(--base-size) / var(--ratio));         /* ~0.618rem (0.625rem) */
    --space-sm: var(--base-size);                              /* 1rem (1rem) */
    --space-md: calc(var(--base-size) * var(--ratio));         /* ~1.618rem (1.625rem) */
    --space-lg: calc(var(--base-size) * var(--ratio) * var(--ratio)); /* ~2.618rem (2.625rem) */
    --space-xl: calc(var(--base-size) * var(--ratio) * var(--ratio) * var(--ratio)); /* ~4.236rem (4.25rem) */
    --space-xxl: calc(var(--base-size) * var(--ratio) * var(--ratio) * var(--ratio) * var(--ratio)); /* ~6.854rem (6.875rem) */
    
    /* Layout */
    --container-max: 90rem; /* ~90rem */
    --header-height: 5rem;  /* ~5rem */
    
    /* Motion (Ease Out Expo) */
    --motion-curve: cubic-bezier(0.19, 1, 0.22, 1);
    --motion-duration: 600ms;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: var(--ratio); /* Golden ratio line height ≈ 1.618 */
    font-size: clamp(1rem, 0.8rem + 0.5vw, calc(var(--base-size) * 1.15));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: calc(var(--ratio) / 1.333); /* Golden ratio derivative for headers ≈ 1.21 */
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

/* Golden ratio type scale 1.618 (Refined for sleek, proportional top titles) */
h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-md); color: var(--color-text-muted); max-width: 65ch; text-align: justify; text-justify: inter-word; }

/* Accessible Accent classes */
.text-accent { color: var(--color-accent-text); }
.text-patina { color: var(--color-accent-patina); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-lg);
    align-items: center;
}

/* Header - Fixed 3-slot Layout Aligned with Site Container */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background-color: color-mix(in oklch, var(--color-bg) 80%, transparent);
    backdrop-filter: blur(1rem);
    border-bottom: 1px solid color-mix(in oklch, var(--color-text-primary) 8%, transparent);
    z-index: 300;
    display: flex;
    align-items: center;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    width: 100%;
    direction: ltr !important;
}

/* Left Slot (Col 1): Language Switcher */
.header-actions {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    direction: ltr;
}

/* Center Slot (Col 2): 4 Navigation Tabs */
.site-nav {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

html[dir="rtl"] .site-nav {
    direction: rtl !important;
}

html[dir="ltr"] .site-nav {
    direction: ltr !important;
}

/* Right Slot (Col 3): Logo */
.header-logo {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.header-logo img {
    height: 2.375rem;
    width: auto;
}

.header-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.site-nav a {
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text-primary);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--motion-duration) var(--motion-curve);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--motion-duration) var(--motion-curve);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.site-nav a.active::after {
    transform: scaleX(1);
}

[dir="ltr"] .site-nav a::after {
    right: auto;
    left: 0;
    transform-origin: left center;
}

.site-nav a:hover {
    color: var(--color-accent-text);
}

/* Mobile Hamburger Button */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid color-mix(in oklch, var(--color-accent) 30%, transparent);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 301;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover {
    background: color-mix(in oklch, var(--color-accent) 15%, transparent);
    border-color: var(--color-accent);
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-accent);
}

.nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-accent);
}



.cta-placeholder {
    background-color: var(--color-accent);
    color: #ffffff !important; /* White text on navy blue CTA */
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.25rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--motion-duration) var(--motion-curve), box-shadow var(--motion-duration) var(--motion-curve);
    box-shadow: 0 4px 14px 0 rgba(30, 58, 138, 0.35);
}

.cta-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.45);
}

.cta-placeholder:hover::before {
    left: 100%;
}


/* Sections Base */
section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    overflow: hidden;
    position: relative;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    pointer-events: none;
    animation: videoFadeIn 1.8s ease-out forwards;
    opacity: 0;
}

@keyframes videoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(223, 172, 70, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, transparent 20%, var(--color-bg) 92%),
        linear-gradient(to bottom, transparent 50%, var(--color-bg) 100%);
    z-index: 2;
    pointer-events: none;
    animation: slowPulse 8s ease-in-out infinite alternate;
}

@keyframes slowPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.hero-blueprint-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.hero-grid-cell {
    border-left: 1.5px solid color-mix(in oklch, var(--color-text-primary) 7%, transparent);
    border-bottom: 1.5px solid color-mix(in oklch, var(--color-text-primary) 7%, transparent);
    position: relative;
}

.hero-grid-cell::before {
    content: '+';
    position: absolute;
    bottom: -0.531rem;
    left: -0.344rem;
    font-size: 0.688rem;
    color: color-mix(in oklch, var(--color-accent) 45%, transparent);
    font-family: monospace;
    font-weight: 300;
}

#pixel-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 85rem;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* animated-hero: Staggered entrance animation (from tommyjepsen/animated-hero) */
@keyframes heroFadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(1.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content.active .hero-accent-line,
.hero-content.active h1,
.hero-content.active h2,
.hero-content.active p {
    animation: heroFadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content .hero-accent-line,
.hero-content h1,
.hero-content h2,
.hero-content p {
    opacity: 0;
}

.hero-content.active .hero-accent-line { animation-delay: 0s; }
.hero-content.active h1             { animation-delay: 0.18s; }
.hero-content.active h2             { animation-delay: 0.36s; }
.hero-content.active p:nth-of-type(1) { animation-delay: 0.54s; }
.hero-content.active p:nth-of-type(2) { animation-delay: 0.72s; }

.hero-accent-line {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--color-accent);
    margin: 0 auto var(--space-md);
}

.hero-content h1 {
    display: block;
    width: fit-content;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(0.375rem);
    -webkit-backdrop-filter: blur(0.375rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.6rem 1.4rem;
    margin: 0 auto 1rem;
    box-shadow: 
        0 0.5rem 2rem rgba(0, 0, 0, 0.02),
        inset 1px 1px 0px rgba(255, 255, 255, 0.4);
}

.hero-content h2 {
    display: block;
    width: fit-content;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(0.375rem);
    -webkit-backdrop-filter: blur(0.375rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem 1.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 
        0 0.5rem 2rem rgba(0, 0, 0, 0.02),
        inset 1px 1px 0px rgba(255, 255, 255, 0.4);
}

.hero-content p {
    display: block;
    width: fit-content;
    max-width: 65ch;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(0.375rem);
    -webkit-backdrop-filter: blur(0.375rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.875rem;
    padding: 1.2rem 1.6rem;
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    color: var(--color-text-muted);
    box-shadow: 
        0 0.5rem 2rem rgba(0, 0, 0, 0.02),
        inset 1px 1px 0px rgba(255, 255, 255, 0.4);
    margin: 0 auto;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: url(#container-glass) blur(1.5rem);
    -webkit-backdrop-filter: blur(1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: var(--space-md);
    box-shadow: 
        0 0.75rem 2.5rem 0 rgba(0, 0, 0, 0.25),
        inset 1px 1px 0px rgba(255, 255, 255, 0.1),
        inset -1px -1px 0px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Asymmetric Image/Text Block */
.about-image, .sector-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.05);
}

.about-image img, .sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--motion-curve);
}

.about-image:hover img, .sector-image:hover img {
    transform: scale(1.05);
}

/* ====================================================
   Stats Section
   ==================================================== */
.stats-section {
    background: linear-gradient(145deg, var(--color-bg-warm), var(--color-surface));
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(223, 172, 70, 0.1);
    border-bottom: 1px solid rgba(223, 172, 70, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.stat-card {
    padding: var(--space-md);
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    font-family: inherit;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ====================================================
   Services Section Grid & Cards
   ==================================================== */
.services-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.service-card {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: 0;
    border-top: 3px solid var(--color-accent-patina);
    transition:
        transform var(--motion-duration) var(--motion-curve),
        box-shadow var(--motion-duration) var(--motion-curve);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.05);
}

.pillar-card .pillar-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    margin-bottom: var(--space-xs);
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 9%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--color-accent) 18%, transparent);
    border-radius: 0.625rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        transform 0.3s var(--motion-curve),
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.pillar-card .pillar-icon svg {
    width: 1.375rem;
    height: 1.375rem;
    stroke: currentColor;
    stroke-width: 1.8;
}

.pillar-card:hover .pillar-icon {
    color: #ffffff;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-0.125rem);
}

.showcase-pillar-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.showcase-subtitle-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 9%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--color-accent) 18%, transparent);
    border-radius: 0.45rem;
}

.showcase-subtitle-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* Asymmetric spacing logic for card rows */
.services-grid > :nth-child(even) {
    border-top-color: var(--color-accent);
}


.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: 
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}




/* Footer */
.site-footer {
    background-color: var(--color-bg-warm);
    border-top: 1px solid color-mix(in oklch, var(--color-text-primary) 8%, transparent);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Responsive Overrides */
@media (max-width: 62rem) {
    .split-grid {
        grid-template-columns: 1fr;
    }
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
    }
}

@media (max-width: 36rem) {
    main .container {
        padding-inline: 1rem;
    }

    .pillar-card,
    .service-card {
        padding-inline: 1rem;
    }

    .pillar-card .pillar-icon {
        width: 2.375rem;
        height: 2.375rem;
        border-radius: 0.5rem;
    }

    .pillar-card .pillar-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* ====================================================
   Responsive Design System (Fluid Scaling & Breakpoints)
   ==================================================== */
/* Base Hamburger Button Styles (Hidden on Desktop) */
.nav-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid color-mix(in oklch, var(--color-text-primary) 12%, transparent);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 10000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Base Mobile Bottom Navigation Bar (Hidden on Desktop by default) */
.mobile-bottom-nav {
    display: none !important;
}

.nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-accent);
}

.nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-accent);
}

/* Mobile & Tablet Header (<= 768px) */
@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }

    .split-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .split-grid .about-image,
    .split-grid .service-image {
        order: -1 !important; /* Force image to ALWAYS be above title/text on mobile */
        width: 100% !important;
    }

    .split-grid .service-block-text,
    .split-grid .about-text {
        order: 1 !important; /* Force text to ALWAYS be below image on mobile */
        width: 100% !important;
    }

    body {
        padding-top: var(--header-height) !important;
        padding-bottom: 4.8rem !important; /* Ensure content is never clipped by bottom nav */
    }

    .site-footer {
        padding-bottom: 2rem !important;
        margin-bottom: 0 !important;
    }

    /* Mobile Bottom Navigation Bar (App/Android Style with Glassmorphism) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 3.8rem !important;
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid color-mix(in oklch, var(--color-text-primary) 10%, transparent) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
        z-index: 9990 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
    }

    .mobile-bottom-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.15rem !important;
        text-decoration: none !important;
        color: var(--color-text-muted) !important;
        flex: 1 !important;
        height: 100% !important;
        padding: 0.35rem 0 !important;
        box-sizing: border-box !important;
        transition: color 0.2s ease, transform 0.2s ease !important;
        position: relative !important;
    }

    .mobile-bottom-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
        transition: transform 0.2s ease !important;
    }

    .mobile-bottom-label {
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
        transition: font-weight 0.2s ease !important;
    }

    .mobile-bottom-item.active {
        color: var(--color-accent) !important;
    }

    .mobile-bottom-item.active .mobile-bottom-icon {
        transform: translateY(-2px) scale(1.1) !important;
    }

    .mobile-bottom-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: var(--color-accent);
        border-radius: 0 0 3px 3px;
    }

    .site-header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: var(--header-height) !important;
        min-height: 3.5rem !important;
        padding: 0 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        animation: none !important; /* Disable shrinking animation on mobile */
        z-index: 9999 !important; /* Always keep header above all page elements */
        background-color: rgba(248, 249, 250, 0.96) !important; /* Light luxury glassmorphism */
        backdrop-filter: blur(1.2rem) !important;
        -webkit-backdrop-filter: blur(1.2rem) !important;
        border-bottom: 1px solid color-mix(in oklch, var(--color-text-primary) 10%, transparent) !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        flex-direction: row-reverse !important;
        width: 100% !important;
    }

    /* Logo on Far-Right corner in RTL */
    .header-logo {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        text-decoration: none;
    }

    .header-logo img {
        height: 2.1rem;
        width: auto;
    }

    .header-logo-text {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--color-text-primary) !important;
    }

    /* Hamburger Button on Far-Left corner in RTL */
    .nav-toggle {
        display: flex !important;
    }

    /* Dropdown Navigation Drawer - Compact 2x2 Grid (100% visible, zero scroll) */
    .site-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        position: fixed !important;
        top: var(--header-height) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(248, 249, 250, 0.98) !important;
        backdrop-filter: blur(1.5rem) !important;
        -webkit-backdrop-filter: blur(1.5rem) !important;
        border-bottom: 1px solid color-mix(in oklch, var(--color-text-primary) 10%, transparent) !important;
        padding: 0.85rem 1rem !important;
        gap: 0.5rem !important;
        transform: translateY(-140%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s ease !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
        z-index: 9998 !important;
        box-sizing: border-box !important;
    }

    .site-nav.is-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-nav a {
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        padding: 0.65rem 0.5rem !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        border: 1px solid color-mix(in oklch, var(--color-text-primary) 12%, transparent) !important;
        color: var(--color-text-primary) !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-nav a::after {
        display: none !important;
    }

    .site-nav a:hover,
    .site-nav a:focus {
        background: #f1f5f9 !important;
    }

    .site-nav a.active {
        background: var(--color-accent) !important;
        border-color: var(--color-accent) !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        box-shadow: 0 3px 10px rgba(30, 58, 138, 0.25);
    }
}

@media (min-width: 48rem) {
    .hero-content h1,
    .hero-content h2 {
        white-space: nowrap;
        max-width: none;
    }
}

@media (min-width: 90rem) {
    :root {
        --container-max: 130rem;
    }
    #experience .service-card,
    #industry .service-card {
        padding: 1.5rem 1.25rem;
    }
    #experience .service-card p,
    #industry .service-card p {
        font-size: clamp(0.75rem, 0.55rem + 0.35vw, 0.9rem);
    }
    #experience .service-card h3,
    #industry .service-card h3 {
        font-size: clamp(1rem, 0.8rem + 0.35vw, 1.3rem);
    }
}

@media (min-width: 130rem) {
    :root {
        --container-max: 180rem;
    }
    .hero-content p {
        white-space: nowrap;
        max-width: none;
    }
    #experience .service-card h3,
    #experience .service-card p,
    #industry .service-card h3,
    #industry .service-card p {
        white-space: nowrap;
    }
    #experience .service-card p,
    #industry .service-card p {
        max-width: 100%;
    }
}

/* 21st.dev Component Integrations */

/* ====================================================
   Advanced Animated Tech Chart
   ==================================================== */
.tech-chart-container {
    width: 100%;
    height: 10rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
    border: 1px solid rgba(0,0,0,0.05);
}

.tech-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 1.25rem 1.25rem;
    opacity: 0.5;
}

.data-flow-track {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.05);
}

.data-packet {
    position: absolute;
    height: 0.25rem;
    width: 1.875rem;
    background: var(--color-accent);
    top: -1px;
    border-radius: 2px;
    box-shadow: 0 0 0.625rem var(--color-accent);
    animation: flowRight 3s linear infinite;
    opacity: 0;
}

@keyframes flowRight {
    0% { left: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.tech-bars {
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 5rem;
    display: flex;
    align-items: flex-end;
    gap: 0.938rem;
    padding-bottom: 0.625rem;
}

.tech-bar {
    flex: 1;
    height: 100%;
    background: rgba(0,0,0,0.05);
    border-radius: 0.25rem 0.25rem 0 0;
    position: relative;
    overflow: hidden;
}

.tech-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: var(--color-accent);
    border-radius: 0.25rem 0.25rem 0 0;
    transform-origin: bottom;
}

@keyframes barPulse {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(1.4); }
    100% { transform: scaleY(1); }
}

.tech-scanner {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(var(--color-accent), 0.5);
    box-shadow: 0 0 0.938rem 0.312rem color-mix(in oklch, var(--color-accent) 20%, transparent);
    animation: scanLine 6s ease-in-out infinite alternate;
}

@keyframes scanLine {
    0% { left: 5%; }
    100% { left: 95%; }
}

/* ====================================================
   Services Section (Spotlight Cards)
   ==================================================== */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-glow {
    pointer-events: none;
    position: absolute;
    width: 21.875rem;
    height: 21.875rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklch, var(--color-accent) 15%, transparent) 0%, transparent 80%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.spotlight-border-glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(
        circle 10rem at var(--mouse-x, -62.438rem) var(--mouse-y, -62.438rem),
        color-mix(in oklch, var(--color-accent) 55%, transparent) 0%,
        transparent 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.spotlight-card:hover .spotlight-glow,
.spotlight-card:hover .spotlight-border-glow {
    opacity: 1;
}

/* Corners Bracket Effect (from display-cards) */
.corners-card {
    position: relative;
}

.corners-card::before,
.corners-card::after,
.corners-card-inner::before,
.corners-card-inner::after {
    content: '';
    position: absolute;
    width: 0.875rem;
    height: 0.875rem;
    border-color: color-mix(in oklch, var(--color-text-primary) 15%, transparent);
    border-style: solid;
    pointer-events: none;
    z-index: 5;
    transition: border-color var(--motion-duration) var(--motion-curve);
}

.corners-card::before  { top: -1.5px; left: -1.5px; border-width: 2px 0 0 2px; }
.corners-card::after   { top: -1.5px; right: -1.5px; border-width: 2px 2px 0 0; }
.corners-card-inner::before { bottom: -1.5px; left: -1.5px; border-width: 0 0 2px 2px; }
.corners-card-inner::after  { bottom: -1.5px; right: -1.5px; border-width: 0 2px 2px 0; }

.corners-card:hover::before,
.corners-card:hover::after,
.corners-card:hover .corners-card-inner::before,
.corners-card:hover .corners-card-inner::after {
    border-color: var(--color-accent);
}

/* ====================================================
   Display Cards (Activity Areas)
   ==================================================== */
.display-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: start;
}

@media (max-width: 62rem) {
    .display-cards-grid {
        grid-template-columns: 1fr;
    }
}

.display-card {
    cursor: pointer;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid color-mix(in oklch, var(--color-text-primary) 10%, transparent);
    background: var(--color-surface);
    transition: transform 0.35s var(--motion-curve), box-shadow 0.35s var(--motion-curve);
    position: relative;
    z-index: 1;
}

/* Premium Animated Border Glow on Hover */
.display-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 90deg, transparent 40%, var(--color-accent) 50%, var(--color-accent-patina) 60%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
    100% { transform: rotate(360deg); }
}

.display-card::after {
    content: '';
    position: absolute;
    inset: 1px; /* Inner background to cover glow, exposing only border */
    background: var(--color-surface);
    border-radius: inherit;
    z-index: -1;
}

.display-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
}

.display-card:hover::before {
    opacity: 1;
}

.display-card-img {
    width: 100%;
    height: 13.75rem;
    object-fit: cover;
    display: block;
}

.display-card-footer {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.display-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.display-card-plus {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: color-mix(in oklch, var(--color-text-primary) 8%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 300;
    color: var(--color-text-primary);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--motion-curve);
    border: none;
    cursor: pointer;
    line-height: 1;
}

.display-card:hover .display-card-plus {
    background: var(--color-accent);
    color: white;
}

.display-card.expanded .display-card-plus {
    transform: rotate(45deg);
    background: var(--color-accent);
    color: white;
}



.display-card-desc {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    padding: 0 var(--space-md);
    transition: grid-template-rows 0.4s var(--motion-curve);
    background: var(--color-surface);
}

.display-card-desc p {
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: var(--space-xs) 0 var(--space-md);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.display-card.expanded .display-card-desc {
    grid-template-rows: 1fr;
}

/* ====================================================
   Interactive Core Values Tab Layout — Light Theme Split-Pane
   ==================================================== */
.values-section {
    position: relative;
    overflow: hidden;
}

/* Subtle light grid overlay */
.values-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 3.75rem 3.75rem;
    pointer-events: none;
    z-index: 0;
}

/* Unified Container: a single glassmorphic card */
#values-container {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    box-shadow:
        0 1.562rem 3.75rem rgba(0, 0, 0, 0.03),
        inset 1px 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    overflow: hidden; /* Clips children to container's border radius */
    backdrop-filter: blur(1.25rem);
    -webkit-backdrop-filter: blur(1.25rem);
    padding: 0; /* No padding, children touch the borders */
}

/* Split-Pane inner layout: first column is right (tabs), second is left (panel) */
.values-tabs-inner {
    display: grid;
    /* In RTL, the first column is on the right. We want tabs (15rem) on right, panel (1fr) on left. */
    grid-template-columns: 16.25rem 1fr;
    gap: 0;
    align-items: stretch;
    direction: rtl;
    width: 100%;
    min-height: 28.125rem;
    padding: 0;
}

@media (max-width: 62rem) {
    .values-tabs-inner {
        grid-template-columns: 1fr;
    }
}

/* Right Column: Sidebar List (Tabs) */
.values-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* Stacked and attached to each other */
    background: transparent;
    border-left: 1px solid rgba(0, 0, 0, 0.08); /* Vertical divider between columns */
    justify-content: flex-start;
    order: 1; /* Placed in the right column (grid-column 1 in RTL) */
}

@media (max-width: 62rem) {
    .values-sidebar-list {
        order: 2; /* Move tabs below content on mobile */
    }
}

/* Tab button styling */
.value-tab {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.875rem;
    cursor: pointer;
    text-align: right;
    transition: all 0.4s var(--motion-curve);
    position: relative;
    overflow: hidden;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    direction: rtl;
}

.value-tab:last-child {
    margin-bottom: 0;
}

/* Tab title & icon */
.value-tab-title {
    font-size: 1.05rem;
    transition: color 0.4s ease;
    z-index: 2; /* above spotlight glow */
}

.value-tab-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    z-index: 2; /* above spotlight glow */
}

.value-tab-icon img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Hover Tab */
.value-tab:hover {
    background: rgba(255, 255, 255, 0.35);
    color: var(--color-text-primary);
}

.value-tab:hover .value-tab-icon {
    background: #ffffff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* Active Tab */
.value-tab.active {
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-text-primary);
    box-shadow: inset -0.25rem 0 0 var(--color-accent);
}

.value-tab.active .value-tab-icon {
    background: var(--color-surface);
    border-color: var(--color-accent);
    box-shadow: 0 0.25rem 0.625rem rgba(212, 175, 55, 0.15);
}

.value-tab.active .value-tab-icon img {
    transform: scale(1.1);
}

/* Left Column: Large Details Panel */
.values-details-panel {
    background: transparent;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    order: 2; /* Placed in the left column (grid-column 2 in RTL) */
}

@media (max-width: 62rem) {
    .values-details-panel {
        order: 1; /* Content above tabs on mobile */
    }
}

.values-panel-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    direction: rtl;
}

.values-panel-text {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.values-panel-text h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.3rem;
}

.values-panel-text h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent-patina);
    margin-bottom: 0;
}

.values-accent-line {
    width: 3.75rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-patina));
    margin: 1rem 0;
    border-radius: 2px;
}

.values-panel-text p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
}

.value-panel-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.value-panel-bullets li {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    position: relative;
    padding-right: 1.25rem;
}

.value-panel-bullets li::before {
    content: '●';
    position: absolute;
    right: 0;
    top: -1px;
    color: var(--color-accent-patina);
    font-size: 0.65rem;
}

/* Panel Visual (Large Logo Image) */
.values-panel-visual {
    flex: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 12.5rem;
}

.values-panel-visual::before {
    content: '';
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.values-panel-img {
    width: 16rem;
    height: 16rem;
    object-fit: contain;
    filter: drop-shadow(0 0.375rem 1.25rem rgba(212, 175, 55, 0.12));
    animation: floatVisual 6s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes floatVisual {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-0.5rem) rotate(2deg); }
}

@media (max-width: 48rem) {
    .values-panel-inner {
        flex-direction: column-reverse;
        gap: var(--space-md);
        text-align: center;
    }
    .values-panel-text {
        text-align: center;
    }
    .values-accent-line {
        margin-left: auto;
        margin-right: auto;
    }
    .value-panel-bullets {
        align-items: center;
    }
    .value-panel-bullets li {
        padding-right: 0;
    }
    .value-panel-bullets li::before {
        display: none;
    }
    .values-panel-img {
        width: 11rem;
        height: 11rem;
    }
}

/* Expandable Display Card Dialog styling removed as dead code */

/* ====================================================
   Scroll Progress Bar (CSS Scroll-driven, native)
   ==================================================== */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .scroll-progress {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--color-accent-patina), var(--color-accent));
        z-index: 500;
        transform: scaleX(0);
        transform-origin: right center;
        animation: scrollProgress linear both;
        animation-timeline: scroll(block root);
        animation-range: 0% 100%;
    }
    @keyframes scrollProgress {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }

    [dir="ltr"] .scroll-progress {
        right: auto;
        left: 0;
        transform-origin: left center;
    }

    @keyframes headerShrink {
        to {
            box-shadow: 0 2px 20px rgba(0,0,0,0.08);
        }
    }
    .site-header {
        animation: headerShrink linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 120px;
    }
}


/* ====================================================
   Section Accent Line (decorative — always visible)
   ==================================================== */
.section-accent-line {
    display: block;
    height: 3px;
    width: 4rem;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-patina));
    border-radius: 2px;
    margin-bottom: var(--space-sm);
}

/* Experience & industry section card border-top */
#experience .service-card { border-top-color: var(--color-accent-patina); }
#experience .services-grid > :nth-child(even) { border-top-color: var(--color-accent); }
#industry .service-card { border-top-color: var(--color-accent); }
#industry .services-grid > :nth-child(even) { border-top-color: var(--color-accent-patina); }

/* ====================================================
   Scroll Progress Bar (CSS Scroll-driven, native)
   ==================================================== */


    @keyframes headerShrink {
        to {
            height: 3.5rem;
            box-shadow: 0 2px 20px rgba(0,0,0,0.08);
        }
    }
    .site-header {
        animation: headerShrink linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 120px;
    }
}

/* ====================================================
   Prefers Reduced Motion
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress { display: none; }
    .site-header { animation: none !important; }
}


/* --- NEW HERO STYLES FOR VARIETY --- */

.hero-home, .hero-services, .hero-about, .hero-contact {
    position: relative;
    z-index: 10;
    text-align: right;
    width: 90%;
    max-width: 800px;
    margin-right: 5%;
    margin-left: auto;
}

.hero-home {
    padding: var(--space-xl) 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.hero-home h1 {
    font-size: clamp(2.1rem, 3.8vw, 2.85rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-home h2 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-services {
    padding: var(--space-xl) 0;
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
}
.hero-services h1 {
    font-size: clamp(2.1rem, 3.8vw, 2.85rem);
    margin-bottom: var(--space-xs);
}
.hero-services h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--color-accent-text);
    font-weight: 500;
}

.hero-about {
    padding: var(--space-xl) 0;
}
.hero-about h1 {
    font-size: clamp(2.1rem, 3.8vw, 2.85rem);
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.hero-contact {
    padding: var(--space-xl) 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.hero-contact h1 {
    font-size: clamp(2.1rem, 3.8vw, 2.85rem);
    margin-bottom: var(--space-xs);
    color: var(--color-accent);
}
.hero-contact h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-home, .hero-services, .hero-about, .hero-contact {
        width: 100%;
        margin-right: 0;
        padding-right: var(--space-md);
        padding-left: var(--space-md);
    }
    .hero-services h1 { font-size: 2.1rem; }
    .hero-contact h1 { font-size: 2.1rem; }
}

/* 4-Service Quick Cards Grid for Services Hero */
.services-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
    width: 100%;
}

.service-quick-card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in oklch, var(--color-accent) 20%, transparent);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    transition: transform 0.35s var(--motion-curve), box-shadow 0.35s var(--motion-curve), border-color 0.35s var(--motion-curve);
    color: var(--color-text-primary);
}

.service-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.service-quick-card .quick-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in oklch, var(--color-accent) 10%, transparent);
    border-radius: 10px;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.service-quick-card:hover .quick-icon {
    background: var(--color-accent);
    color: #ffffff;
}

.service-quick-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-primary);
    line-height: 1.3;
    text-align: center;
}

.service-quick-card .quick-sub {
    font-size: 0.78rem;
    color: var(--color-accent-text);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

.service-quick-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
    text-align: center;
}

@media (max-width: 992px) {
    .services-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

@media (max-width: 576px) {
    .services-hero-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        margin-top: 0.75rem !important;
    }

    .service-quick-card {
        padding: 0.65rem 0.4rem !important;
        gap: 0.25rem !important;
        border-radius: 8px !important;
    }

    .service-quick-card .quick-icon {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 0.1rem !important;
    }

    .service-quick-card .quick-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .service-quick-card h3 {
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
    }

    .service-quick-card .quick-sub {
        font-size: 0.68rem !important;
    }

    .service-quick-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ====================================================
   Language Switcher & LTR Support
   ==================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid color-mix(in oklch, var(--color-text-primary) 15%, transparent);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    user-select: none;
}

.lang-switch-btn:hover {
    border-color: var(--color-accent);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.12);
}

.lang-switch-btn .lang-code {
    transition: color 0.2s ease;
}

.lang-switch-btn .lang-code.active {
    color: var(--color-accent);
    font-weight: 800;
}

.lang-switch-btn .lang-divider {
    opacity: 0.35;
    font-size: 0.7rem;
}

.mobile-nav-lang {
    display: none;
    margin-top: 0.5rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .site-nav .mobile-nav-lang {
        display: flex;
        grid-column: 1 / -1;
    }
    body {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    .site-nav {
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .lang-switch-btn, button, a {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* LTR Layout Overrides */
html[dir="ltr"],
html[dir="ltr"] body,
[dir="ltr"] body {
    direction: ltr !important;
    text-align: left !important;
}

[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4, [dir="ltr"] .header-logo-text {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
}

/* Force immediate visibility and proper LTR alignment for Hero sections */
.hero .reveal,
.hero-home,
.hero-services,
.hero-about,
.hero-contact {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

[dir="ltr"] .hero-home,
[dir="ltr"] .hero-about,
[dir="ltr"] .hero-contact {
    text-align: left !important;
    margin-left: 5% !important;
    margin-right: auto !important;
}

[dir="ltr"] .hero-services {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

[dir="ltr"] .site-nav a::after {
    left: 0;
    right: auto;
}

[dir="ltr"] .service-bullets {
    padding-left: 1.25rem;
    padding-right: 0;
}

[dir="ltr"] .value-panel-bullets li::before {
    left: -1.25rem;
    right: auto;
}

[dir="ltr"] body {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Hardware accelerate images and layout containers to eliminate layout vibration */
img, .about-image, .sector-image, .service-card, .pillar-card, .display-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth transition for language switch */
.lang-switch-btn {
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* ====================================================
   Pro Liquid Droplet Refraction Effect
   ==================================================== */

@property --wave-radius {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

:root {
  --wave-x: 50vw;
  --wave-y: 50vh;
  --wave-max: 1500px;
  --wave-duration: 1600ms;

  --fx-x: 50vw;
  --fx-y: 50vh;
  --fx-size: 1800px;
  --fx-duration: 1600ms;
}

/* Original View Transition animation */
::view-transition-group(root) {
  animation: none !important;
}

::view-transition-image-pair(root) {
  isolation: auto !important;
}

::view-transition-old(root) {
  animation: none !important;
  mix-blend-mode: normal !important;
  z-index: 1 !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

::view-transition-new(root) {
  z-index: 2 !important;
  mix-blend-mode: normal !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: mask-image, -webkit-mask-image;

  -webkit-mask-image:
    radial-gradient(
      circle at var(--wave-x) var(--wave-y),
      rgb(0 0 0 / 100%) 0,
      rgb(0 0 0 / 100%) max(0px, calc(var(--wave-radius) - 108px)),
      rgb(0 0 0 / 88%) max(0px, calc(var(--wave-radius) - 96px)),
      rgb(0 0 0 / 100%) max(0px, calc(var(--wave-radius) - 83px)),
      rgb(0 0 0 / 62%) max(0px, calc(var(--wave-radius) - 69px)),
      rgb(0 0 0 / 94%) max(0px, calc(var(--wave-radius) - 57px)),
      rgb(0 0 0 / 54%) max(0px, calc(var(--wave-radius) - 42px)),
      rgb(0 0 0 / 28%) max(0px, calc(var(--wave-radius) - 30px)),
      rgb(0 0 0 / 8%) max(0px, calc(var(--wave-radius) - 12px)),
      transparent var(--wave-radius)
    );

  mask-image:
    radial-gradient(
      circle at var(--wave-x) var(--wave-y),
      rgb(0 0 0 / 100%) 0,
      rgb(0 0 0 / 100%) max(0px, calc(var(--wave-radius) - 108px)),
      rgb(0 0 0 / 88%) max(0px, calc(var(--wave-radius) - 96px)),
      rgb(0 0 0 / 100%) max(0px, calc(var(--wave-radius) - 83px)),
      rgb(0 0 0 / 62%) max(0px, calc(var(--wave-radius) - 69px)),
      rgb(0 0 0 / 94%) max(0px, calc(var(--wave-radius) - 57px)),
      rgb(0 0 0 / 54%) max(0px, calc(var(--wave-radius) - 42px)),
      rgb(0 0 0 / 28%) max(0px, calc(var(--wave-radius) - 30px)),
      rgb(0 0 0 / 8%) max(0px, calc(var(--wave-radius) - 12px)),
      transparent var(--wave-radius)
    );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  animation: pro-wave-radius var(--wave-duration) linear both;
}

@keyframes pro-wave-radius {
  from { --wave-radius: 0px; }
  to { --wave-radius: var(--wave-max); }
}

/* Mobile/Safari fallback: the old page is peeled away by the same mask. */
.language-old-snapshot {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--color-bg);
  contain: strict;
}

.language-old-snapshot.is-ready {
  opacity: 1;
  visibility: visible;
}

.language-old-snapshot.is-active {
  will-change: mask-image, -webkit-mask-image;

  -webkit-mask-image:
    radial-gradient(
      circle at var(--wave-x) var(--wave-y),
      transparent 0,
      transparent max(0px, calc(var(--wave-radius) - 108px)),
      rgb(0 0 0 / 12%) max(0px, calc(var(--wave-radius) - 96px)),
      transparent max(0px, calc(var(--wave-radius) - 83px)),
      rgb(0 0 0 / 38%) max(0px, calc(var(--wave-radius) - 69px)),
      rgb(0 0 0 / 6%) max(0px, calc(var(--wave-radius) - 57px)),
      rgb(0 0 0 / 46%) max(0px, calc(var(--wave-radius) - 42px)),
      rgb(0 0 0 / 72%) max(0px, calc(var(--wave-radius) - 30px)),
      rgb(0 0 0 / 92%) max(0px, calc(var(--wave-radius) - 12px)),
      black var(--wave-radius),
      black 100%
    );

  mask-image:
    radial-gradient(
      circle at var(--wave-x) var(--wave-y),
      transparent 0,
      transparent max(0px, calc(var(--wave-radius) - 108px)),
      rgb(0 0 0 / 12%) max(0px, calc(var(--wave-radius) - 96px)),
      transparent max(0px, calc(var(--wave-radius) - 83px)),
      rgb(0 0 0 / 38%) max(0px, calc(var(--wave-radius) - 69px)),
      rgb(0 0 0 / 6%) max(0px, calc(var(--wave-radius) - 57px)),
      rgb(0 0 0 / 46%) max(0px, calc(var(--wave-radius) - 42px)),
      rgb(0 0 0 / 72%) max(0px, calc(var(--wave-radius) - 30px)),
      rgb(0 0 0 / 92%) max(0px, calc(var(--wave-radius) - 12px)),
      black var(--wave-radius),
      black 100%
    );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: pro-wave-radius var(--wave-duration) linear both;
}

html.language-swap-settling body > :not(.language-old-snapshot):not(.liquid-fx):not(#liquidSvgFilters),
html.language-swap-settling body > :not(.language-old-snapshot):not(.liquid-fx):not(#liquidSvgFilters) *,
html.language-swap-settling body > :not(.language-old-snapshot):not(.liquid-fx):not(#liquidSvgFilters)::before,
html.language-swap-settling body > :not(.language-old-snapshot):not(.liquid-fx):not(#liquidSvgFilters)::after,
html.language-swap-settling body > :not(.language-old-snapshot):not(.liquid-fx):not(#liquidSvgFilters) *::before,
html.language-swap-settling body > :not(.language-old-snapshot):not(.liquid-fx):not(#liquidSvgFilters) *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

/* =========================================================
   LIQUID FX OVERLAY
========================================================= */

.liquid-fx {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  contain: layout style paint;
}

.liquid-fx.is-active {
  opacity: 1;
}

.liquid-fx > div {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* 1. DROPLET IMPACT */
.liquid-impact {
  left: var(--fx-x);
  top: var(--fx-y);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(255 255 255 / 95%) 0%,
    rgb(255 255 255 / 48%) 30%,
    rgb(255 255 255 / 10%) 62%,
    transparent 100%
  );
  transform: translate(-50%, -50%) scale(0.1);
  filter: blur(0.7px);
  opacity: 0;
}

.liquid-fx.is-active .liquid-impact {
  animation: impact-drop 750ms cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

@keyframes impact-drop {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

/* Shared large circle positioning */
.liquid-refraction,
.liquid-crest,
.liquid-ring,
.liquid-caustic {
  left: calc(var(--fx-x) - var(--fx-size) / 2);
  top: calc(var(--fx-y) - var(--fx-size) / 2);
  width: var(--fx-size);
  height: var(--fx-size);
  border-radius: 50%;
}

/* 2. REFRACTION LAYER */
.liquid-refraction {
  transform: scale(0.015);
  -webkit-mask-image: radial-gradient(
    circle,
    transparent calc(50% - 46px),
    rgb(0 0 0 / 22%) calc(50% - 34px),
    black calc(50% - 17px),
    black calc(50% + 15px),
    rgb(0 0 0 / 26%) calc(50% + 33px),
    transparent calc(50% + 49px)
  );
  mask-image: radial-gradient(
    circle,
    transparent calc(50% - 46px),
    rgb(0 0 0 / 22%) calc(50% - 34px),
    black calc(50% - 17px),
    black calc(50% + 15px),
    rgb(0 0 0 / 26%) calc(50% + 33px),
    transparent calc(50% + 49px)
  );
  -webkit-backdrop-filter: blur(0.8px) saturate(1.06);
  backdrop-filter: blur(0.8px) saturate(1.06);
}

@supports (backdrop-filter: url(#a)) {
  .liquid-fx[data-quality="high"] .liquid-refraction {
    backdrop-filter: url(#liquidRefraction) saturate(1.05) contrast(1.015);
  }
  .liquid-fx[data-quality="low"] .liquid-refraction {
    backdrop-filter: url(#liquidRefractionLow) saturate(1.025);
  }
}

.liquid-fx.is-active .liquid-refraction {
  animation: refraction-expand var(--fx-duration) linear both;
}

@keyframes refraction-expand {
  0% { transform: scale(0.015); opacity: 0; }
  7% { opacity: 0.1; }
  17% { opacity: 1; }
  72% { opacity: 0.88; }
  100% { transform: scale(1); opacity: 0; }
}

/* 3. WAVE CREST */
.liquid-crest {
  transform: scale(0.015);
  background: radial-gradient(
    circle,
    transparent calc(50% - 47px),
    rgb(255 255 255 / 4%) calc(50% - 35px),
    rgb(255 255 255 / 30%) calc(50% - 10px),
    rgb(255 255 255 / 52%) 50%,
    rgb(255 255 255 / 16%) calc(50% + 10px),
    rgb(0 0 0 / 7%) calc(50% + 23px),
    transparent calc(50% + 47px)
  );
  filter: blur(2.5px);
  mix-blend-mode: soft-light;
  opacity: 0;
}

.liquid-fx.is-active .liquid-crest {
  animation: crest-expand var(--fx-duration) linear both;
}

@keyframes crest-expand {
  0% { transform: scale(0.015); opacity: 0; }
  12% { opacity: 0.85; }
  55% { opacity: 0.46; }
  100% { transform: scale(1); opacity: 0; }
}

/* 4. SECONDARY RIPPLES */
.liquid-ring {
  border: 1.5px solid rgb(255 255 255 / 22%);
  box-shadow:
    inset 0 1px 6px rgb(255 255 255 / 22%),
    inset 0 -2px 8px rgb(0 0 0 / 7%),
    0 0 14px rgb(255 255 255 / 8%);
  filter: blur(0.6px);
  transform: scale(0.015);
  opacity: 0;
}

.liquid-fx.is-active .ring-a {
  animation: secondary-wave-a 980ms 40ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.liquid-fx.is-active .ring-b {
  animation: secondary-wave-b 1100ms 105ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.liquid-fx.is-active .ring-c {
  animation: secondary-wave-c 1200ms 165ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes secondary-wave-a {
  0% { transform: scale(0.015); opacity: 0; }
  12% { opacity: 0.52; }
  100% { transform: scale(0.42); opacity: 0; }
}

@keyframes secondary-wave-b {
  0% { transform: scale(0.015); opacity: 0; }
  15% { opacity: 0.32; }
  100% { transform: scale(0.70); opacity: 0; }
}

@keyframes secondary-wave-c {
  0% { transform: scale(0.015); opacity: 0; }
  18% { opacity: 0.20; }
  100% { transform: scale(0.98); opacity: 0; }
}

/* 5. WATER CAUSTIC */
.liquid-caustic {
  transform: scale(0.02);
  background: radial-gradient(
    circle,
    transparent 38%,
    rgb(255 255 255 / 5%) 44%,
    rgb(255 255 255 / 20%) 48%,
    transparent 53%
  );
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0;
}

.liquid-fx.is-active .liquid-caustic {
  animation: caustic-expand var(--fx-duration) linear both;
}

@keyframes caustic-expand {
  0% { transform: scale(0.02); opacity: 0; }
  20% { opacity: 0.5; }
  65% { opacity: 0.18; }
  100% { transform: scale(1); opacity: 0; }
}

/* LOW POWER MODE */
.liquid-fx[data-quality="low"] .liquid-caustic { display: none; }
.liquid-fx[data-quality="low"] .ring-c { display: none; }
.liquid-fx[data-quality="low"] .liquid-refraction {
  -webkit-backdrop-filter: blur(0.35px);
  backdrop-filter: blur(0.35px);
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .language-old-snapshot,
  .liquid-fx { display: none; }

  ::view-transition-new(root),
  ::view-transition-old(root) {
    animation-duration: 1ms !important;
  }
}

/* Resilient interaction and form states */

/* Balanced bilingual justification for every prose block.
   Keep the baseline spacing slightly compact so justification never starts
   from an already-loose line, and never split words automatically. */
:where(p, li, blockquote, dd) {
  text-align: justify !important;
  text-align-last: start !important;
  text-justify: inter-character !important;
  text-wrap: wrap;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
  hanging-punctuation: first last;
  orphans: 2;
  widows: 2;
}

html[lang="en"] :where(p, li, blockquote, dd) {
  word-spacing: -0.035em;
  letter-spacing: 0.002em;
}

html[lang="fa"] :where(p, li, blockquote, dd) {
  word-spacing: -0.025em;
  letter-spacing: 0;
}

/* Card copy needs a denser reading size than full-width body copy.
   This gives the browser enough words per line to justify naturally. */
#activities .service-card {
  padding-inline: clamp(1.25rem, 1.8vw, 2rem);
}

#activities .service-card p {
  max-width: none;
  font-size: clamp(0.95rem, 0.9rem + 0.12vw, 1.05rem);
  line-height: 1.75;
}

html[lang="en"] #activities .service-card p {
  word-spacing: -0.045em;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--color-accent);
  border-radius: 0.5rem;
  transform: translateY(-180%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.form-honeypot {
  position: absolute !important;
  inset-inline-start: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-field {
  min-width: 0;
}

.form-field input,
.form-field textarea {
  overflow-wrap: anywhere;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 1.75rem;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.form-status:empty {
  min-height: 0;
  margin-top: 0;
}

.form-status.is-success {
  color: oklch(34% 0.11 155);
}

.form-status.is-error {
  color: oklch(38% 0.16 28);
}

@media (forced-colors: active) {
  :where(a, button, input, textarea):focus-visible {
    outline-color: Highlight;
  }

  .form-status {
    color: CanvasText;
  }
}

