/* ==========================================================================
   home-v3.css — Homepage redesign (Corporate Vivid) · v3.4
   Loaded ONLY on index.html and ar/index.html, after motion.css.

   v3.4: full-bleed video hero (KSA & Bahrain), directional entrance
   system (elements arrive from sides / top / corners), larger hero
   figures, consultation modal. Paired with js/home-v3.js.

   Namespace v3-. All colors from tokens.css. RTL via logical properties
   + [dir="rtl"] overrides.
   ========================================================================== */

:root {
    --v3-r: 16px;
    --v3-r-lg: 22px;
    --v3-shadow: 0 18px 50px -18px rgba(11, 36, 69, 0.28);
    --v3-navy: #081C38;
    --v3-fx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */
.v3-wrap {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}
@media (max-width: 768px) {
    .v3-wrap { padding-inline: var(--pad-x-mobile); }
}
.v3-section { padding-block: clamp(64px, 9vw, 120px); }

.v3-kicker {
    font-size: var(--fs-eyebrow);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cerulean);
    margin-bottom: 14px;
}
.v3-h2 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.06;
    font-size: clamp(1.7rem, 3.6vw, 2.9rem);
    color: var(--raven);
    text-wrap: balance;
}
.v3-h2 .a { color: var(--cerulean); }
.v3-on-dark .v3-h2 { color: var(--white); }
.v3-on-dark .v3-h2 .a { color: var(--cerulean-light); }
.v3-on-dark .v3-kicker { color: var(--cerulean-light); }
.v3-lead {
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.7;
    color: var(--raven);
}
.v3-on-dark .v3-lead { color: rgba(255, 255, 255, 0.75); }
.v3-center { text-align: center; max-width: 60ch; margin-inline: auto; }

/* Pill buttons */
.v3-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 15px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out),
                background 0.25s var(--ease-out),
                color 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out);
}
.v3-btn svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.25s var(--ease-out);
}
.v3-btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .v3-btn svg { transform: scaleX(-1); }
[dir="rtl"] .v3-btn:hover svg { transform: scaleX(-1) translateX(4px); }
.v3-btn--fill {
    background: var(--cerulean);
    color: var(--white);
    box-shadow: 0 10px 26px -10px rgba(51, 116, 186, 0.6);
}
.v3-btn--fill:hover { transform: translateY(-2px); background: var(--deep-sky); color: var(--white); }
.v3-btn--line { border-color: var(--cerulean); color: var(--cerulean); background: transparent; }
.v3-btn--line:hover { background: var(--cerulean); color: var(--white); transform: translateY(-2px); }
.v3-on-dark .v3-btn--line { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.v3-on-dark .v3-btn--line:hover { background: var(--white); color: var(--midnight); border-color: var(--white); }

.site-header .btn { border-radius: 999px; }

/* Duotone photo frame (kept for future photo use) */
.v3-ph { position: relative; overflow: hidden; background: var(--indigo); }
.v3-ph img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(0.96);
    mix-blend-mode: luminosity;
    opacity: 0.9;
}
.v3-ph::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(51, 116, 186, 0.32), rgba(11, 36, 69, 0.5));
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Dot-pattern accent */
.v3-dots {
    position: absolute;
    width: 76px; height: 76px;
    background-image: radial-gradient(var(--cerulean) 1.6px, transparent 1.8px);
    background-size: 12px 12px;
    opacity: 0.55;
    pointer-events: none;
}
.v3-on-dark .v3-dots {
    background-image: radial-gradient(var(--cerulean-light) 1.6px, transparent 1.8px);
    opacity: 0.4;
}

/* --------------------------------------------------------------------------
   HERO — full-bleed Riyadh video, content overlaid
   -------------------------------------------------------------------------- */
.v3-hero {
    position: relative;
    overflow: hidden;
    background: var(--midnight);
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: stretch;
}
.v3-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* legibility shade: strong on the text side, open on the skyline side,
   grounded at the bottom for the proof figures */
.v3-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(100deg, rgba(6, 24, 47, 0.94) 0%, rgba(11, 36, 69, 0.6) 46%, rgba(11, 36, 69, 0.12) 80%),
        linear-gradient(to top, rgba(6, 24, 47, 0.9) 0%, rgba(6, 24, 47, 0) 44%);
}
[dir="rtl"] .v3-hero__shade {
    background:
        linear-gradient(260deg, rgba(6, 24, 47, 0.94) 0%, rgba(11, 36, 69, 0.6) 46%, rgba(11, 36, 69, 0.12) 80%),
        linear-gradient(to top, rgba(6, 24, 47, 0.9) 0%, rgba(6, 24, 47, 0) 44%);
}
/* corner brackets frame the viewport — brand carryover */
.v3-hero__corner {
    position: absolute;
    z-index: 2;
    width: 110px; height: 110px;
    pointer-events: none;
}
.v3-hero__corner--a {
    top: 26px; inset-inline-end: 26px;
    border-top: 4px solid var(--cerulean-light);
    border-inline-end: 4px solid var(--cerulean-light);
    border-start-end-radius: 18px;
    opacity: 0.9;
}
.v3-hero__corner--b {
    bottom: 26px; inset-inline-start: 26px;
    border-bottom: 4px solid var(--cerulean);
    border-inline-start: 4px solid var(--cerulean);
    border-end-start-radius: 18px;
    opacity: 0.75;
}
@media (max-width: 768px) { .v3-hero__corner { display: none; } }

.v3-hero__in {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(64px, 10vh, 120px) clamp(44px, 7vh, 76px);
}
.v3-hero__title {
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.04;
    letter-spacing: -0.01em;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    color: var(--white);
    max-width: 17ch;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(6, 24, 47, 0.5);
}
.v3-hero__title .a { color: var(--cerulean-light); display: block; }
.v3-hero__lead {
    margin-top: 20px;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 50ch;
}
.v3-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* live badge — pinned inside the top corner bracket */
.v3-badge {
    position: absolute;
    top: 44px; inset-inline-end: 44px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--v3-shadow);
    display: flex; align-items: center; gap: 12px;
}
@media (max-width: 768px) { .v3-badge { top: 16px; inset-inline-end: 16px; padding: 10px 14px; } }
.v3-badge .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #2FA97C;
    box-shadow: 0 0 0 4px rgba(47, 169, 124, 0.18);
    animation: v3-pulse 2.2s ease-in-out infinite;
}
@keyframes v3-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(47, 169, 124, 0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(47, 169, 124, 0.08); }
}
.v3-badge b { font-size: 0.78rem; font-weight: 800; color: var(--raven); display: block; }
.v3-badge span {
    display: block;
    font-size: 0.64rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--silver-dark);
}

/* proof strip — LARGE figures, hairline dividers, sits low over the shade */
.v3-hero__proof {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: clamp(32px, 5.5vw, 90px);
    margin-top: clamp(48px, 8vh, 92px);
    padding-top: 28px;
    border-top: 1px solid rgba(127, 185, 225, 0.28);
}
.v3-hero__proof > div { position: relative; }
.v3-hero__proof > div + div::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(-1 * clamp(16px, 2.75vw, 45px));
    top: 10px; bottom: 10px;
    width: 1px;
    background: rgba(127, 185, 225, 0.3);
}
.v3-hero__proof b,
.v3-hero__proof b .count {
    font-size: clamp(2.9rem, 6.2vw, 4.8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}
.v3-hero__proof b { display: block; text-shadow: 0 2px 24px rgba(6, 24, 47, 0.6); }
.v3-hero__proof b .count { display: inline; }
.v3-hero__proof b i { font-style: normal; color: var(--cerulean-light); font-size: 0.58em; }
.v3-hero__proof span {
    display: block;
    margin-top: 12px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}
@media (max-width: 560px) {
    .v3-hero__proof { grid-template-columns: 1fr; gap: 24px; }
    .v3-hero__proof > div + div::before { display: none; }
}

/* cursor glow (injected by JS) */
.v3-hero__glow {
    position: absolute;
    z-index: 2;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(51, 116, 186, 0.28), transparent 70%);
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    mix-blend-mode: screen;
}
[dir="rtl"] .v3-hero__glow { left: auto; right: 0; }

/* --------------------------------------------------------------------------
   SERVICE TICKER
   -------------------------------------------------------------------------- */
.v3-marquee {
    background: var(--cerulean);
    overflow: hidden;
    padding-block: 15px;
    border-block: 1px solid rgba(255, 255, 255, 0.15);
}
.v3-marquee__track { display: flex; width: max-content; animation: v3-marq 26s linear infinite; }
.v3-marquee__track:hover { animation-play-state: paused; }
.v3-marquee__group { display: inline-flex; align-items: center; white-space: nowrap; }
.v3-marquee__group > b {
    font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--white);
    padding-inline: 26px;
}
.v3-marquee__group > i { width: 8px; height: 8px; background: var(--sky); display: inline-block; flex: 0 0 auto; }
@keyframes v3-marq { to { transform: translateX(-50%); } }
@keyframes v3-marq-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .v3-marquee__track { animation-name: v3-marq-rtl; }

/* --------------------------------------------------------------------------
   INTRO — ghost line + tile mosaic
   -------------------------------------------------------------------------- */
.v3-intro { position: relative; background: var(--white); overflow: hidden; }
.v3-intro__ghost {
    position: absolute;
    top: 34px; inset-inline: 0;
    pointer-events: none;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(51, 116, 186, 0.14);
    white-space: nowrap;
    overflow: hidden;
    will-change: transform;
}
.v3-intro__grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.v3-intro__media { position: relative; }
.v3-mosaic {
    position: relative;
    border-radius: var(--v3-r-lg);
    aspect-ratio: 4 / 3;
    background: var(--sky);
    overflow: hidden;
    box-shadow: var(--v3-shadow);
}
.v3-mosaic i {
    position: absolute;
    display: block;
    animation: v3-beat var(--dur, 2.4s) ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
@keyframes v3-beat {
    0%, 100% { opacity: var(--o, 1); }
    50%      { opacity: calc(var(--o, 1) * 0.35); }
}
.v3-chip {
    position: absolute;
    inset-inline-end: -14px; bottom: -18px;
    background: var(--cerulean);
    color: var(--white);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: var(--v3-shadow);
}
.v3-chip b { display: block; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; }
.v3-chip span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
@media (max-width: 900px) {
    .v3-intro__grid { grid-template-columns: 1fr; }
    .v3-chip { inset-inline-end: 8px; }
}

/* --------------------------------------------------------------------------
   WHO WE SERVE — icon cards
   -------------------------------------------------------------------------- */
.v3-serve { background: var(--icefield); }
.v3-serve__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px;
}
.v3-pcard {
    position: relative;
    background: var(--white);
    border-radius: var(--v3-r);
    padding: 28px 24px 26px;
    box-shadow: 0 8px 30px -14px rgba(11, 36, 69, 0.18);
    overflow: hidden;
    display: block;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.v3-pcard::before {
    content: "";
    position: absolute;
    top: 0; inset-inline: 0;
    height: 4px;
    background: var(--cerulean);
    transform: scaleX(0);
    transform-origin: var(--v3-seam-origin, left) center;
    transition: transform 0.35s var(--ease-out);
}
[dir="rtl"] .v3-pcard::before { --v3-seam-origin: right; }
.v3-pcard:hover { transform: translateY(-6px); box-shadow: var(--v3-shadow); }
.v3-pcard:hover::before { transform: scaleX(1); }
.v3-pcard__ico {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--ice);
    color: var(--deep-sky);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.v3-pcard:hover .v3-pcard__ico { background: var(--cerulean); color: var(--white); }
.v3-pcard__ico svg {
    width: 26px; height: 26px;
    stroke: currentColor; fill: none;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.v3-pcard h3 { font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--raven); }
.v3-pcard p { margin-top: 8px; font-size: 0.8rem; line-height: 1.55; color: var(--silver-dark); }
@media (max-width: 980px) { .v3-serve__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v3-serve__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   SOLUTIONS — ghost-numeral icon cards on midnight
   -------------------------------------------------------------------------- */
.v3-sol { background: var(--midnight); position: relative; overflow: hidden; }
.v3-sol::before {
    content: "";
    position: absolute; inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(127, 185, 225, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 185, 225, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}
.v3-sol .v3-wrap { position: relative; z-index: 2; }
.v3-sol__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px; flex-wrap: wrap;
    margin-bottom: 44px;
}
.v3-sol__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v3-icard {
    position: relative;
    border-radius: var(--v3-r);
    border: 1px solid rgba(127, 185, 225, 0.22);
    background: rgba(255, 255, 255, 0.04);
    padding: 26px 24px 22px;
    min-height: 235px;
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out),
                background 0.3s var(--ease-out);
}
.v3-icard::before {
    content: "";
    position: absolute;
    top: 0; inset-inline: 0;
    height: 4px;
    background: var(--cerulean-light);
    transform: scaleX(0);
    transform-origin: var(--v3-seam-origin, left) center;
    transition: transform 0.35s var(--ease-out);
}
[dir="rtl"] .v3-icard::before { --v3-seam-origin: right; }
.v3-icard:hover {
    transform: translateY(-6px);
    border-color: var(--cerulean);
    background: rgba(51, 116, 186, 0.13);
}
.v3-icard:hover::before { transform: scaleX(1); }
.v3-icard__num {
    position: absolute;
    top: 8px; inset-inline-end: 16px;
    font-size: 3.6rem; font-weight: 900;
    letter-spacing: -0.04em; line-height: 1;
    color: rgba(127, 185, 225, 0.14);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s var(--ease-out);
    pointer-events: none;
}
.v3-icard:hover .v3-icard__num { color: rgba(127, 185, 225, 0.3); }
.v3-icard__ico { width: 46px; height: 46px; color: var(--cerulean-light); margin-bottom: 18px; }
.v3-icard__ico svg {
    width: 100%; height: 100%;
    stroke: currentColor; fill: none;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.v3-icard h3 { font-size: 1.05rem; font-weight: 800; color: var(--white); line-height: 1.25; }
.v3-icard p {
    margin-top: 8px;
    font-size: 0.8rem; line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    max-width: 34ch;
}
.v3-icard__go {
    margin-top: auto;
    padding-top: 18px;
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.64rem; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--cerulean-light);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.v3-icard__go svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .v3-icard__go svg { transform: scaleX(-1); }
.v3-icard:hover .v3-icard__go { opacity: 1; transform: none; }
@media (max-width: 980px) { .v3-sol__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v3-sol__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   TESTIMONIAL
   -------------------------------------------------------------------------- */
.v3-proof { background: var(--white); }
.v3-proof__band {
    background: var(--icefield);
    border-radius: var(--v3-r-lg);
    padding: clamp(36px, 5vw, 64px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.v3-proof__band .v3-dots { inset-inline-start: 34px; top: 30px; }
.v3-proof__band .v3-dots.d2 { inset-inline-start: auto; inset-inline-end: 34px; top: auto; bottom: 30px; }
.v3-proof__stars { color: var(--cerulean); letter-spacing: 4px; font-size: 0.95rem; }
.v3-proof__q {
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    font-weight: 600;
    line-height: 1.6;
    color: var(--indigo);
    max-width: 62ch;
    margin: 22px auto 0;
}
.v3-proof__who { margin-top: 24px; }
.v3-proof__who b { display: block; font-size: 0.86rem; font-weight: 800; color: var(--cerulean); }
.v3-proof__who span {
    font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--silver-dark);
}

/* --------------------------------------------------------------------------
   RESULTS
   -------------------------------------------------------------------------- */
.v3-results { background: var(--white); padding-top: 0; }
.v3-results__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px;
}
.v3-rcard {
    border: 1.5px solid var(--ice);
    border-radius: var(--v3-r);
    padding: 26px 24px;
    background: var(--white);
    transition: border-color 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out),
                transform 0.3s var(--ease-out);
}
.v3-rcard:hover { border-color: var(--cerulean); box-shadow: var(--v3-shadow); transform: translateY(-5px); }
.v3-rcard .tag {
    font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cerulean);
}
.v3-rcard b {
    display: block;
    margin-top: 14px;
    font-size: 2.5rem; font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--raven);
    font-variant-numeric: tabular-nums;
}
.v3-rcard b i { font-style: normal; font-size: 0.55em; color: var(--cerulean); }
.v3-rcard > span {
    display: block;
    font-size: 0.64rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--silver-dark);
    margin-top: 2px;
}
.v3-rcard p { margin-top: 14px; font-size: 0.8rem; line-height: 1.6; color: var(--raven); }
@media (max-width: 980px) { .v3-results__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v3-results__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA BANNER — CSS midnight scene
   -------------------------------------------------------------------------- */
.v3-banner { position: relative; overflow: hidden; background: var(--v3-navy); }
.v3-banner::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(127, 185, 225, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 185, 225, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}
.v3-banner::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(560px 380px at 18% 110%, rgba(51, 116, 186, 0.3), transparent 70%),
        radial-gradient(560px 380px at 85% -10%, rgba(31, 92, 153, 0.35), transparent 70%);
    pointer-events: none;
}
.v3-banner__in {
    position: relative; z-index: 2;
    text-align: center;
    padding-block: clamp(72px, 10vw, 130px);
}
.v3-banner__title {
    font-size: clamp(1.9rem, 4.4vw, 3.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--white);
    line-height: 1.05;
    text-wrap: balance;
}
.v3-banner__title .a { color: var(--cerulean-light); }
.v3-banner__meta { display: flex; justify-content: center; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.v3-banner__meta span {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
.v3-banner__meta svg {
    width: 15px; height: 15px;
    stroke: var(--cerulean-light); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.v3-banner .v3-btn { margin-top: 34px; }

/* --------------------------------------------------------------------------
   DIRECTIONAL ENTRANCES — elements arrive from sides / top / corners.
   Directions are assigned automatically by js/home-v3.js via [data-v3fx];
   the trigger is the existing .is-in from interactions.js.
   -------------------------------------------------------------------------- */
[data-reveal][data-v3fx] {
    opacity: 0;
    transition: opacity 0.85s var(--v3-fx-ease),
                transform 0.95s var(--v3-fx-ease);
    transition-delay: calc(var(--reveal-i, 0) * 110ms);
    will-change: opacity, transform;
}
[data-reveal][data-v3fx="up"]        { transform: translate3d(0, 100px, 0); }
[data-reveal][data-v3fx="down"]      { transform: translate3d(0, -80px, 0); }
[data-reveal][data-v3fx="left"]      { transform: translate3d(-130px, 0, 0); }
[data-reveal][data-v3fx="right"]     { transform: translate3d(130px, 0, 0); }
[data-reveal][data-v3fx="corner-l"]  { transform: translate3d(-100px, 90px, 0) rotate(-3deg); }
[data-reveal][data-v3fx="corner-r"]  { transform: translate3d(100px, 90px, 0) rotate(3deg); }
[data-reveal][data-v3fx="zoom"]      { transform: translate3d(0, 70px, 0) scale(0.9); }
[data-reveal][data-v3fx].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   CONSULTATION MODAL (injected by js/home-v3.js)
   -------------------------------------------------------------------------- */
body.v3-lock { overflow: hidden; }
.v3-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
}
.v3-modal::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(6, 24, 47, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.v3-modal.open { opacity: 1; pointer-events: auto; }
.v3-modal__panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(92vh, 720px);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6);
    transform: translateY(36px) scale(0.96);
    transition: transform 0.45s var(--v3-fx-ease);
}
.v3-modal.open .v3-modal__panel { transform: none; }

/* left — midnight statement side */
.v3-modal__side {
    position: relative;
    background: var(--midnight);
    color: var(--white);
    padding: clamp(28px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.v3-modal__side::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(127, 185, 225, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 185, 225, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}
.v3-modal__side::after {
    content: "";
    position: absolute;
    inset-inline-end: -80px; bottom: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(51, 116, 186, 0.4), transparent 70%);
    pointer-events: none;
}
.v3-modal__side > * { position: relative; z-index: 1; }
.v3-modal__eyebrow {
    font-size: 0.66rem; font-weight: 800;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--cerulean-light);
    margin-bottom: 14px;
}
.v3-modal__title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.v3-modal__title .a { color: var(--cerulean-light); }
.v3-modal__note {
    margin-top: 14px;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}
.v3-modal__rows { margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(127, 185, 225, 0.22); }
.v3-modal__row { display: flex; align-items: baseline; gap: 14px; padding-block: 9px; }
.v3-modal__row .k {
    flex: 0 0 74px;
    font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}
.v3-modal__row .v { font-size: 0.9rem; font-weight: 700; color: var(--white); }

/* right — form side */
.v3-modal__form {
    position: relative;
    background: var(--white);
    padding: clamp(28px, 4vw, 44px);
    overflow-y: auto;
}
.v3-modal__close {
    position: absolute;
    top: 18px; inset-inline-end: 18px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--ice);
    background: var(--white);
    color: var(--silver-dark);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    z-index: 2;
}
.v3-modal__close:hover { border-color: var(--cerulean); color: var(--cerulean); transform: rotate(90deg); }
.v3-modal__close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.v3-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v3-field { display: flex; flex-direction: column; gap: 7px; }
.v3-field--full { grid-column: 1 / -1; }
.v3-field label {
    font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--silver-dark);
}
.v3-field input,
.v3-field select,
.v3-field textarea {
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--raven);
    background: var(--icefield);
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 13px 16px;
    width: 100%;
    transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}
.v3-field textarea { min-height: 96px; resize: vertical; }
.v3-field input:focus,
.v3-field select:focus,
.v3-field textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--cerulean);
    box-shadow: 0 0 0 4px rgba(51, 116, 186, 0.14);
}
.v3-field select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-inline-end: 42px;
}
[dir="rtl"] .v3-field select { background-position: left 14px center; }
.v3-modal__form .v3-btn { width: 100%; justify-content: center; margin-top: 18px; }
.v3-modal__success { text-align: center; padding: clamp(28px, 5vw, 56px) 8px; }
.v3-modal__success .ok {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ice);
    color: var(--cerulean);
    display: flex; align-items: center; justify-content: center;
}
.v3-modal__success .ok svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.v3-modal__success h3 { font-size: 1.25rem; font-weight: 900; color: var(--raven); text-transform: uppercase; }
.v3-modal__success p { margin-top: 10px; font-size: 0.9rem; line-height: 1.65; color: var(--silver-dark); max-width: 36ch; margin-inline: auto; }
@media (max-width: 760px) {
    .v3-modal { padding: 12px; }
    .v3-modal__panel { grid-template-columns: 1fr; max-height: 94vh; }
    .v3-modal__side { display: none; }
    .v3-modal__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Motion hooks
   -------------------------------------------------------------------------- */
.v3-progress {
    position: fixed;
    top: 0; inset-inline-start: 0;
    width: 100%; height: 3px;
    background: var(--cerulean);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 200;
    pointer-events: none;
}
[dir="rtl"] .v3-progress { transform-origin: right center; }
.v3-drift { will-change: transform; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    [data-reveal][data-v3fx] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .v3-btn, .v3-pcard, .v3-icard, .v3-rcard { transition: none !important; }
    .v3-btn:hover, .v3-pcard:hover, .v3-icard:hover, .v3-rcard:hover { transform: none !important; }
    .v3-badge .dot { animation: none !important; }
    .v3-marquee__track { animation: none !important; }
    .v3-mosaic i { animation: none !important; opacity: var(--o, 1) !important; }
    .v3-progress, .v3-hero__glow { display: none !important; }
    .v3-modal, .v3-modal__panel, .v3-modal__close { transition: none !important; }
}

/* ==========================================================================
   v3.4.1 — glass header over the hero + true full-viewport hero
   Homepage only (this file isn't loaded elsewhere). Uses the .is-scrolled
   class that js/site.js already toggles — no JS changes needed.
   ========================================================================== */

/* Header: translucent glass while at the top, solid midnight on scroll */
.site-header {
    background: rgba(6, 24, 47, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.35s var(--ease-out),
                box-shadow 0.35s var(--ease-out);
}
.site-header.is-scrolled {
    background: var(--midnight);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Hero: pulled up behind the sticky header so the video starts at the very
   top edge of the viewport, and sized to EXACTLY one viewport — nothing
   under the fold. */
.v3-hero {
    margin-top: calc(-1 * var(--header-h));
    min-height: 100vh;
    min-height: 100svh;
}
.v3-hero__in {
    padding-top: calc(var(--header-h) + clamp(40px, 6vh, 80px));
    padding-bottom: clamp(64px, 9vh, 96px);
}
/* elements that anchor to the hero's top edge clear the floating header */
.v3-badge { top: calc(var(--header-h) + 24px); }
.v3-hero__corner--a { top: calc(var(--header-h) + 12px); }
@media (max-width: 768px) {
    .v3-badge { top: calc(var(--header-h) + 10px); }
}

/* Guarantee the hero fits one viewport on short desktop screens:
   cap the display sizes by viewport height as well as width */
@media (min-width: 769px) {
    .v3-hero__title { font-size: min(clamp(2.1rem, 5vw, 4.2rem), 9.5vh); }
    .v3-hero__proof b,
    .v3-hero__proof b .count { font-size: min(clamp(2.9rem, 6.2vw, 4.8rem), 9vh); }
}
@media (min-width: 769px) and (max-height: 780px) {
    .v3-hero__lead { margin-top: 14px; }
    .v3-hero__cta { margin-top: 20px; }
    .v3-hero__proof { margin-top: clamp(28px, 5vh, 48px); padding-top: 20px; }
}

/* Scroll cue — the fold is intentional, so invite the scroll */
.v3-hero__scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    background: rgba(6, 24, 47, 0.25);
    backdrop-filter: blur(4px);
    animation: v3-cue 2.2s ease-in-out infinite;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.v3-hero__scroll:hover { background: var(--cerulean); border-color: var(--cerulean); }
.v3-hero__scroll svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes v3-cue {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
    .v3-hero__scroll { animation: none !important; }
    .site-header { transition: none !important; }
}

/* ==========================================================================
   v3.4.2 — Tejoury chip: linked logo card (→ https://tejoury.com)
   ========================================================================== */
a.v3-chip {
    display: block;
    text-decoration: none;
    transition: transform 0.25s var(--ease-out),
                background 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out);
}
a.v3-chip:hover {
    background: var(--deep-sky);
    transform: translateY(-4px);
    box-shadow: 0 22px 56px -18px rgba(11, 36, 69, 0.45);
}
.v3-chip img {
    display: block;
    height: 34px;
    width: auto;
    margin-bottom: 8px;
}
.v3-chip span { display: block; color: var(--white); }
@media (prefers-reduced-motion: reduce) {
    a.v3-chip { transition: none !important; }
    a.v3-chip:hover { transform: none !important; }
}

/* --------------------------------------------------------------------------
   Footer social — LinkedIn (sits between the copyright and the language
   toggle; margin pushes it to the toggle side)
   -------------------------------------------------------------------------- */
.v3-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    margin-inline-start: auto;
    transition: background 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out),
                color 0.25s var(--ease-out),
                transform 0.25s var(--ease-out);
}
.v3-social:hover {
    background: var(--cerulean);
    border-color: var(--cerulean);
    color: var(--white);
    transform: translateY(-2px);
}
.v3-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) {
    .v3-social { transition: none !important; }
    .v3-social:hover { transform: none !important; }
}
