/* ============================================
   MAL BROTHERS · Editorial Foundation v2
   Design tokens — Phases 1–6 (Batch A)
   ============================================ */

:root {
    /* ───── Phase 3 · Color (brand anchors retained) ───── */
    --ink-900: #0E0C24;          /* deepest ink, rarely used directly */
    --ink-800: #16142C;          /* hero / footer base */
    --ink-700: #1A1730;          /* primary editorial dark */
    --ink-600: #2A274E;          /* original brand primary */
    --ink-500: #3A375E;          /* hover surface in dark mode */
    --ink-400: #5C5A78;          /* secondary text on light */
    --ink-300: #8886A0;          /* muted text */
    --ink-200: #C9C7D6;          /* hairlines on dark */
    --ink-100: #E4E2EE;          /* hairlines on light */

    --bone-50:  #FBFAF6;         /* cleanest cream */
    --bone-100: #F7F4ED;         /* primary editorial surface (replaces cold #EEF0F2) */
    --bone-200: #EFEBDF;         /* card surface */
    --bone-300: #E5DFCD;         /* divider warm */
    --bone-400: #C9C0A6;         /* sand accent */

    --gold-500: #E8C98A;         /* editorial gold (used in 404 + accents) */
    --gold-600: #D4B26A;         /* gold hover */
    --gold-300: #F2E0B5;         /* gold tint */

    --green-500: #00E676;        /* brand green — load-bearing, do not change */
    --green-600: #00C964;        /* hover */
    --green-400: #4DEE9B;        /* tint */
    --green-50:  #E6FBF0;        /* faint surface */

    --white: #ffffff;
    --black: #000000;

    /* Semantic surfaces */
    --bg-page: var(--bone-50);
    --bg-elevated: #ffffff;
    --bg-subtle: var(--bone-100);
    --bg-card: var(--bone-100);
    --bg-inverse: var(--ink-700);
    --bg-inverse-deep: var(--ink-800);

    /* Semantic text */
    --fg-primary: var(--ink-700);
    --fg-secondary: var(--ink-400);
    --fg-muted: var(--ink-300);
    --fg-on-dark: rgba(255,255,255,0.92);
    --fg-on-dark-soft: rgba(255,255,255,0.68);
    --fg-on-dark-faint: rgba(255,255,255,0.46);
    --fg-accent: var(--gold-500);

    /* Borders / hairlines */
    --hairline: rgba(14,12,36,0.08);
    --hairline-strong: rgba(14,12,36,0.14);
    --hairline-on-dark: rgba(255,255,255,0.10);
    --hairline-on-dark-strong: rgba(255,255,255,0.18);

    /* Legacy aliases (keep existing CSS working) */
    --primary: var(--ink-600);
    --primary-dark: var(--ink-700);
    --primary-deeper: var(--ink-800);
    --accent: var(--green-500);
    --accent-hover: var(--green-600);
    --text: var(--fg-primary);
    --text-light: var(--ink-400);
    --text-muted: var(--ink-300);
    --light-bg: var(--bone-100);
    --warm-bg: var(--bone-50);
    --border: var(--ink-100);

    /* ───── Phase 2 · Typography ─────
       Outfit is the chosen typeface. Editorial contrast comes from
       weight (200 ↔ 700), tracking, leading, and case — not from a second family. */
    --font-display: 'Outfit', 'Century Gothic', CenturyGothic, -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Outfit', 'Century Gothic', CenturyGothic, -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
    --font: var(--font-body);   /* legacy alias */

    /* Type scale — fluid, editorial */
    --fs-12: 0.75rem;    /* 12 — eyebrow/meta */
    --fs-13: 0.8125rem;  /* 13 — caption */
    --fs-14: 0.875rem;   /* 14 — small */
    --fs-15: 0.9375rem;  /* 15 — body sm */
    --fs-16: 1rem;       /* 16 — body */
    --fs-18: 1.125rem;   /* 18 — body lg */
    --fs-20: 1.25rem;    /* 20 — lede */
    --fs-24: clamp(1.25rem, 0.95rem + 1.2vw, 1.5rem);
    --fs-28: clamp(1.4rem, 1rem + 1.6vw, 1.75rem);
    --fs-32: clamp(1.6rem, 1.05rem + 2.2vw, 2rem);
    --fs-40: clamp(1.85rem, 1.05rem + 3.2vw, 2.5rem);
    --fs-48: clamp(2.1rem, 1.1rem + 4vw, 3rem);
    --fs-56: clamp(2.4rem, 1.1rem + 5vw, 3.5rem);
    --fs-72: clamp(2.8rem, 1.1rem + 7vw, 4.5rem);
    --fs-96: clamp(3.4rem, 0.9rem + 10vw, 6rem);
    --fs-128: clamp(4rem, 0.4rem + 14vw, 8rem);

    /* Line heights */
    --lh-tight: 0.95;
    --lh-display: 1.04;
    --lh-snug: 1.18;
    --lh-base: 1.55;
    --lh-relaxed: 1.7;

    /* Letter spacing */
    --tracking-tightest: -0.045em;
    --tracking-tighter: -0.03em;
    --tracking-tight: -0.015em;
    --tracking-normal: 0;
    --tracking-wide: 0.04em;
    --tracking-wider: 0.12em;
    --tracking-widest: 0.22em;

    /* Font weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semi: 600;
    --fw-bold: 700;

    /* ───── Phase 1 · Spacing scale (4px base) ───── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;
    --space-12: 96px;
    --space-13: 120px;
    --space-14: 160px;
    --space-15: 200px;
    --space-16: 240px;

    /* Radii */
    --radius-0: 0;
    --radius-1: 2px;
    --radius-2: 4px;
    --radius-3: 6px;
    --radius-4: 12px;
    --radius-5: 20px;
    --radius-6: 32px;
    --radius-pill: 999px;
    --radius-circle: 50%;

    /* Z-index scale */
    --z-base: 0;
    --z-content: 10;
    --z-sticky: 100;
    --z-overlay: 500;
    --z-nav: 1000;
    --z-mobile-menu: 1050;
    --z-modal: 2000;
    --z-toast: 3000;
    --z-cursor: 9999;

    /* ───── Phase 4 · Editorial grid + container ───── */
    --container-narrow: 880px;
    --container-default: 1280px;
    --container-wide: 1440px;
    --container-bleed: 1680px;
    --container: var(--container-default);  /* legacy alias */

    --gutter: clamp(16px, 1.6vw, 32px);
    --col-gap: clamp(16px, 1.6vw, 32px);
    --grid-cols: 12;

    /* Section rhythm — looser, editorial */
    --section-py-sm: clamp(56px, 7vw, 96px);
    --section-py: clamp(96px, 11vw, 168px);   /* upgraded from 64-120 */
    --section-py-lg: clamp(120px, 14vw, 200px);
    --section-py-xl: clamp(160px, 18vw, 260px);

    --px: clamp(20px, 4vw, 60px);  /* legacy alias for inner padding */
    --inset: clamp(20px, 4vw, 60px);

    /* ───── Phase 5 · Shadows (dual-layer, directional) ───── */
    --shadow-0: none;
    --shadow-1:
        0 1px 2px rgba(14,12,36,0.04),
        0 1px 1px rgba(14,12,36,0.03);
    --shadow-2:
        0 2px 4px rgba(14,12,36,0.05),
        0 4px 8px rgba(14,12,36,0.04);
    --shadow-3:
        0 4px 8px rgba(14,12,36,0.06),
        0 12px 24px rgba(14,12,36,0.05);
    --shadow-4:
        0 8px 16px rgba(14,12,36,0.07),
        0 24px 48px rgba(14,12,36,0.07);
    --shadow-5:
        0 16px 32px rgba(14,12,36,0.08),
        0 40px 80px rgba(14,12,36,0.10);
    --shadow-6:
        0 24px 48px rgba(14,12,36,0.10),
        0 60px 120px rgba(14,12,36,0.14);

    --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.06);
    --shadow-glow-green: 0 0 0 1px rgba(0,230,118,0.3), 0 12px 32px rgba(0,230,118,0.18);
    --shadow-glow-gold:  0 0 0 1px rgba(232,201,138,0.35), 0 12px 32px rgba(232,201,138,0.22);

    /* ───── Phase 6 · Motion ───── */
    --dur-instant: 75ms;
    --dur-fast: 120ms;
    --dur-base: 200ms;
    --dur-medium: 300ms;
    --dur-slow: 500ms;
    --dur-slower: 700ms;
    --dur-cinematic: 1000ms;
    --dur-epic: 1400ms;

    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);   /* signature curve */
    --ease-expo-in:  cubic-bezier(0.7, 0, 0.84, 0);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
    --ease: var(--ease-expo-out);  /* legacy alias */

    /* Layered blurs */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;
    --blur-xl: 40px;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-instant: 0ms;
        --dur-fast: 0ms;
        --dur-base: 0ms;
        --dur-medium: 0ms;
        --dur-slow: 0ms;
        --dur-slower: 0ms;
        --dur-cinematic: 0ms;
        --dur-epic: 0ms;
    }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* scroll-behavior: smooth removed from html — it was forcing all user scrolls through
   an interpolation layer that stuttered during fast mouse-wheel scroll. Anchor links
   still scroll smoothly via the JS handler in script.js. */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); font-weight: 300; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--primary); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--px); }

/* === Nav === */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: var(--z-nav);
    padding: 22px 0;
    transition: padding var(--dur-medium) var(--ease-expo-out),
                background var(--dur-medium) var(--ease-standard),
                box-shadow var(--dur-medium) var(--ease-expo-out),
                border-color var(--dur-medium) var(--ease-standard);
    border-bottom: 1px solid transparent;
    contain: layout style;
}
.nav.scrolled {
    padding: 12px 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--hairline);
    box-shadow: var(--shadow-1);
}
.nav.scrolled .nav-logo,
.nav.scrolled .nav-link,
.nav.scrolled .nav-phone { color: var(--ink-700); }
.nav.scrolled .nav-hamburger span { background: var(--ink-700); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--px); display: flex; align-items: center; justify-content: space-between; gap: var(--space-7); }
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 22px;
    font-weight: var(--fw-semi);
    letter-spacing: -0.02em;
    color: var(--white);
    transition: color var(--dur-medium) var(--ease-standard);
}
.nav-logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
    transition: transform var(--dur-slow) var(--ease-expo-out);
}
.nav-logo:hover .nav-logo-mark { transform: translateY(-1px) scale(1.02); }
.nav-logo-text { display: inline-flex; align-items: baseline; gap: 0.32em; line-height: 1; }
.nav-logo-text strong { font-weight: var(--fw-bold); letter-spacing: -0.04em; }
.nav-logo-text span { font-weight: var(--fw-light); letter-spacing: 0.01em; opacity: 0.9; }

.nav-links { display: flex; gap: var(--space-7); }
.nav-link {
    font-size: 14px;
    font-weight: var(--fw-regular);
    color: rgba(255,255,255,0.82);
    transition: color var(--dur-base) var(--ease-standard);
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--dur-medium) var(--ease-expo-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav.scrolled .nav-link:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: var(--space-5); }
.nav-phone {
    font-size: 14px;
    font-weight: var(--fw-regular);
    color: rgba(255,255,255,0.82);
    transition: color var(--dur-base) var(--ease-standard);
    font-feature-settings: "tnum" 1;
}
.nav-phone:hover { color: var(--accent); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px 11px 22px;
    background: var(--accent);
    color: var(--ink-700);
    font-size: 14px;
    font-weight: var(--fw-medium);
    border-radius: var(--radius-2);
    transition: transform var(--dur-base) var(--ease-expo-out),
                background var(--dur-base) var(--ease-standard),
                box-shadow var(--dur-medium) var(--ease-expo-out);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform var(--dur-slower) var(--ease-expo-out);
    z-index: -1;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-glow-green); }
.nav-cta:hover::before { transform: translateX(110%); }
.nav-cta:active { transform: translateY(0); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
    border-radius: var(--radius-2);
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--dur-medium) var(--ease-expo-out),
                background var(--dur-base) var(--ease-standard),
                opacity var(--dur-base) var(--ease-standard);
    border-radius: 1px;
    transform-origin: center;
}
.nav-hamburger.active span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:last-child { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-menu);
    background: var(--ink-800);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-medium) var(--ease-standard),
                visibility var(--dur-medium) var(--ease-standard);
    overflow: hidden;
    isolation: isolate;
}
.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,201,138,0.10), transparent 65%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0,230,118,0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.mobile-menu::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 var(--inset);
}
.mobile-menu-link {
    display: block;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: var(--fw-light);
    color: var(--white);
    padding: 12px 0;
    transform: translateY(28px);
    opacity: 0;
    transition: transform var(--dur-slow) var(--ease-expo-out),
                opacity var(--dur-slow) var(--ease-standard),
                color var(--dur-base) var(--ease-standard);
    letter-spacing: var(--tracking-tight);
    line-height: 1.1;
    position: relative;
}
.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--dur-medium) var(--ease-expo-out),
                left var(--dur-medium) var(--ease-expo-out);
}
.mobile-menu-link:hover { color: var(--accent); }
.mobile-menu-link:hover::before { width: 60%; left: 20%; }
.mobile-menu.active .mobile-menu-link { transform: translateY(0); opacity: 1; }
.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 140ms; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 260ms; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 320ms; }
.mobile-menu.active .mobile-menu-link:nth-child(6) { transition-delay: 380ms; }
.mobile-menu-footer {
    margin-top: var(--space-9);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease-standard) 480ms,
                transform var(--dur-slow) var(--ease-expo-out) 480ms;
}
.mobile-menu.active .mobile-menu-footer { opacity: 1; transform: translateY(0); }
.mobile-menu-footer a {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    padding: 6px 0;
    transition: color var(--dur-base) var(--ease-standard);
    font-feature-settings: "tnum" 1;
}
.mobile-menu-footer a:hover { color: var(--accent); }
body.menu-open { overflow: hidden; }

/* === Hero === */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--primary-deeper); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,6,51,0.3) 0%, rgba(0,6,51,0.5) 40%, rgba(0,6,51,0.88) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 0 48px; }
.hero-title { font-size: clamp(36px, 6vw, 76px); font-weight: 300; line-height: 1.12; color: var(--white); margin-bottom: 20px; letter-spacing: -0.02em; }
.text-accent { color: var(--accent); }
.hero-subtitle { font-size: clamp(15px, 1.5vw, 19px); font-weight: 300; color: rgba(255,255,255,0.65); margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Stats Bar — backdrop-filter dropped; bg is ~opaque so blur wasn't visible but cost a paint per scroll frame. */
.hero-stats { position: relative; z-index: 2; background: rgba(42,39,78,0.94); border-top: 1px solid rgba(255,255,255,0.08); }
.stats-row { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.stat-item { text-align: center; flex: 1; }
.stat-number { font-size: clamp(28px, 4vw, 48px); font-weight: 300; color: var(--white); line-height: 1; }
.stat-suffix { font-size: clamp(14px, 1.5vw, 22px); font-weight: 300; color: var(--accent); }
.stat-label { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.45); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* Buttons */
.btn { display: inline-block; font-size: 14px; font-weight: 500; padding: 13px 28px; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,230,118,0.2); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-full { width: 100%; text-align: center; }

/* === Section Styles === */
.section-label { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.5vw, 44px); font-weight: 300; line-height: 1.2; color: var(--text); letter-spacing: -0.02em; margin-bottom: 8px; }
.section-title-light { color: var(--white); }

/* === About === */
.about { padding: var(--section-py) 0; background: var(--white); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.about-left p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; line-height: 1.75; }
.text-lead { font-size: 17px; font-weight: 400; color: var(--text); line-height: 1.7; }
.inline-link { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.inline-link:hover { border-bottom-color: var(--accent); }
.link-arrow { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--accent); transition: transform 0.3s ease; }
.link-arrow:hover { transform: translateX(4px); }
.link-arrow-light { color: var(--accent); }

/* About images */
.about-image-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.about-img { border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.about-img:hover img { transform: scale(1.04); }
.about-img-main { height: 360px; }
.about-img-secondary { height: 360px; }
.about-badge { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--primary); padding: 16px 28px; border-radius: 8px; text-align: center; z-index: 2; box-shadow: 0 8px 24px rgba(0,230,118,0.2); }
.about-badge-num { display: block; font-size: 28px; font-weight: 600; line-height: 1; }
.about-badge-text { font-size: 12px; font-weight: 500; }

/* === Developments === */
.developments { padding: var(--section-py) 0; background: var(--primary); }
.dev-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.dev-header-right { max-width: 400px; font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.7; }
.dev-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dev-card { border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); transition: all 0.4s ease; }
.dev-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); transform: translateY(-4px); }
.dev-card-image { height: 220px; overflow: hidden; }
.dev-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.dev-card:hover .dev-card-image img { transform: scale(1.06); }
.dev-card-content { padding: 28px; }
.dev-card-content h3 { font-size: 20px; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.dev-card-content p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 14px; }

/* === Showcase === */
.showcase { background: var(--primary-deeper); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.showcase-item { position: relative; height: 300px; overflow: hidden; }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.showcase-item:hover img { transform: scale(1.06); }
.showcase-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 28px; background: linear-gradient(to top, rgba(0,6,51,0.7) 0%, transparent 60%); }
.showcase-overlay span { font-size: 16px; font-weight: 400; color: var(--white); letter-spacing: 0.02em; }

/* === Values === */
.values { padding: var(--section-py) 0; background: var(--light-bg); }
.values-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.values-header-text { max-width: 380px; font-size: 15px; color: var(--text-light); line-height: 1.7; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 32px 24px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); transition: all 0.4s ease; }
.value-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(42,39,78,0.08); transform: translateY(-3px); }
.value-number { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 16px; padding: 5px 10px; background: rgba(0,230,118,0.08); border-radius: 4px; }
.value-card h3 { font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.value-card p { font-size: 13px; font-weight: 300; color: var(--text-light); line-height: 1.7; }

/* === Process Section === */
.process-section { padding: var(--section-py) 0; background: var(--white); }
.quote-banner { background: var(--warm-bg); border-radius: 12px; padding: clamp(32px, 5vw, 56px); text-align: center; margin-bottom: 64px; border: 1px solid var(--border); }
.quote-mark { font-size: 48px; font-weight: 300; color: var(--text); line-height: 0.5; opacity: 0.5; }
.quote-banner blockquote { font-size: clamp(20px, 2.5vw, 30px); font-weight: 300; color: var(--text); line-height: 1.4; margin-bottom: 16px; }
.quote-author { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.process-header { margin-bottom: 40px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { padding: 28px 24px; border-left: 2px solid var(--border); transition: border-color 0.3s ease; }
.process-step:hover { border-left-color: var(--accent); }
.process-step-num { font-size: 24px; font-weight: 300; color: var(--accent); margin-bottom: 12px; }
.process-step h3 { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.process-step p { font-size: 13px; font-weight: 300; color: var(--text-light); line-height: 1.7; }

/* === Contact === */
.contact { padding: var(--section-py) 0; background: var(--light-bg); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact-desc { font-size: 15px; font-weight: 300; color: var(--text-light); margin-top: 16px; margin-bottom: 32px; line-height: 1.75; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.5; }
.contact-item a:hover { color: var(--accent); }
.contact-map { margin-top: 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { display: block; filter: grayscale(0.8) contrast(1.05); transition: filter 0.4s ease; }
.contact-map:hover iframe { filter: grayscale(0) contrast(1); }

/* Form */
.contact-form { background: var(--white); padding: 36px; border-radius: 8px; border: 1px solid var(--border); }
.form-title { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--white); color: var(--text); font-size: 14px; font-weight: 300; transition: border-color 0.3s ease; outline: none; }
.form-group select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238886a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }

.cf-turnstile { margin-bottom: 8px; display: flex; justify-content: center; }

/* === Footer === */
.footer { background: var(--primary); color: rgba(255,255,255,0.6); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { font-size: 24px; font-weight: 600; color: var(--white); display: inline-flex; align-items: center; gap: 0; margin-bottom: 14px; letter-spacing: -0.02em; }
.footer-logo-mark { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.footer-logo-text { display: inline-flex; align-items: baseline; gap: 0.32em; line-height: 1; }
.footer-logo-text strong { font-weight: 700; letter-spacing: -0.04em; }
.footer-logo-text span { font-weight: 300; letter-spacing: 0.01em; opacity: 0.85; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,0.4); transition: color 0.3s ease; }
.footer-social a:hover { color: var(--accent); }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 16px; letter-spacing: 0.03em; }
.footer-col a, .footer-col span { display: block; font-size: 14px; font-weight: 300; margin-bottom: 8px; transition: color 0.3s ease; line-height: 1.5; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; margin-bottom: 10px; }
.footer-subscribe { display: flex; gap: 8px; }
.footer-subscribe input { flex: 1; padding: 9px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; color: var(--white); font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.3s ease; }
.footer-subscribe input:focus { border-color: var(--accent); }
.footer-subscribe input::placeholder { color: rgba(255,255,255,0.3); }
.footer-subscribe button { padding: 9px 16px; background: var(--accent); color: var(--primary); font-size: 13px; font-weight: 500; border-radius: 4px; font-family: inherit; transition: background 0.3s ease; }
.footer-subscribe button:hover { background: var(--accent-hover); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: var(--accent); }

/* === Animations ===
   Reveal-up base styles live further down (Editorial polish block) so they
   use the compositor-friendly translate3d + content-visibility stack. */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

section[id] { scroll-margin-top: 80px; }

/* === Responsive === */
@media (max-width: 1024px) {
    .nav-links, .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
    .dev-categories { grid-template-columns: 1fr 1fr; }
    .dev-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .values-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .values-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
    .stats-row { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .stat-divider { display: none; }
    .stat-item { flex: 0 0 calc(50% - 8px); }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-item { height: 240px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .values-grid, .process-steps { grid-template-columns: 1fr; }
    .dev-categories { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .contact-form { padding: 24px 20px; }
    .about-image-grid { grid-template-columns: 1fr; }
    .about-img-main, .about-img-secondary { height: 240px; }
    .about-badge { bottom: -16px; }
    .stat-item { flex: 0 0 calc(50% - 8px); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }
}

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

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6);
    transition: transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 768px) {
    .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
}

/* ============================================
   BATCH B · Editorial Layout Layer (Phases 7–12)
   Additive utilities + modest quality enhancements.
   No existing rule's dimensions or text are touched.
   ============================================ */

/* ───── Phase 7: Section rhythm utilities ───── */
.section            { padding: var(--section-py) 0; }
.section--sm        { padding: var(--section-py-sm) 0; }
.section--lg        { padding: var(--section-py-lg) 0; }
.section--xl        { padding: var(--section-py-xl) 0; }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* ───── Phase 8: Container variants ───── */
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--inset); }
.container--wide   { max-width: var(--container-wide);   margin: 0 auto; padding: 0 var(--inset); }
.container--bleed  { max-width: var(--container-bleed);  margin: 0 auto; padding: 0 var(--inset); }
.container--full   { width: 100%; padding: 0 var(--inset); }

/* ───── Phase 9: 12-column editorial grid ───── */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
    gap: var(--col-gap);
    align-items: start;
}
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-start-5 { grid-column-start: 5; }
.col-start-6 { grid-column-start: 6; }
.col-start-7 { grid-column-start: 7; }

/* Asymmetric splits — editorial premium */
.split-4-8 { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 4vw, 80px); align-items: start; }
.split-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 80px); align-items: start; }
.split-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 80px); align-items: start; }
.split-8-4 { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(32px, 4vw, 80px); align-items: start; }

@media (max-width: 1024px) {
    .editorial-grid { grid-template-columns: 1fr; }
    .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-12 { grid-column: span 1; }
    .col-start-2, .col-start-3, .col-start-4, .col-start-5, .col-start-6, .col-start-7 { grid-column-start: 1; }
    .split-4-8, .split-5-7, .split-7-5, .split-8-4 { grid-template-columns: 1fr; gap: 32px; }
}

/* ───── Phase 10: Atmosphere — gradient washes + grain ───── */
.atmosphere {
    position: relative;
    isolation: isolate;
}
.atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 80% at 20% 0%,  rgba(232,201,138,0.07), transparent 65%),
        radial-gradient(ellipse 50% 70% at 80% 100%, rgba(0,230,118,0.04), transparent 70%);
}
.atmosphere-dark {
    position: relative;
    isolation: isolate;
}
.atmosphere-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 80% at 25% 0%,  rgba(232,201,138,0.10), transparent 60%),
        radial-gradient(ellipse 60% 70% at 80% 100%, rgba(0,230,118,0.06), transparent 65%);
}
.atmosphere-dark > * { position: relative; z-index: 1; }

/* Grain — subtle film texture for editorial weight */
.grain {
    position: relative;
}
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 1;
}
.grain--strong::after { opacity: 0.08; }
.grain--dark::after { mix-blend-mode: screen; opacity: 0.06; }

/* ───── Phase 11: Chapter marks — opt-in, additive ───── */
.chapter-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-12);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--fg-secondary);
}
.chapter-mark::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
    flex-shrink: 0;
}
.chapter-mark--accent { color: var(--accent); }
.chapter-mark--gold   { color: var(--gold-500); }
.chapter-mark--on-dark { color: var(--fg-on-dark-soft); }

/* ───── Phase 12: Editorial type utilities (opt-in) ───── */
.editorial-display {
    font-family: var(--font-display);
    font-weight: var(--fw-light);
    font-size: var(--fs-96);
    line-height: var(--lh-display);
    letter-spacing: var(--tracking-tightest);
    text-wrap: balance;
}
.editorial-h1 {
    font-family: var(--font-display);
    font-weight: var(--fw-light);
    font-size: var(--fs-72);
    line-height: var(--lh-display);
    letter-spacing: var(--tracking-tighter);
    text-wrap: balance;
}
.editorial-h2 {
    font-family: var(--font-display);
    font-weight: var(--fw-light);
    font-size: var(--fs-56);
    line-height: var(--lh-snug);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
}
.editorial-h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-regular);
    font-size: var(--fs-40);
    line-height: var(--lh-snug);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
}
.editorial-lede {
    font-size: var(--fs-20);
    font-weight: var(--fw-light);
    line-height: var(--lh-relaxed);
    color: var(--fg-secondary);
    text-wrap: pretty;
    max-width: 60ch;
}
.editorial-eyebrow {
    display: inline-block;
    font-size: var(--fs-12);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--fg-accent);
}

/* Body utility — optimal reading width */
.prose { max-width: 65ch; }
.prose-narrow { max-width: 52ch; }

/* ───── Quality enhancements to existing classes (no dimension shifts) ───── */

/* Smoother brand transitions using new motion tokens */
.btn { transition: transform var(--dur-base) var(--ease-expo-out), background var(--dur-base) var(--ease-standard), box-shadow var(--dur-medium) var(--ease-expo-out); }
.btn-accent:hover { box-shadow: var(--shadow-glow-green); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Refined card hover lifts */
.value-card { transition: transform var(--dur-medium) var(--ease-expo-out), box-shadow var(--dur-medium) var(--ease-expo-out), border-color var(--dur-base) var(--ease-standard); }
.value-card:hover { box-shadow: var(--shadow-3); }
.dev-card { transition: transform var(--dur-medium) var(--ease-expo-out), background var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-medium) var(--ease-expo-out); }
.dev-card:hover { box-shadow: var(--shadow-4); }

/* Focus visibility on form inputs */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

/* Nav link refined hover with new tokens */
.nav-link, .nav-phone, .nav-cta { transition: color var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-expo-out); }
.nav-link::after { transition: width var(--dur-medium) var(--ease-expo-out); }

/* Refined link-arrow */
.link-arrow { transition: transform var(--dur-medium) var(--ease-expo-out), color var(--dur-base) var(--ease-standard); }
.link-arrow:hover { transform: translateX(6px); }

/* Refined hero stats — subtle entrance polish */
.stat-number, .stat-suffix { font-feature-settings: "tnum" 1, "lnum" 1; }

/* Better selection style */
::selection { background: var(--accent); color: var(--ink-700); text-shadow: none; }

/* Tighter focus visibility globally for keyboard users */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Image quality */
img { image-rendering: -webkit-optimize-contrast; }

/* ============================================
   PHASE 12 · Consolidated page modules
   Migrated from inline <style> blocks
   ============================================ */

/* ───── Legal pages (termeni / politica-cookies / politica-de-confidentialitate) ───── */
.legal-hero {
    padding: 160px 0 60px;
    background:
        linear-gradient(to bottom, rgba(0,6,51,0.28) 0%, rgba(0,6,51,0.48) 50%, rgba(0,6,51,0.86) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80') center/cover no-repeat,
        #1A1730;
    color: #fff;
    position: relative;
}
.legal-hero .breadcrumbs { display: flex; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 24px; flex-wrap: wrap; }
.legal-hero .breadcrumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.15; }
.legal-hero p.updated { margin-top: 16px; color: rgba(255,255,255,.6); font-size: .9rem; }

.legal-body { padding: 80px 0 120px; background: #fff; }
.legal-body .container { max-width: 820px; }
.legal-body h2 { font-size: 1.5rem; font-weight: 500; color: #1A1730; margin: 48px 0 18px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.15rem; font-weight: 500; color: #1A1730; margin: 28px 0 12px; }
.legal-body p, .legal-body li { color: #4a4860; line-height: 1.75; font-size: 1rem; margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 18px; }
.legal-body a { color: #1A1730; text-decoration: underline; text-underline-offset: 3px; }
.legal-body .notice { padding: 20px 24px; background: #fff8e6; border-left: 3px solid #e8c98a; margin: 28px 0; color: #4a3e1a; font-size: .95rem; line-height: 1.7; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: .95rem; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #ececf2; vertical-align: top; color: #4a4860; }
.legal-body th { background: #f7f6fa; color: #1A1730; font-weight: 500; }

/* ============================================
   VISIBLE EDITORIAL UPGRADES (Batches C–D applied)
   These cascade onto existing classes to lift the
   live page into the editorial token system.
   ============================================ */

/* ───── Hero — dramatic editorial composition ───── */
.hero {
    background: var(--ink-800);
    isolation: isolate;
}
.hero-media img {
    animation: heroKenBurns 32s var(--ease-editorial) infinite alternate;
    transform-origin: center 60%;
}
@keyframes heroKenBurns {
    0%   { transform: scale(1.00) translateY(0); }
    100% { transform: scale(1.04) translateY(-1%); }
}
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,6,51,0.28) 0%, rgba(0,6,51,0.48) 40%, rgba(0,6,51,0.86) 100%);
    z-index: 1;
}
.hero-content {
    padding-top: clamp(120px, 14vh, 160px);
    padding-bottom: var(--space-10);
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: clamp(40px, 6.8vw, 88px);
    font-weight: 200;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 26px;
    text-wrap: balance;
}
.hero-subtitle {
    font-size: clamp(16px, 1.65vw, 22px);
    font-weight: 300;
    color: rgba(255,255,255,0.78);
    margin-bottom: 44px;
    line-height: 1.55;
    max-width: 580px;
    text-wrap: pretty;
}
.hero-actions { gap: 14px; }

/* Hero stats bar — solid ink for scroll perf (previous glass was painting every scroll frame) */
.hero-stats {
    background: linear-gradient(180deg, rgba(14,12,36,0.88) 0%, rgba(14,12,36,0.96) 100%);
    border-top: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    z-index: 2;
}
.stats-row { padding: 36px 0; }
.stat-number {
    font-size: clamp(32px, 5.2vw, 60px);
    font-weight: 200;
    letter-spacing: -0.02em;
}
.stat-suffix {
    font-size: clamp(16px, 1.8vw, 26px);
    font-weight: 300;
    margin-left: 2px;
}
.stat-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
}
.stat-divider { height: 48px; background: rgba(255,255,255,0.10); }

/* Buttons — premium feel */
.btn {
    padding: 15px 30px;
    border-radius: var(--radius-2);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-accent {
    background: var(--accent);
    color: var(--ink-700);
    box-shadow: 0 6px 24px -8px rgba(0,230,118,0.55);
}
.btn-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.42) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform var(--dur-slower) var(--ease-expo-out);
    z-index: -1;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px rgba(0,230,118,0.65), 0 0 0 1px rgba(0,230,118,0.4);
}
.btn-accent:hover::before { transform: translateX(110%); }
.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* ───── Section labels & titles — editorial scale ───── */
.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}
.section-title {
    font-size: clamp(28px, 4.6vw, 60px);
    font-weight: 200;
    line-height: 1.04;
    letter-spacing: -0.028em;
    color: var(--ink-700);
    margin-bottom: 18px;
    text-wrap: balance;
}
.section-title-light { color: var(--white); }

/* ───── About — warm editorial ───── */
.about { background: var(--bone-50); }
.about-layout { gap: clamp(48px, 6vw, 96px); }
.about-left p { font-size: 16px; color: var(--ink-400); line-height: 1.8; margin-bottom: 18px; }
.text-lead {
    font-size: 19px;
    font-weight: 400;
    color: var(--ink-600);
    line-height: 1.65;
    margin-bottom: 22px;
}
.about-img {
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-3);
    transition: box-shadow var(--dur-medium) var(--ease-expo-out), transform var(--dur-medium) var(--ease-expo-out);
}
.about-img:hover { box-shadow: var(--shadow-5); }
.about-badge {
    background: var(--accent);
    color: var(--ink-700);
    padding: 18px 30px;
    border-radius: var(--radius-4);
    box-shadow: 0 14px 36px -10px rgba(0,230,118,0.5), 0 0 0 1px rgba(0,230,118,0.3);
}
.about-badge-num { font-size: 32px; font-weight: 600; }
.about-badge-text { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ───── Developments — dark + atmosphere ───── */
.developments {
    background: var(--ink-800);
    position: relative;
    isolation: isolate;
}
.developments::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%,  rgba(232,201,138,0.10), transparent 60%),
        radial-gradient(ellipse 60% 60% at 85% 100%, rgba(0,230,118,0.06), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.developments .container { position: relative; z-index: 1; }
.dev-header { margin-bottom: 56px; }
.dev-categories { gap: 28px; }
.dev-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-4);
    overflow: hidden;
}
.dev-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(232,201,138,0.28);
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,201,138,0.15);
}
.dev-card-image { height: 240px; }
.dev-card-content { padding: 32px 30px; }
.dev-card-content h3 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.dev-card-content p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.62); }

/* ───── Showcase — refined band ───── */
.showcase { background: var(--ink-900); }
.showcase-item { height: 340px; }
.showcase-overlay {
    background: linear-gradient(to top, rgba(14,12,36,0.85) 0%, transparent 65%);
    padding: 32px;
}
.showcase-overlay span { font-size: 17px; font-weight: 400; letter-spacing: 0.01em; }

/* ───── Values — premium card system ───── */
.values { background: var(--bone-100); }
.values-header { margin-bottom: 56px; }
.values-grid { gap: 24px; }
.value-card {
    padding: 40px 30px 36px;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-medium) var(--ease-expo-out),
                box-shadow var(--dur-medium) var(--ease-expo-out),
                border-color var(--dur-base) var(--ease-standard);
}
.value-card:hover {
    border-color: var(--ink-100);
    box-shadow: var(--shadow-4);
    transform: translateY(-6px);
}
.value-number {
    font-size: 11px;
    padding: 6px 12px;
    background: rgba(0,230,118,0.10);
    color: var(--green-600);
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}
.value-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; color: var(--ink-700); }
.value-card p { font-size: 14px; line-height: 1.75; color: var(--ink-400); }

/* ───── Process section — editorial quote + steps ───── */
.process-section { background: var(--bone-50); }
.quote-banner {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-4);
    padding: clamp(40px, 6vw, 72px);
    box-shadow: var(--shadow-2);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}
.quote-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-500), var(--accent));
}
.quote-mark {
    font-size: 64px;
    font-weight: 200;
    color: var(--gold-500);
    line-height: 0.5;
    opacity: 0.7;
}
.quote-banner blockquote {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 200;
    color: var(--ink-700);
    line-height: 1.35;
    letter-spacing: -0.012em;
    margin-bottom: 20px;
    text-wrap: balance;
}
.quote-author { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-300); font-weight: 500; }
.process-header { margin-bottom: 48px; }
.process-steps { gap: 24px; }
.process-step {
    padding: 36px 28px 32px;
    border-left: 1px solid var(--ink-100);
    border-radius: 0;
    transition: border-color var(--dur-medium) var(--ease-standard),
                border-left-width var(--dur-base) var(--ease-standard),
                transform var(--dur-medium) var(--ease-expo-out);
    background: var(--white);
    border-top: 1px solid var(--ink-100);
    border-right: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-1);
}
.process-step:hover {
    border-left-color: var(--accent);
    border-left-width: 3px;
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
}
.process-step-num {
    font-size: 32px;
    font-weight: 200;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    font-feature-settings: "tnum" 1;
}
.process-step h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.process-step p { font-size: 13px; line-height: 1.75; }

/* ───── Contact section — cream + premium form ───── */
.contact { background: var(--bone-100); }
.contact-layout { gap: clamp(48px, 6vw, 96px); align-items: start; }
.contact-desc { font-size: 16px; line-height: 1.75; color: var(--ink-400); }
.contact-form {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-4);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-3);
}
.form-title { font-size: 22px; font-weight: 500; margin-bottom: 30px; }
.form-group { margin-bottom: 22px; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); }
.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-2);
    background: var(--white);
    font-size: 15px;
    font-weight: 400;
    transition: border-color var(--dur-base) var(--ease-standard),
                box-shadow var(--dur-base) var(--ease-standard);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,230,118,0.12);
}
.contact-map {
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-3);
}

/* ───── Footer — editorial dark with atmosphere ───── */
.footer {
    background: var(--ink-800);
    position: relative;
    isolation: isolate;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(232,201,138,0.07), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.footer .container { position: relative; z-index: 1; }
.footer-top { padding: 88px 0 56px; }
.footer-brand p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.55); }
.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 20px;
}
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.62); margin-bottom: 10px; transition: color var(--dur-base) var(--ease-standard); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.4); }

/* ───── WhatsApp float — refined glow ───── */
.whatsapp-float {
    box-shadow: 0 12px 40px -8px rgba(37,211,102,0.5), 0 0 0 1px rgba(37,211,102,0.2);
    transition: transform var(--dur-medium) var(--ease-expo-out), box-shadow var(--dur-medium) var(--ease-expo-out);
}
.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 48px -8px rgba(37,211,102,0.65), 0 0 0 1px rgba(37,211,102,0.35);
}

/* ───── Reveal animation refinements ─────
   GPU-compositor friendly: translate3d promotes the element to its own layer
   so opacity/transform animations don't trigger layout/paint of siblings.
   content-visibility:auto lets the browser skip rendering off-screen elements
   during fast scroll, which is the main glitch source. */
.reveal-up {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity var(--dur-slow) var(--ease-standard),
                transform var(--dur-slow) var(--ease-expo-out);
    backface-visibility: hidden;
    will-change: transform, opacity;
}
.reveal-up.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* ============================================
   EDITORIAL POLISH v2 (Batch D applied)
   Deepened hero, image treatments, stats,
   showcase parallax, process connectors,
   marquee, micro-interactions
   ============================================ */

/* ───── Hero — clean composition (no vignette/grain) ───── */
.hero {
    overflow: hidden;
}
.hero-content {
    /* will-change removed — the hero-content isn't animating on scroll, so the
       always-on compositor layer was wasted memory and a repaint source. */
}
.hero-title .text-accent {
    background: linear-gradient(110deg, var(--green-500) 0%, var(--green-400) 50%, var(--green-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Decorative editorial corner marks on hero */
.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: rgba(232,201,138,0.55);
    pointer-events: none;
    z-index: 3;
}
.hero-content::before {
    top: -16px;
    left: -16px;
    border-top: 1px solid;
    border-left: 1px solid;
}
.hero-content::after {
    bottom: 50%;
    right: -16px;
    border-bottom: 1px solid;
    border-right: 1px solid;
}


/* ───── Stats redesign — massive numbers with tabular alignment ───── */
.stat-number {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 200;
    letter-spacing: -0.035em;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 0.92;
    display: inline-block;
}
.stat-suffix {
    color: var(--gold-500);
    font-weight: 300;
    margin-left: 4px;
}
.stat-label {
    margin-top: 12px;
    font-size: 10.5px;
    color: rgba(255,255,255,0.5);
}
.stat-divider {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18), transparent);
}

/* ───── Section labels — stronger editorial mark ───── */
.section-label {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.section-label::before {
    width: 32px;
    background: linear-gradient(to right, transparent, currentColor);
    opacity: 0.7;
}

/* Section title — even more dramatic on cream sections */
.about .section-title,
.values .section-title,
.contact .section-title,
.process-section .section-title {
    font-size: clamp(34px, 5.4vw, 72px);
    line-height: 0.99;
    letter-spacing: -0.035em;
}

/* ───── About — image treatment + decorative ornament ───── */
.about {
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle at 50% 50%, rgba(232,201,138,0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.about .container { position: relative; z-index: 1; }
.about-img {
    transition: transform var(--dur-slower) var(--ease-expo-out),
                box-shadow var(--dur-slower) var(--ease-expo-out);
}
.about-img:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-6);
}
.about-image-wrap {
    position: relative;
}
.about-image-wrap::after {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(232,201,138,0.35);
    border-radius: var(--radius-4);
    pointer-events: none;
    transform: translate(20px, 20px);
    transition: transform var(--dur-slower) var(--ease-expo-out);
    z-index: -1;
}
.about-image-wrap:hover::after {
    transform: translate(28px, 28px);
}

/* ───── Developments — card image zoom + refined hover ───── */
.dev-card {
    transition: transform var(--dur-medium) var(--ease-expo-out),
                background var(--dur-medium) var(--ease-standard),
                border-color var(--dur-medium) var(--ease-standard),
                box-shadow var(--dur-medium) var(--ease-expo-out);
}
.dev-card-image {
    overflow: hidden;
    position: relative;
}
.dev-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,12,36,0.55) 0%, transparent 50%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity var(--dur-slower) var(--ease-standard);
}
.dev-card:hover .dev-card-image::after {
    opacity: 0.5;
}
.dev-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-expo-out);
    /* filter removed — it forced a compositor layer that flickered during the
       parent .reveal-up transform animation. */
}
.dev-card:hover .dev-card-image img {
    transform: scale(1.08);
}
.dev-card-content {
    position: relative;
}
.dev-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(to right, rgba(232,201,138,0.4), transparent 70%);
    opacity: 0;
    transition: opacity var(--dur-slower) var(--ease-standard);
}
.dev-card:hover .dev-card-content::before {
    opacity: 1;
}
.dev-card h3 {
    transition: color var(--dur-base) var(--ease-standard);
}
.dev-card:hover h3 {
    color: var(--gold-300);
}

/* ───── Showcase — image zoom + cinematic overlay ───── */
.showcase-grid {
    overflow: hidden;
}
.showcase-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.showcase-item img,
.showcase-item .showcase-image {
    transition: transform 1.6s var(--ease-expo-out);
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter removed — forced a compositor layer that flickered during scroll
       when parent .reveal-up was animating. The darkening is now handled
       entirely by .showcase-overlay. */
}
.showcase-item:hover img,
.showcase-item:hover .showcase-image {
    transform: scale(1.1);
}
.showcase-overlay {
    background: linear-gradient(to top,
        rgba(14,12,36,0.92) 0%,
        rgba(14,12,36,0.55) 35%,
        transparent 70%);
    transition: padding var(--dur-medium) var(--ease-expo-out);
}
.showcase-item:hover .showcase-overlay {
    padding-bottom: 44px;
}
.showcase-overlay span {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}
.showcase-overlay span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500);
    transition: width var(--dur-slower) var(--ease-expo-out);
}
.showcase-item:hover .showcase-overlay span::after {
    width: 100%;
}

/* ───── Values — refined card with corner mark ───── */
.value-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--gold-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-slower) var(--ease-expo-out);
    z-index: 1;
}
.value-card:hover::before {
    transform: scaleX(1);
}
.value-card::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-top: 1px solid var(--ink-200);
    border-right: 1px solid var(--ink-200);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity var(--dur-medium) var(--ease-standard),
                transform var(--dur-medium) var(--ease-expo-out);
}
.value-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}
.value-number {
    transition: background var(--dur-base) var(--ease-standard),
                color var(--dur-base) var(--ease-standard),
                transform var(--dur-medium) var(--ease-expo-out);
}
.value-card:hover .value-number {
    background: var(--accent);
    color: var(--ink-700);
    transform: scale(1.05);
}

/* ───── Process steps — connector line + numbered editorial ───── */
.process-steps {
    position: relative;
}
.process-step {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--gold-500));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--dur-slower) var(--ease-expo-out);
}
.process-step:hover::before {
    transform: scaleY(1);
}
.process-step-num {
    position: relative;
    display: inline-block;
}
.process-step-num::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}
.process-step h3 {
    transition: transform var(--dur-base) var(--ease-expo-out);
}
.process-step:hover h3 {
    transform: translateX(4px);
}

/* ───── Quote banner — dramatic editorial mark ───── */
.quote-banner {
    transition: box-shadow var(--dur-slower) var(--ease-expo-out),
                transform var(--dur-slower) var(--ease-expo-out);
}
.quote-banner:hover {
    box-shadow: var(--shadow-4);
}
.quote-banner .quote-mark { display: none; }
.quote-banner blockquote {
    position: relative;
}
.quote-banner blockquote::before {
    content: '\201C';
    display: block;
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 200;
    color: var(--gold-500);
    line-height: 0.6;
    opacity: 0.55;
    text-align: center;
    margin-bottom: 18px;
}

/* ───── Contact form — premium glass cards ───── */
.contact-form {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent) 0%, var(--gold-500) 100%);
    z-index: 1;
}
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bone-50);
    border-color: transparent;
    transition: background var(--dur-base) var(--ease-standard),
                border-color var(--dur-base) var(--ease-standard),
                box-shadow var(--dur-base) var(--ease-standard);
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    background: var(--white);
    border-color: var(--ink-100);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,230,118,0.10);
}
.form-group label {
    color: var(--ink-600);
    font-size: 11px;
    margin-bottom: 8px;
    display: block;
}

/* ───── Footer — refined editorial dark ───── */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1280px, 90%);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232,201,138,0.30) 30%, rgba(232,201,138,0.30) 70%, transparent);
}
.footer-logo .footer-logo-text strong {
    color: var(--gold-300);
}
.footer-col h4 {
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.8;
}
.footer-col a {
    position: relative;
    display: block;
    width: fit-content;
    transition: color var(--dur-base) var(--ease-standard),
                transform var(--dur-base) var(--ease-expo-out);
}
.footer-col a:hover {
    transform: translateX(4px);
}

/* ───── Buttons — even more refined glow ───── */
.btn {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 16px 32px;
}
.btn-accent {
    box-shadow:
        0 8px 28px -8px rgba(0,230,118,0.55),
        0 0 0 1px rgba(0,230,118,0.18) inset;
}
.btn-accent:hover {
    box-shadow:
        0 16px 40px -10px rgba(0,230,118,0.7),
        0 0 0 1px rgba(0,230,118,0.5) inset;
}

/* ───── WhatsApp float — pulse ring ───── */
@keyframes whatsappPulse {
    0% { box-shadow: 0 12px 40px -8px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 12px 40px -8px rgba(37,211,102,0.5), 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 12px 40px -8px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-float {
    animation: whatsappPulse 2.6s var(--ease-standard) infinite;
}

/* ───── Reduced motion respect ───── */
@media (prefers-reduced-motion: reduce) {
    .hero-media img,
    .hero-title .text-accent,
    .whatsapp-float {
        animation: none;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================================
   SUBPAGE EDITORIAL POLISH (Batch E)
   Body-prefixed for cascade priority over inline <style> blocks
   in despre / dezvoltare-imobiliara / imobiliare-retail.
   ============================================ */

/* ───── Subpage hero — refined editorial composition ───── */
body .subpage-hero {
    padding: clamp(180px, 22vh, 240px) 0 clamp(96px, 12vh, 140px);
    background:
        linear-gradient(180deg, rgba(0,6,51,0.28) 0%, rgba(0,6,51,0.48) 50%, rgba(0,6,51,0.86) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80') center/cover no-repeat,
        var(--ink-800);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
body .subpage-hero::before {
    content: none;
}
body .subpage-hero::after {
    content: none;
}
body .subpage-hero .container {
    position: relative;
    z-index: 2;
}

body .subpage-hero h1 {
    font-size: clamp(40px, 6.4vw, 84px);
    font-weight: 200;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    text-wrap: balance;
    color: var(--white);
    max-width: 980px;
}
body .subpage-hero h1 strong {
    font-weight: 300;
    background: linear-gradient(110deg, var(--gold-300) 0%, var(--gold-500) 50%, var(--gold-300) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}
body .subpage-hero .lead {
    font-size: clamp(17px, 1.6vw, 22px);
    font-weight: 300;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
    max-width: 720px;
    text-wrap: pretty;
}

/* Refined breadcrumbs */
body .subpage-hero .breadcrumbs {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.48);
    margin-bottom: 36px;
    font-weight: 500;
}
body .subpage-hero .breadcrumbs a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(232,201,138,0.3);
    padding-bottom: 2px;
    transition: border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
body .subpage-hero .breadcrumbs a:hover {
    color: var(--gold-300);
    border-color: var(--gold-500);
}
body .subpage-hero .breadcrumbs span[aria-current] {
    color: rgba(255,255,255,0.92);
}

/* ───── Subpage section rhythm ───── */
body .section {
    padding: clamp(96px, 11vw, 160px) 0;
    position: relative;
}
body .section-light {
    background: var(--white);
    color: var(--ink-700);
}
body .section-cream {
    background: var(--bone-50);
    color: var(--ink-700);
    position: relative;
    overflow: hidden;
}
body .section-cream::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -8%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(232,201,138,0.10) 0%, transparent 60%);
    pointer-events: none;
}
body .section-cream > .container { position: relative; z-index: 1; }
body .section-dark {
    background: var(--ink-800);
    color: var(--white);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
body .section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(232,201,138,0.10), transparent 60%),
        radial-gradient(ellipse 60% 60% at 85% 100%, rgba(0,230,118,0.06), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
body .section-dark > .container { position: relative; z-index: 1; }

/* ───── Section intro ───── */
body .section-intro {
    max-width: 880px;
    margin: 0 auto 72px;
    text-align: center;
}
body .section-intro h2 {
    font-size: clamp(30px, 4.6vw, 56px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink-700);
    margin-bottom: 22px;
    text-wrap: balance;
}
body .section-dark .section-intro h2 { color: var(--white); }
body .section-intro p {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--ink-400);
    line-height: 1.75;
    text-wrap: pretty;
}
body .section-dark .section-intro p { color: rgba(255,255,255,0.74); }

/* ───── Two-col layout — editorial grid ───── */
body .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}
body .two-col h2 {
    font-size: clamp(26px, 3.6vw, 44px);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink-700);
    margin-bottom: 26px;
    text-wrap: balance;
}
body .two-col p {
    font-size: 16px;
    color: var(--ink-400);
    line-height: 1.8;
    margin-bottom: 18px;
}
body .two-col p a {
    color: var(--green-600);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: color var(--dur-base) var(--ease-standard);
}
body .two-col p a:hover { color: var(--ink-700); }

/* ───── Service cards (dezvoltare-imobiliara) ───── */
body .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
body .service-card {
    padding: 44px 36px;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-4);
    transition: transform var(--dur-medium) var(--ease-expo-out),
                box-shadow var(--dur-medium) var(--ease-expo-out),
                border-color var(--dur-base) var(--ease-standard);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
body .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--gold-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-slower) var(--ease-expo-out);
}
body .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-4);
    border-color: var(--ink-100);
}
body .service-card:hover::before { transform: scaleX(1); }
body .service-card-num {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 22px !important;
    display: inline-block;
}
body .service-card h3 {
    font-size: 21px;
    font-weight: 500;
    color: var(--ink-700);
    margin-bottom: 14px;
    letter-spacing: -0.005em;
}
body .service-card p {
    color: var(--ink-400);
    line-height: 1.75;
    font-size: 15px;
}

/* ───── Project type / Principle / Partner cards ───── */
body .ptype-card,
body .principle-card,
body .partner-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-medium) var(--ease-expo-out),
                box-shadow var(--dur-medium) var(--ease-expo-out),
                border-top-color var(--dur-base) var(--ease-standard);
}
body .ptype-card:hover,
body .principle-card:hover,
body .partner-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-4);
    border-top-color: var(--accent);
}
body .partner-card {
    border-top: none;
    border-left: 3px solid var(--ink-700);
    border-radius: 0 var(--radius-4) var(--radius-4) 0;
}
body .partner-card:hover { border-left-color: var(--accent); }
body .partner-card .eyebrow {
    color: var(--accent) !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    margin-bottom: 14px !important;
}
body .ptype-card h3,
body .principle-card h3,
body .partner-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--ink-700);
    margin-bottom: 14px;
}
body .ptype-card p,
body .principle-card p,
body .partner-card p {
    color: var(--ink-400);
    line-height: 1.75;
    font-size: 15px;
}
body .ptype-card a {
    color: var(--green-600);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: color var(--dur-base) var(--ease-standard);
}
body .ptype-card a:hover { color: var(--ink-700); }

/* ───── Phase cards (dark variant) ───── */
body .phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) {
    body .phases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    body .phases-grid { grid-template-columns: 1fr; }
}
body .phase-card {
    padding: 40px 30px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-4);
    transition: transform var(--dur-medium) var(--ease-expo-out),
                background var(--dur-base) var(--ease-standard),
                border-color var(--dur-base) var(--ease-standard),
                box-shadow var(--dur-medium) var(--ease-expo-out);
}
body .phase-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(232,201,138,0.30);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5);
}
body .phase-card-num {
    font-size: 36px;
    font-weight: 200;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 20px;
    font-feature-settings: "tnum" 1;
}
body .phase-card h3 {
    font-size: 19px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}
body .phase-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
}

/* ───── Stats row (despre — dark) ───── */
body .section-dark .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(32px, 4vw, 56px);
    margin-top: 56px;
}
body .section-dark .stat {
    text-align: center;
    padding: 24px 16px;
    border-left: 1px solid rgba(255,255,255,0.10);
}
body .section-dark .stat:first-child { border-left: none; }
body .section-dark .stat .num {
    display: block;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 200;
    background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    line-height: 0.95;
    letter-spacing: -0.025em;
}
body .section-dark .stat .lbl {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}
body .section-dark .stat-note {
    text-align: center;
    margin-top: 36px;
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    font-style: italic;
}

/* ───── Company card (despre) ───── */
body .company-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    padding: 56px clamp(36px, 5vw, 64px);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-3);
    position: relative;
    overflow: hidden;
}
body .company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--gold-500));
}
body .company-card h3 {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 0.18em !important;
    margin-bottom: 28px !important;
}
body .company-card dt {
    color: var(--ink-300);
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
body .company-card dd {
    color: var(--ink-700);
    font-size: 15px !important;
    font-weight: 400;
}
body .company-card dd a {
    color: var(--green-600);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
}

/* ───── CTA banner — editorial dark ───── */
body .cta-banner {
    padding: clamp(96px, 12vw, 160px) 0;
    background: var(--ink-800);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
body .cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(232,201,138,0.10), transparent 65%),
        radial-gradient(ellipse 60% 60% at 50% 100%, rgba(0,230,118,0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
body .cta-banner > .container { position: relative; z-index: 1; }
body .cta-banner h2 {
    font-size: clamp(32px, 5.2vw, 64px);
    font-weight: 200;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 26px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    text-wrap: balance;
}
body .cta-banner p {
    font-size: clamp(16px, 1.3vw, 19px);
    color: rgba(255,255,255,0.72);
    max-width: 680px;
    margin: 0 auto 44px;
    line-height: 1.75;
}

/* ───── FAQ section — editorial accordion ───── */
body .faq-section {
    padding: clamp(96px, 11vw, 160px) 0;
    background: var(--ink-800);
    color: var(--white);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
body .faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232,201,138,0.06), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
body .faq-section > .container { position: relative; z-index: 1; }
body .faq-header { margin-bottom: 64px; }
body .faq-header h2 {
    font-size: clamp(30px, 4.6vw, 56px) !important;
    font-weight: 200 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
    margin-top: 16px !important;
    color: var(--white);
}
body .faq-list { max-width: 880px; }
body .faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding: 30px 0;
    transition: border-color var(--dur-base) var(--ease-standard);
}
body .faq-item[open] {
    border-bottom-color: rgba(232,201,138,0.35);
}
body .faq-item summary {
    font-size: 19px;
    font-weight: 400;
    cursor: pointer;
    color: var(--white);
    transition: color var(--dur-base) var(--ease-standard);
    padding-right: 24px;
}
body .faq-item summary:hover { color: var(--gold-300); }
body .faq-item[open] summary { color: var(--gold-300); }
body .faq-item summary::after {
    font-size: 28px !important;
    font-weight: 200 !important;
    color: var(--accent);
    transition: transform var(--dur-medium) var(--ease-expo-out);
}
body .faq-item[open] summary::after {
    color: var(--gold-500);
}
body .faq-item p {
    color: rgba(255,255,255,0.72) !important;
    line-height: 1.85 !important;
    font-size: 15px !important;
    max-width: 760px;
}
body .faq-item a {
    color: var(--gold-300);
    border-bottom: 1px solid var(--gold-500);
    text-decoration: none;
    padding-bottom: 1px;
}

/* ───── Map placeholder (shown when iframe has no consent) ───── */
.map-frame,
.contact-map {
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(26, 23, 48, 0.04), transparent 70%),
        linear-gradient(135deg, #f5f4f9 0%, #ecebf2 50%, #e5e3ed 100%);
    position: relative;
    isolation: isolate;
}
.map-frame::before,
.contact-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(26, 23, 48, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 23, 48, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}
.map-frame::after,
.contact-map::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -60%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A1730' fill-opacity='0.62'%3E%3Cpath d='M12 2C7.6 2 4 5.6 4 10c0 5.3 7 11.5 7.3 11.8.2.2.5.2.7 0C12.3 21.5 20 15.3 20 10c0-4.4-3.6-8-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 6px 12px rgba(26, 23, 48, 0.18));
    pointer-events: none;
    z-index: 0;
    animation: mapPinFloat 3.6s ease-in-out infinite;
}
@keyframes mapPinFloat {
    0%, 100% { transform: translate(-50%, -60%); }
    50%      { transform: translate(-50%, -68%); }
}
.map-frame iframe,
.contact-map iframe {
    position: relative;
    z-index: 1;
    background: transparent;
    transition: opacity var(--dur-slow) var(--ease-standard);
}
.map-frame iframe[src="about:blank"],
.map-frame iframe:not([src]),
.map-frame iframe[src=""],
.contact-map iframe[src="about:blank"],
.contact-map iframe:not([src]),
.contact-map iframe[src=""] {
    opacity: 0;
    pointer-events: none;
}
