/* ============================================================
   Hamsa Media & Digital - shared design system
   ============================================================ */

@font-face {
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url('/assets/fonts/frank-ruhl-libre-hebrew.woff2') format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url('/assets/fonts/frank-ruhl-libre-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Assistant';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/assistant-hebrew.woff2') format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
    font-family: 'Assistant';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/assistant-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

:root {
    --ink: #16213f;
    --ink-2: #1a2b5c;
    --brand: #1d3480;
    --brand-deep: #152864;
    --accent: #2148c0;
    --accent-soft: #eef3fc;
    --gold: #c9861f;
    --gold-deep: #a06a15;
    --gold-soft: #fdf5e9;
    --muted: #44547a;
    --line: #d7e0f2;
    --paper: #f7f9fd;
    --card: #ffffff;
    --navy-1: #101d45;
    --navy-2: #1a2b5c;
    --shadow-sm: 0 1px 2px rgba(16, 29, 69, 0.05), 0 8px 24px rgba(27, 63, 160, 0.09);
    --shadow-md: 0 2px 4px rgba(16, 29, 69, 0.06), 0 18px 44px rgba(27, 63, 160, 0.14);
    --shadow-lg: 0 4px 8px rgba(16, 29, 69, 0.08), 0 30px 70px rgba(16, 29, 69, 0.22);
    --radius: 18px;
    --radius-lg: 26px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    font-synthesis: none;
}

@media (min-width: 1920px) { :root { font-size: 17.5px; } }
@media (min-width: 2560px) { :root { font-size: 20px; } }
@media (min-width: 3440px) { :root { font-size: 24px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
    font-family: 'Assistant', 'Heebo', 'Segoe UI', 'Arial Hebrew', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

/* Brand backdrop: the azulejo artwork frames every viewport, veiled for readability */
body.textured::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('/assets/bg.jpg') center / cover no-repeat;
}
@supports (background-image: image-set(url('/assets/bg.webp') type('image/webp'))) {
    body.textured::before {
        background-image: image-set(
            url('/assets/bg.webp') type('image/webp'),
            url('/assets/bg.jpg') type('image/jpeg')
        );
    }
}
body.textured::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 70% 80% at 50% 44%,
        rgba(247, 249, 253, 0.96),
        rgba(247, 249, 253, 0.62) 74%,
        rgba(247, 249, 253, 0.3));
}

::selection { background: var(--accent-soft); color: var(--brand-deep); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }

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

/* ---- Reveals (JS gates via html.js) ---- */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .reveal-solid { opacity: 1; transition: transform 0.65s var(--ease); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    padding: 0.8rem 1.9rem;
    transition: background-color 0.2s ease-out, color 0.2s ease-out,
                transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: translate 0.2s ease-out; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(27, 63, 160, 0.24); }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 26px rgba(201, 134, 31, 0.28); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-whatsapp { background: #1faa53; color: #fff; box-shadow: 0 10px 26px rgba(31, 170, 83, 0.28); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 10px 26px rgba(6, 12, 34, 0.3); }
@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .btn:hover svg { translate: -3px 0; }
    .btn-primary:hover { background: var(--brand-deep); }
    .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
    .btn-gold:hover { background: var(--gold-deep); }
    .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }
    .btn-whatsapp:hover { background: #17913f; }
    .btn-white:hover { background: var(--accent-soft); }
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.65; cursor: progress; transform: none; }

/* ---- Section scaffolding ---- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-block: 1px solid rgba(215, 224, 242, 0.8);
}
.section-head { text-align: center; max-width: 44rem; margin-inline: auto; margin-block-end: clamp(2rem, 4.5vw, 3.4rem); }
.section-title {
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.25;
    color: var(--ink-2);
}
.section-title .tick { color: var(--accent); }
.section-sub { color: var(--muted); margin-block-start: 0.6rem; }
.section-orn {
    display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    color: var(--accent); opacity: 0.8; margin-block-start: 0.8rem;
}
.section-orn::before, .section-orn::after {
    content: ''; width: 3.5rem; height: 1px; background: currentColor; opacity: 0.5;
}
.section-orn svg { width: 11px; height: 11px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(247, 249, 253, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(16, 29, 69, 0.07); }
.nav-bar { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.65rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { width: 52px; height: 52px; }
.nav-logo b {
    font-family: 'Frank Ruhl Libre', serif; font-weight: 700; letter-spacing: 0.04em;
    font-size: 1.05rem; color: var(--ink-2); line-height: 1.15;
}
.nav-logo b small { display: block; font-family: 'Assistant', sans-serif; font-weight: 400; font-size: 0.62rem; letter-spacing: 0.28em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.1rem; margin-inline-start: auto; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); position: relative; padding-block: 0.3rem; }
.nav-links a:not(.nav-cta)::after {
    content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
    background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: center;
    transition: transform 0.25s var(--ease);
}
@media (hover: hover) { .nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); } }
.nav-links a.active { color: var(--accent); }
.nav-links a.active:not(.nav-cta)::after { transform: scaleX(1); }
.nav-cta { margin-inline-start: 0.4rem; padding: 0.65rem 1.4rem; font-size: 0.92rem; }
.nav-cta svg { width: 17px; height: 17px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; color: var(--ink-2); }
.nav-burger svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 1080px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 0.6rem 1.4rem 1.2rem;
        max-height: calc(100dvh - 4.65rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding-block: 0.8rem; border-bottom: 1px solid var(--accent-soft); font-size: 1.05rem; }
    .nav-links a::after { display: none; }
    .nav-cta { margin: 0.9rem 0 0; }
    .nav-burger { display: inline-flex; margin-inline-start: auto; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.6rem, 4vw, 3.5rem);
    align-items: center;
}
.hero h1 {
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
    font-weight: 900;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.2;
    color: var(--ink-2);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 33rem; margin-block-start: 1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block-start: 1.6rem; }
.hero-trust {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding-block: 0.85rem;
    margin-block-start: 1.7rem;
}
.hero-trust span {
    display: flex; flex-direction: column; align-items: center;
    padding-inline: clamp(1.1rem, 2.4vw, 2rem);
    color: var(--muted); font-size: 0.85rem; font-weight: 600; line-height: 1.35;
}
.hero-trust span + span { border-inline-start: 1px solid var(--line); }
.hero-trust span b {
    font-family: 'Frank Ruhl Libre', serif;
    color: var(--brand); font-size: 1.3rem; font-weight: 800;
}

/* Device composition: real screenshots inside crisp CSS device frames */
.hero-visual { position: relative; min-height: clamp(300px, 34vw, 440px); }
.dev-browser {
    position: absolute; inset-inline-end: 0; top: 3%;
    width: min(88%, 500px);
    border-radius: 14px; overflow: hidden;
    background: #0f1c44;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-lg);
    transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
}
.dev-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #16244f; }
.dev-bar i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dev-bar i:nth-child(1) { background: #ff5f57; }
.dev-bar i:nth-child(2) { background: #febc2e; }
.dev-bar i:nth-child(3) { background: #28c840; }
.dev-url {
    margin-inline: auto; direction: ltr; font-size: 0.72rem; letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.1);
    border-radius: 6px; padding: 2px 16px;
}
.dev-browser img { width: 100%; height: auto; display: block; }
.dev-phone {
    position: absolute; inset-inline-start: 1%; bottom: 0;
    width: clamp(122px, 12vw, 158px);
    border-radius: 26px; background: #0f1c44; padding: 7px;
    box-shadow: var(--shadow-lg);
    animation: hv-float 7s ease-in-out infinite;
    z-index: 2;
}
.dev-phone .dev-notch {
    position: absolute; top: 13px; left: 50%; translate: -50% 0;
    width: 34%; height: 6px; border-radius: 3px; background: #0f1c44; z-index: 2;
}
.dev-app { border-radius: 20px; background: linear-gradient(170deg, #ffffff, #eef3fc); padding: 20px 13px 14px; overflow: hidden; }
.da-head { display: flex; align-items: center; gap: 7px; margin-block-end: 12px; }
.da-logo {
    width: 20px; height: 20px; flex: none; background: var(--brand);
    -webkit-mask: url('/assets/logo.png') center / contain no-repeat;
            mask: url('/assets/logo.png') center / contain no-repeat;
}
.da-head i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.da-kpi {
    display: block; font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.45rem; font-weight: 800; color: var(--brand); line-height: 1.1;
    direction: ltr; text-align: start;
}
.hv-chip b { direction: ltr; }
.da-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.da-bars { display: flex; gap: 6px; align-items: flex-end; height: 60px; margin-block-start: 12px; }
.da-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--accent); opacity: 0.55; }
.da-bars i:nth-child(even) { opacity: 0.85; }
.da-bars i.au { opacity: 1; background: var(--gold); }
.hv-chip {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 0.55rem;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px; box-shadow: var(--shadow-md);
    padding: 0.6rem 0.95rem; font-size: 0.8rem; font-weight: 600; color: var(--muted);
    animation: hv-float 8s ease-in-out infinite;
}
.hv-chip b { display: block; font-family: 'Frank Ruhl Libre', serif; font-size: 1.1rem; color: var(--brand); line-height: 1.1; }
.hv-chip svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.hv-chip.c1 { top: -4%; inset-inline-start: 14%; animation-delay: 1.2s; }
.hv-chip.c2 { bottom: 12%; inset-inline-end: -2%; animation-delay: 2.2s; }
@media (max-width: 480px) { .hv-chip.c2 { display: none; } }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-ctas, .hero-trust { justify-content: center; }
    .hero-visual { min-height: 320px; width: min(100%, 30rem); margin-inline: auto; }
}

/* ============================================================
   Services icon strip
   ============================================================ */
.strip {
    border-block: 1px solid rgba(215, 224, 242, 0.8);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.strip-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(7.2rem, 1fr);
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 1.1rem;
}
.strip-track::-webkit-scrollbar { display: none; }
/* Wide screens: two balanced rows of six, no hidden overflow */
@media (min-width: 1081px) {
    .strip-track {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.1rem 0;
    }
    .strip-item { flex: 1 0 16.6%; }
}
.strip-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    color: var(--ink-2); font-size: 0.82rem; font-weight: 600; text-align: center;
    padding-inline: 0.6rem;
}
.strip-item svg { width: 26px; height: 26px; color: var(--brand); }

/* ============================================================
   Divisions
   ============================================================ */
.divisions { position: relative; }
.div-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: stretch;
}
.div-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    display: flex; flex-direction: column; gap: 1rem;
}
.div-card header { display: flex; align-items: center; gap: 0.8rem; }
.div-badge {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none;
}
.div-badge svg { width: 27px; height: 27px; }
.div-card h2 { font-family: 'Frank Ruhl Libre', serif; font-size: 1.45rem; font-weight: 800; }
.div-card p.tag { color: var(--muted); font-size: 0.95rem; margin-block-start: 0.1rem; }
.div-card ul { display: grid; gap: 0.55rem; }
.div-card ul li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--ink-2); font-size: 0.98rem; }
.div-card ul li svg { width: 17px; height: 17px; flex: none; }
.div-body { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.div-visual img {
    width: clamp(118px, 11vw, 165px);
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--tint);
}
@media (max-width: 480px) { .div-visual { display: none; } }
.div-card .btn { margin-block-start: auto; align-self: flex-start; }
.div-digital .div-badge { background: var(--accent-soft); color: var(--brand); }
.div-digital h2 { color: var(--brand); }
.div-digital ul li svg { color: var(--accent); }
.div-media .div-badge { background: var(--gold-soft); color: var(--gold); }
.div-media h2 { color: var(--gold-deep); }
.div-media ul li svg { color: var(--gold); }
.div-emblem {
    align-self: center;
    width: clamp(90px, 9vw, 130px); height: clamp(90px, 9vw, 130px);
    border-radius: 50%; background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: grid; place-items: center;
}
.div-emblem img { width: 68%; height: auto; }
@media (max-width: 900px) {
    .div-grid { grid-template-columns: 1fr; }
    .div-emblem { display: none; }
}

/* ============================================================
   Services grid
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.svc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.15rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease-out;
}
@media (hover: hover) {
    .svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c3d2f2; }
}
.svc { text-align: start; }
.svc .ic {
    width: 52px; height: 52px; border-radius: 15px;
    background: var(--accent-soft); color: var(--brand);
    display: grid; place-items: center; margin-block-end: 0.75rem;
}
.svc .ic svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); }
.svc p { font-size: 0.87rem; color: var(--muted); line-height: 1.5; margin-block-start: 0.3rem; }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .svc { padding: 1rem 0.8rem; }
    .svc p { font-size: 0.83rem; }
}

/* ============================================================
   Why us
   ============================================================ */
.why {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-block: 1px solid rgba(215, 224, 242, 0.8);
}
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.why-point {
    display: flex; align-items: center; gap: 0.7rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.85rem 1rem; font-weight: 700; color: var(--ink-2); font-size: 0.95rem;
}
.why-point svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.stat {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    text-align: center; padding: 1.1rem 0.5rem;
}
.stat b { display: block; font-family: 'Frank Ruhl Libre', serif; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--accent); line-height: 1.15; }
.stat span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Projects
   ============================================================ */
.projects-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(230px, 23vw, 300px);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Headroom so the hover lift is not clipped by the scroll box */
    padding: 0.6rem 0.5rem 0.8rem;
    margin: -0.6rem -0.5rem 0;
    scroll-padding-inline: 0.5rem;
    scrollbar-width: none;
}
.projects-track::-webkit-scrollbar { display: none; }
.project {
    display: block;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
@media (hover: hover) {
    .project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
    .project:hover .art img { transform: scale(1.05); }
}
.project:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.project .art {
    height: 165px; position: relative; overflow: hidden;
    background: var(--tint);
}
.project .art img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    transition: transform 0.45s var(--ease);
}
.project .art .chip {
    position: absolute; top: 12px; inset-inline-start: 12px;
    background: rgba(16, 29, 69, 0.72); border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.75rem;
}
.project .meta { padding: 0.95rem 1.1rem 1.15rem; }
.project .meta h3 { font-size: 1.08rem; font-weight: 800; color: var(--ink-2); }
.project .meta p { font-size: 0.88rem; color: var(--muted); margin-block-start: 0.15rem; }
.projects-wrap { position: relative; }
.pnav {
    position: absolute; top: 42%; translate: 0 -50%; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; background: #fff;
    border: 1px solid var(--line); color: var(--brand); display: grid; place-items: center;
    box-shadow: var(--shadow-md); transition: background-color 0.2s, color 0.2s;
}
.pnav-prev { inset-inline-start: -0.6rem; }
.pnav-next { inset-inline-end: -0.6rem; }
@media (hover: hover) { .pnav:hover { background: var(--brand); color: #fff; } }
.pnav svg { width: 18px; height: 18px; }
.pnav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.no-js .pnav { display: none; }
@media (max-width: 720px) { .pnav { display: none; } }
.projects-more { text-align: center; margin-block-start: 1.3rem; }

/* ============================================================
   Process
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.9rem;
    counter-reset: step;
}
.step { text-align: center; position: relative; padding-inline: 0.3rem; }
.step .dot {
    width: 58px; height: 58px; margin-inline: auto; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent);
    display: grid; place-items: center;
    font-family: 'Frank Ruhl Libre', serif; font-weight: 800; font-size: 1.35rem; color: var(--accent);
    box-shadow: var(--shadow-sm);
    position: relative; z-index: 1;
}
.step::before {
    content: ''; position: absolute; top: 29px; inset-inline-start: -50%;
    width: 100%; height: 2px; background: var(--line);
}
.step:first-child::before { display: none; }
.step h3 { font-size: 0.98rem; font-weight: 800; color: var(--ink-2); margin-block-start: 0.7rem; }
.step p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; margin-block-start: 0.25rem; }
@media (max-width: 980px) {
    .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
    .step:nth-child(4)::before { display: none; }
}
@media (max-width: 560px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .step::before { display: none; }
}

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about-text p { color: var(--muted); margin-block-start: 0.8rem; }
.about-text .sign { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; color: var(--brand); margin-block-start: 1rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-block-start: 1.4rem; }
.about-panel {
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 90% 70% at 30% 20%, rgba(60, 96, 200, 0.35), transparent 70%),
        linear-gradient(160deg, var(--navy-2), var(--navy-1));
    min-height: 320px;
    display: grid; place-items: center;
    box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.about-panel::after {
    content: ''; position: absolute; inset: 0;
    background-image: url('/assets/bg.jpg'); background-size: cover; background-position: left bottom;
    opacity: 0.1; mix-blend-mode: luminosity;
}
.about-panel .logo-light {
    width: 46%; aspect-ratio: 1; position: relative; z-index: 1;
    background: #e9effc;
    -webkit-mask: url('/assets/logo.png') center / contain no-repeat;
            mask: url('/assets/logo.png') center / contain no-repeat;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-panel { min-height: 240px; } }

/* ============================================================
   Testimonials
   ============================================================ */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 0.9rem;
}
.quote .mark { color: var(--gold); font-family: 'Frank Ruhl Libre', serif; font-size: 2.4rem; line-height: 0.6; }
.quote p { color: var(--ink-2); font-size: 0.97rem; }
.quote footer { display: flex; align-items: center; gap: 0.7rem; margin-block-start: auto; }
.quote footer .avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1rem;
}
.quote footer b { display: block; font-size: 0.95rem; color: var(--ink-2); }
.quote footer span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 900px) { .quotes-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
    background:
        radial-gradient(ellipse 80% 100% at 85% 0%, rgba(60, 96, 200, 0.4), transparent 65%),
        linear-gradient(150deg, var(--navy-2), var(--navy-1));
    color: #fff;
    position: relative; overflow: hidden;
}
.cta-band .logo-light {
    position: absolute; inset-inline-start: 4%; top: 50%; translate: 0 -50%;
    width: 150px; aspect-ratio: 1; opacity: 0.16;
    background: #fff;
    -webkit-mask: url('/assets/logo.png') center / contain no-repeat;
            mask: url('/assets/logo.png') center / contain no-repeat;
}
.cta-inner { position: relative; text-align: center; max-width: 44rem; margin-inline: auto; }
.cta-inner h2 { font-family: 'Frank Ruhl Libre', serif; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-inner p { color: #c6d2ef; margin-block-start: 0.6rem; }
.cta-inner .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-block-start: 1.5rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-info { display: grid; gap: 0.9rem; align-content: start; }
.contact-info .row { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-2); font-weight: 600; }
.contact-info .row svg { width: 21px; height: 21px; color: var(--brand); flex: none; }
.contact-form {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: clamp(1.3rem, 3vw, 2rem);
}
.contact-form .fields { display: grid; gap: 0.8rem; }
.cfield { position: relative; }
.cfield svg {
    position: absolute; right: 1.05rem; top: 50%; translate: 0 -50%;
    width: 19px; height: 19px; color: var(--muted); opacity: 0.75; pointer-events: none;
}
.cfield input {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
    padding: 0.85rem 2.75rem 0.85rem 1.25rem;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
/* LTR content, stable right anchor: only direction flips, alignment never jumps */
.cfield input.ltr-input { direction: ltr; text-align: right; }
.cfield input.ltr-input:placeholder-shown { direction: rtl; }
.cfield input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33, 72, 192, 0.15); }
.cfield input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form .btn { width: 100%; margin-block-start: 0.9rem; }
.form-status { display: block; min-height: 1.7em; font-weight: 600; margin-block-start: 0.6rem; text-align: center; }
.form-status.good, .form-status.bad { display: block; padding: 0.5rem 1.2rem; border-radius: 14px; }
.form-status.good { color: #14532d; background: #ecfdf3; border: 1px solid #bbe7c9; }
.form-status.bad { color: #7f1d1d; background: #fef2f2; border: 1px solid #f1c8c8; }
.contact-note {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-size: 0.83rem; color: var(--muted); font-weight: 300; margin-block-start: 0.7rem;
}
.contact-note svg { width: 14px; height: 14px; color: var(--brand); opacity: 0.85; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: start; }
.faq-col { display: grid; gap: 0.9rem; }
details.faq {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
details.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.7rem;
    font-weight: 700; color: var(--ink-2); padding: 1rem 1.2rem; font-size: 0.99rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev {
    margin-inline-start: auto; width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--accent-soft); color: var(--brand); display: grid; place-items: center;
    transition: transform 0.3s var(--ease);
}
details.faq summary .chev svg { width: 14px; height: 14px; }
details.faq[open] summary .chev { transform: rotate(180deg); }
details.faq .ans { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: linear-gradient(165deg, var(--navy-2), var(--navy-1));
    color: #c6d2ef;
    padding-block: clamp(2.5rem, 5vw, 4rem) 1.4rem;
    font-size: 0.93rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand .logo-light {
    width: 84px; aspect-ratio: 1; background: #e9effc;
    -webkit-mask: url('/assets/logo.png') center / contain no-repeat;
            mask: url('/assets/logo.png') center / contain no-repeat;
    margin-block-end: 0.8rem;
}
.footer-brand p { max-width: 17rem; }
.site-footer h3 { color: #fff; font-size: 1.02rem; font-weight: 700; margin-block-end: 0.9rem; }
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer ul a { transition: color 0.2s; }
@media (hover: hover) { .site-footer ul a:hover { color: #fff; } }
.footer-contact li { display: flex; align-items: center; gap: 0.6rem; }
.footer-contact svg { width: 17px; height: 17px; flex: none; color: #7f9ce0; }
.footer-social { display: flex; gap: 0.6rem; margin-block-start: 1rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background-color 0.2s;
}
@media (hover: hover) { .footer-social a:hover { background: rgba(255, 255, 255, 0.2); } }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-block-start: 2rem; padding-block-start: 1.2rem;
    text-align: center; font-size: 0.85rem; color: #8fa3d4;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Login page
   ============================================================ */
.login-body {
    min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center;
    background: #eef1f8;
    padding: clamp(0.8rem, 3vw, 2.5rem);
}
.login-shell {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    width: min(100%, 66rem); min-height: min(82svh, 46rem);
    border-radius: 24px; overflow: hidden;
    background: #fff; box-shadow: var(--shadow-lg);
}
.login-brand {
    position: relative;
    background:
        radial-gradient(ellipse 90% 60% at 25% 15%, rgba(60, 96, 200, 0.4), transparent 70%),
        linear-gradient(160deg, var(--navy-2) 10%, var(--navy-1));
    color: #c6d2ef;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2.5rem 2rem;
    overflow: hidden;
}
.login-brand::after {
    content: ''; position: absolute; inset: 0;
    background-image: url('/assets/bg.jpg'); background-size: cover; background-position: left bottom;
    opacity: 0.08; mix-blend-mode: luminosity;
}
.login-brand .logo-light {
    width: clamp(150px, 16vw, 210px); aspect-ratio: 1; position: relative; z-index: 1;
    background: #e9effc;
    -webkit-mask: url('/assets/logo.png') center / contain no-repeat;
            mask: url('/assets/logo.png') center / contain no-repeat;
}
.login-brand .secure {
    position: absolute; bottom: 1.6rem; inset-inline-start: 1.8rem;
    display: flex; align-items: center; gap: 0.6rem; font-size: 0.83rem; z-index: 1;
}
.login-brand .secure svg { width: 20px; height: 20px; flex: none; color: #7f9ce0; }
.login-pane { padding: clamp(1.6rem, 4vw, 3.2rem); display: flex; flex-direction: column; }
.login-lang {
    align-self: flex-start; display: flex; align-items: center; gap: 0.4rem;
    color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.login-lang svg { width: 17px; height: 17px; }
.login-inner { margin: auto; width: min(100%, 26rem); }
.login-inner h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; color: var(--ink-2); }
.login-inner .sub { color: var(--muted); margin-block-start: 0.3rem; margin-block-end: 1.6rem; }
.login-inner label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink-2); margin-block-end: 0.35rem; }
.lfield { position: relative; margin-block-end: 1.05rem; }
.lfield svg {
    position: absolute; left: 0.95rem; top: 50%; translate: 0 -50%;
    width: 18px; height: 18px; color: var(--muted); opacity: 0.7; pointer-events: none;
}
.lfield input {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 0.75rem 1rem; padding-left: 2.7rem;
    direction: ltr; text-align: left;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.lfield input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33, 72, 192, 0.15); }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-block-end: 1.2rem; }
.login-remember { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.login-remember input { width: 18px; height: 18px; accent-color: var(--brand); }
.login-forgot { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
@media (hover: hover) { .login-forgot:hover { text-decoration: underline; } }
.login-btn {
    width: 100%; border-radius: 12px; background: var(--navy-2); color: #fff;
    font-weight: 700; font-size: 1.02rem; padding: 0.85rem;
    transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}
@media (hover: hover) { .login-btn:hover { background: var(--navy-1); transform: translateY(-1px); } }
.login-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.login-btn[aria-disabled="true"] { opacity: 0.65; cursor: progress; }
.login-or {
    display: flex; align-items: center; gap: 0.9rem; color: var(--muted); font-size: 0.88rem;
    margin-block: 1.2rem;
}
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-alt {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    color: var(--ink-2); font-weight: 700; padding: 0.8rem;
    transition: border-color 0.2s, background-color 0.2s;
}
@media (hover: hover) { .login-alt:hover { border-color: var(--accent); background: var(--accent-soft); } }
.login-alt svg { width: 19px; height: 19px; color: var(--brand); }
.login-foot { text-align: center; font-size: 0.92rem; color: var(--muted); margin-block-start: 1.5rem; }
.login-foot b { color: var(--ink-2); }
.login-status { min-height: 1.5em; text-align: center; font-weight: 600; font-size: 0.92rem; margin-block-start: 0.8rem; }
.login-status.bad { color: #a02121; }
.login-status.good { color: #14532d; }
@media (max-width: 860px) {
    .login-shell { grid-template-columns: 1fr; min-height: 0; }
    .login-brand { min-height: 200px; padding: 1.8rem; }
    .login-brand .logo-light { width: 120px; }
    .login-brand .secure { position: static; margin-block-start: 1rem; }
}

/* ============================================================
   Hero v3 (design refresh) + header refinements
   ============================================================ */
.nav-links a:not(.nav-cta) { color: var(--brand); }
.nav-links a.nav-cta { color: #fff; }
.nav-sep::before { content: '\2726'; font-size: 9px; color: #9fb4e4; }
.nav-logo img { width: 46px; height: 46px; }
.nav-logo b { font-size: 1.35rem; letter-spacing: 0.1em; }
.nav-logo b small {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.56rem; letter-spacing: 0.5em; color: var(--brand);
    margin-block-start: 2px;
}
.nav-logo b small::before,
.nav-logo b small::after {
    content: ''; width: 15px; height: 1px; background: #a9bce6; flex: none;
}
@media (max-width: 1080px) { .nav-sep { display: none; } }

.hero { padding-block: 0.9rem 0; }
.hero-panel {
    width: min(100% - 1.8rem, 86rem);
    margin-inline: auto;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: clamp(1.6rem, 4vw, 3.4rem) clamp(1.2rem, 3.5vw, 3.4rem) clamp(1.3rem, 2.5vw, 2.2rem);
    overflow: hidden;
}
.hero-grid { grid-template-columns: 1.02fr 0.98fr; }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.4rem); line-height: 1.14; color: #14224a; }
.hero h1 .hl { color: var(--accent); display: inline-flex; align-items: center; gap: 0.7rem; }
.hero h1 .spark { width: 0.42em; height: 0.42em; flex: none; opacity: 0.9; }
.hero-sub { font-size: 1.14rem; max-width: 32rem; margin-block-start: 1.2rem; }
.btn-hero {
    background: linear-gradient(168deg, #3a69e2, #1d3480 78%);
    color: #fff;
    padding: 0.95rem 2.4rem;
    font-size: 1.05rem;
    box-shadow: 0 14px 32px rgba(29, 52, 128, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
@media (hover: hover) { .btn-hero:hover { filter: brightness(1.09); } }
.hero-ctas { margin-block-start: 1.7rem; }
.hero-ctas .btn-outline { padding: 0.95rem 2.1rem; font-size: 1.02rem; }
.hero-visual { min-height: 0; display: grid; place-items: center; }
.hero-visual img { width: 100%; max-width: 680px; height: auto; animation: hv-float 8s ease-in-out infinite; }
.hero-strip {
    display: flex;
    margin-block-start: clamp(0.5rem, 1.6vw, 1rem);
    max-width: 46rem;
    margin-inline-end: auto;
}
.hero-strip .hs {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    padding: 0.4rem 0.7rem; font-size: 0.88rem; font-weight: 700; color: var(--ink-2);
    text-align: center;
}
.hero-strip .hs svg { width: 30px; height: 30px; color: var(--brand); }
.hero-strip .hs + .hs { border-inline-start: 1px solid var(--line); }
@media (max-width: 900px) {
    .hero-strip { max-width: none; flex-wrap: wrap; gap: 0.6rem 0; }
    .hero-strip .hs { flex: 1 1 32%; }
    .hero-strip .hs + .hs { border-inline-start: none; }
}

/* Divisions v2: icon medallions facing the emblem */
.div-card { flex-direction: row; align-items: center; gap: clamp(1rem, 2.5vw, 1.8rem); border-radius: 28px; }
.div-card .div-text h2 { color: var(--ink-2); font-size: 1.55rem; }
.div-card .div-text p { color: var(--muted); margin-block: 0.45rem 0.9rem; max-width: 24rem; }
.div-more { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--accent); }
.div-more svg { width: 15px; height: 15px; transition: translate 0.2s ease-out; }
.div-more-gold { color: var(--gold-deep); }
@media (hover: hover) {
    .div-more:hover { text-decoration: underline; }
    .div-more:hover svg { translate: -3px 0; }
}
.div-icon {
    width: clamp(84px, 8vw, 104px); height: clamp(84px, 8vw, 104px); flex: none;
    border-radius: 50%; background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--brand);
}
.div-media .div-icon { color: var(--gold-deep); }
.div-icon svg { width: 46%; height: 46%; }
@media (max-width: 860px) {
    .div-card, .div-card.div-media { flex-direction: column; text-align: center; }
    .div-card.div-digital { flex-direction: column-reverse; }
    .div-card .div-text { display: flex; flex-direction: column; align-items: center; }
}

/* ---- Motion safety ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { transition: none; opacity: 1; transform: none; }
    .hv-phone, .hv-chip { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
