/* ==========================================================================
   Al-Hadatha IT — Geometric Modernity
   Intersection of planes: violet × amber × magenta on ivory and void.
   ========================================================================== */

:root {
    --void: #07060b;
    --void-2: #100e16;
    --ink: #14111a;
    --paper: #f3eee4;
    --paper-2: #e7dfd1;
    --paper-3: #d9cebb;
    --violet: #7a3ad1;
    --violet-deep: #4a1b96;
    --amber: #f59e1a;
    --ember: #e04516;
    --magenta: #c02678;
    --heading: #120f18;
    --body: #4c463d;
    --muted: #6f675c;
    --on-dark: #d8d0c4;
    --line: rgba(18, 15, 24, 0.12);
    --line-dark: rgba(243, 238, 228, 0.12);
    --amber-glow: rgba(245, 158, 26, 0.28);
    --violet-glow: rgba(122, 58, 209, 0.35);
    --whatsapp: #25d366;
    --font-display: "Tajawal", sans-serif;
    --font-body: "Cairo", sans-serif;
    --container: 1220px;
    --gutter: clamp(1.1rem, 3vw, 2rem);
    --header-h: 84px;
    --hero-h: min(100svh, 920px);
    --chamfer: polygon(
        14px 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        14px 100%,
        0 calc(100% - 14px),
        0 14px
    );
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--heading);
    line-height: 1.25;
    font-weight: 800;
}

.container {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Grain + architectural grid overlay */
body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(243, 238, 228, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 238, 228, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.35rem;
    font-weight: 700;
    font-size: 0.95rem;
    clip-path: var(--chamfer);
    border: 0;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px) translateX(-2px);
}

.btn:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 4px;
}

.btn-primary {
    background: var(--amber);
    color: var(--void);
}

.btn-primary:hover {
    background: #ffb03a;
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    box-shadow: inset 0 0 0 1.5px rgba(243, 238, 228, 0.45);
}

.btn-ghost:hover {
    background: rgba(243, 238, 228, 0.08);
}

.btn-void {
    background: var(--void);
    color: var(--paper);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #06210e;
}

.btn-whatsapp:hover {
    background: #3be07a;
}

/* ==========================================================================
   Top bar + Header
   ========================================================================== */
.topbar {
    background: var(--void);
    color: var(--on-dark);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--line-dark);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    min-height: 38px;
}

.topbar a:hover {
    color: var(--amber);
}

.topbar-meta,
.topbar-socials {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.topbar-meta span,
.topbar-meta a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-socials a {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    clip-path: var(--chamfer);
    background: rgba(243, 238, 228, 0.06);
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(7, 6, 11, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header.is-sticky {
    background: rgba(7, 6, 11, 0.96);
    border-bottom-color: rgba(245, 158, 26, 0.35);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 0.15rem;
}

.nav-link {
    position: relative;
    display: block;
    padding: 0.55rem 0.85rem;
    color: var(--paper);
    font-weight: 700;
    font-size: 0.92rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0.85rem;
    left: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.lang-toggle {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    min-width: 48px;
    height: 42px;
    padding: 0 0.85rem;
    border: 1px solid rgba(243, 238, 228, 0.55);
    background: rgba(243, 238, 228, 0.12);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    -webkit-clip-path: var(--chamfer);
    clip-path: var(--chamfer);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--void);
    outline: none;
}

.lang-toggle:active {
    background: var(--amber);
    color: var(--void);
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.header-phone small {
    color: #c4baae;
    font-size: 0.7rem;
}

.header-phone a {
    color: var(--paper);
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    background: transparent;
    border: 0;
    clip-path: var(--chamfer);
    box-shadow: inset 0 0 0 1px rgba(243, 238, 228, 0.35);
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--paper);
    margin: 5px auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    background: var(--void);
    color: var(--paper);
    height: var(--hero-h);
    min-height: var(--hero-h);
    max-height: var(--hero-h);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    overflow: hidden;
}

.hero-slider,
.hero-dim,
.grid-veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.08) saturate(1.05);
}

.hero-dim {
    background:
        linear-gradient(270deg, rgba(7, 6, 11, 0.15) 0%, rgba(7, 6, 11, 0.82) 52%, rgba(7, 6, 11, 0.94) 100%),
        linear-gradient(0deg, rgba(7, 6, 11, 0.55), transparent 40%);
}

.hero-layout {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
    padding: 5.5rem 0 11rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--amber);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.hero-kicker i {
    width: 36px;
    height: 2px;
    background: var(--amber);
    display: inline-block;
}

.hero h1 {
    color: var(--paper);
    font-size: clamp(2.1rem, 4.6vw, 4.1rem);
    font-weight: 900;
    max-width: 16ch;
    min-height: 2.6em;
    margin-bottom: 1.2rem;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--amber), var(--magenta) 55%, #c9a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 44ch;
    color: var(--on-dark);
    font-size: 1.05rem;
    min-height: 5.4em;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 3.2rem;
}

.hero-mark {
    position: relative;
    align-self: stretch;
    display: grid;
    place-items: center;
}

.hero-word {
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 10vw, 9.5rem);
    font-weight: 900;
    line-height: 0.85;
    writing-mode: horizontal-tb;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(245, 158, 26, 0.38);
    letter-spacing: -0.06em;
    user-select: none;
    transform: rotate(-6deg);
}

.hero-nav {
    position: absolute;
    z-index: 4;
    left: var(--gutter);
    bottom: 15%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-nav button {
    width: 46px;
    height: 46px;
    background: transparent;
    border: 0;
    color: var(--paper);
    clip-path: var(--chamfer);
    box-shadow: inset 0 0 0 1px rgba(243, 238, 228, 0.35);
    cursor: pointer;
}

.hero-nav button:hover {
    background: var(--amber);
    color: var(--void);
}

.slider-dots {
    display: flex;
    gap: 0.45rem;
    margin-inline: 0.5rem;
}

.slider-dot {
    width: 28px;
    height: 4px;
    background: rgba(243, 238, 228, 0.25);
    border: 0;
    cursor: pointer;
}

.slider-dot.active {
    background: var(--amber);
}

.reg-chip {
    position: absolute;
    z-index: 4;
    right: var(--gutter);
    bottom: 15.5%;
    color: var(--on-dark);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-chip strong {
    color: var(--amber);
    font-family: var(--font-display);
}

/* ==========================================================================
   Section primitives
   ========================================================================== */
.section,
footer[id] {
    scroll-margin-top: calc(var(--header-h) + 10px);
}

.section {
    position: relative;
    padding: 6.2rem 0;
}

.section-head {
    margin-bottom: 2.6rem;
    display: grid;
    gap: 0.8rem;
}

.section-head.center {
    text-align: center;
    justify-items: center;
}

.index-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--violet);
}

.index-kicker b {
    color: var(--ember);
    font-weight: 900;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    max-width: 22ch;
}

.section-head h2 span {
    color: var(--violet);
}

.section-head.center h2 {
    max-width: 24ch;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
    background: var(--paper);
}

.service-switch {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.service-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.service-tab {
    text-align: right;
    background: transparent;
    border: 0;
    color: var(--heading);
    padding: 0.95rem 1rem;
    clip-path: var(--chamfer);
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: 0.3s var(--ease);
}

.service-tab small {
    font-family: var(--font-display);
    color: var(--ember);
    font-weight: 800;
}

.service-tab.active,
.service-tab:hover {
    background: var(--void);
    color: var(--paper);
    box-shadow: none;
}

.service-panel {
    display: none;
    background: #fff;
    clip-path: var(--chamfer);
    min-height: 390px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(18, 15, 24, 0.08);
}

.service-panel.active {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.service-copy {
    padding: 2.1rem 2rem 2.2rem;
}

.service-copy .chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--ember);
    margin-bottom: 0.7rem;
}

.service-copy h3 {
    font-size: 1.55rem;
    margin-bottom: 0.8rem;
}

.service-copy p {
    margin-bottom: 1rem;
}

.service-copy .btn {
    margin-top: 1.1rem;
}

.checks li {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.checks i {
    color: var(--violet);
    margin-top: 0.35rem;
}

.service-media {
    position: relative;
    min-height: 240px;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-media span {
    position: absolute;
    bottom: 1.1rem;
    right: 1.1rem;
    background: var(--amber);
    color: var(--void);
    padding: 0.4rem 0.75rem;
    font-weight: 800;
    font-size: 0.78rem;
    clip-path: var(--chamfer);
}

.solutions {
    margin-top: 3.4rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1.8rem;
    align-items: center;
}

.solutions-intro p {
    margin: 1rem 0 1.4rem;
    max-width: 38ch;
}

.sol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.sol-card {
    background: var(--void);
    color: var(--paper);
    padding: 1.25rem 1.15rem 1.3rem;
    clip-path: var(--chamfer);
    min-height: 128px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease);
}

.sol-card:hover {
    transform: translate(-3px, -3px);
}

.sol-card::before {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 140px;
    height: 140px;
    background: conic-gradient(from 180deg, var(--amber), var(--magenta), var(--violet), var(--amber));
    opacity: 0.2;
    transform: rotate(18deg);
}

.sol-card i {
    color: var(--amber);
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
}

.sol-card h3 {
    color: var(--paper);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.sol-card p {
    color: var(--on-dark);
    font-size: 0.88rem;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio {
    background: var(--void);
    color: var(--on-dark);
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    padding-top: 7.5rem;
}

.portfolio .section-head h2,
.portfolio .section-head h2 span {
    color: var(--paper);
}

.portfolio .index-kicker {
    color: var(--amber);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.filter-tab {
    background: transparent;
    color: var(--on-dark);
    border: 0;
    padding: 0.55rem 0.9rem;
    clip-path: var(--chamfer);
    box-shadow: inset 0 0 0 1px var(--line-dark);
    cursor: pointer;
    font-weight: 700;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--amber);
    color: var(--void);
    box-shadow: none;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-card-item.hide {
    display: none;
}

.project-card {
    background: var(--void-2);
    clip-path: var(--chamfer);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.project-card:hover img {
    transform: scale(1.06) rotate(-0.6deg);
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 11, 0.8));
}

.project-badge {
    position: absolute;
    z-index: 1;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--amber);
    color: var(--void);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.28rem 0.55rem;
    clip-path: var(--chamfer);
}

.project-info {
    padding: 1rem 1.05rem 1.15rem;
    display: grid;
    gap: 0.35rem;
}

.project-cat {
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 700;
}

.project-title {
    font-size: 1.02rem;
    color: var(--paper);
}

.portfolio-cta {
    margin-top: 2.2rem;
    text-align: center;
}

/* ==========================================================================
   About cluster
   ========================================================================== */
.about {
    background: var(--paper);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
    align-items: center;
}

.about-visuals {
    position: relative;
    min-height: 520px;
}

.shot {
    position: absolute;
    overflow: hidden;
    clip-path: var(--chamfer);
    box-shadow: 24px 28px 0 rgba(18, 15, 24, 0.08);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shot-a {
    width: 68%;
    height: 360px;
    top: 0;
    right: 0;
}

.shot-b {
    width: 48%;
    height: 280px;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.stamp {
    position: absolute;
    z-index: 3;
    top: 46%;
    left: 38%;
    background: var(--void);
    color: var(--amber);
    padding: 0.85rem 1rem;
    clip-path: var(--chamfer);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.about-copy .lead {
    font-size: 1.12rem;
    color: var(--heading);
    margin: 0.9rem 0 0.7rem;
}

.quote {
    margin: 1.3rem 0 1.6rem;
    padding: 1.1rem 1.15rem;
    background: #fff;
    clip-path: var(--chamfer);
    border-inline-start: 4px solid var(--amber);
}

.quote p {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--heading);
}

.why {
    margin-top: 5.2rem;
    background: var(--void);
    color: var(--on-dark);
    clip-path: var(--chamfer);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.why-copy {
    padding: 2.4rem 2.1rem;
}

.why-copy h2 {
    color: var(--paper);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    margin: 0.6rem 0 1rem;
}

.why-copy .index-kicker {
    color: var(--amber);
}

.why-list li {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
    color: var(--paper);
}

.why-list i {
    color: var(--amber);
    margin-top: 0.3rem;
}

.cert {
    margin-top: 1.3rem;
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--amber);
    font-weight: 800;
}

.why-media {
    position: relative;
    min-height: 360px;
}

.why-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.counters {
    display: none; /* أظهر لاحقاً: display: grid */
    margin-top: 1.4rem;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    clip-path: var(--chamfer);
}

.counter-item {
    padding: 1.5rem 1.2rem;
    border-inline-start: 1px solid var(--line);
}

.counter-item:first-child {
    border-inline-start: 0;
}

.counter-number-group {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--violet);
    line-height: 1;
}

.counter-plus {
    color: var(--ember);
}

.counter-title {
    margin-top: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.clients {
    margin-top: 4.6rem;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.client-card {
    background: #fff;
    clip-path: var(--chamfer);
    padding: 1.2rem 1.1rem 1.25rem;
    min-height: 180px;
}

.client-logo-wrap {
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 0.8rem;
}

.client-logo-wrap img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.client-name {
    font-size: 1rem;
}

.client-link {
    display: block;
    color: var(--violet);
    font-size: 0.82rem;
    margin: 0.2rem 0 0.55rem;
}

.client-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ember);
}

.logo-marquee {
    margin-top: 1.5rem;
    overflow: hidden;
    direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.logo-track img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ==========================================================================
   Insights
   ========================================================================== */
.insights {
    background: var(--paper-2);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.insight {
    background: #fff;
    clip-path: var(--chamfer);
    overflow: hidden;
}

.insight img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.insight-body {
    padding: 1.1rem 1.15rem 1.25rem;
}

.insight-body small {
    color: var(--ember);
    font-weight: 800;
}

.insight-body h3 {
    font-size: 1.08rem;
    margin: 0.4rem 0 0.55rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.cta-band {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.cta-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, rgba(7, 6, 11, 0.88), rgba(7, 6, 11, 0.45));
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 3rem;
}

.index-kicker.light {
    color: var(--amber);
}

.cta-band h2 {
    color: var(--paper);
    max-width: 22ch;
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

.map-embed {
    height: 320px;
    filter: grayscale(0.35) contrast(1.05);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer {
    background: var(--void);
    color: var(--on-dark);
    padding: 3.4rem 0 1.3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.7fr 1.15fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-dark);
}

.footer-logo img {
    height: 56px;
    margin-bottom: 0.9rem;
}

.footer h3 {
    color: var(--paper);
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}

.footer-links a,
.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-links li,
.contact-list li {
    margin-bottom: 0.45rem;
}

.footer a:hover {
    color: var(--amber);
}

.form {
    display: grid;
    gap: 0.55rem;
}

.form input,
.form textarea {
    width: 100%;
    background: var(--void-2);
    border: 0;
    color: var(--paper);
    padding: 0.75rem 0.85rem;
    clip-path: var(--chamfer);
    box-shadow: inset 0 0 0 1px var(--line-dark);
}

.form textarea {
    min-height: 92px;
    resize: vertical;
}

.form button {
    justify-self: start;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.1rem;
    font-size: 0.82rem;
}

/* ==========================================================================
   Overlays + floats
   ========================================================================== */
.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    visibility: hidden;
}

.offcanvas.active {
    pointer-events: auto;
    visibility: visible;
}

.offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 11, 0.55);
    opacity: 0;
    transition: opacity 0.3s;
}

.offcanvas.active .offcanvas-backdrop {
    opacity: 1;
}

.offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 92vw);
    background: var(--void);
    color: var(--paper);
    padding: 1.2rem 1.3rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow: auto;
}

.offcanvas.active .offcanvas-panel {
    transform: none;
}

.offcanvas-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}

.offcanvas-head img {
    height: 46px;
}

.offcanvas-head button,
.to-top,
.wa-fab {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--paper);
    clip-path: var(--chamfer);
    box-shadow: inset 0 0 0 1px var(--line-dark);
    cursor: pointer;
}

.offcanvas-nav a {
    display: block;
    padding: 0.7rem 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line-dark);
}

.offcanvas-nav a:hover {
    color: var(--amber);
}

.offcanvas-lang {
    margin-top: 1.25rem;
    width: 100%;
    max-width: 160px;
    height: 48px;
    font-size: 1rem;
    background: rgba(245, 158, 26, 0.18);
    border-color: rgba(245, 158, 26, 0.75);
    color: var(--amber);
}

.to-top,
.wa-fab {
    position: fixed;
    z-index: 60;
    display: grid;
    place-items: center;
    left: 1.1rem;
}

.wa-fab {
    bottom: 1.2rem;
    background: var(--whatsapp);
    color: #06210e;
    box-shadow: none;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
}

.to-top {
    bottom: 5.1rem;
    opacity: 0;
    pointer-events: none;
    background: var(--void);
}

.to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .nav-list,
    .header-phone {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .header-tools {
        gap: 0.55rem;
    }

    .lang-toggle {
        min-width: 52px;
        height: 44px;
        font-size: 0.95rem;
        background: rgba(245, 158, 26, 0.18);
        border-color: rgba(245, 158, 26, 0.75);
        color: var(--amber);
    }

    .service-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-layout,
    .service-switch,
    .service-panel.active,
    .solutions,
    .about-grid,
    .why,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-mark {
        display: none;
    }

    .project-grid,
    .client-grid,
    .insight-grid,
    .counters {
        grid-template-columns: 1fr 1fr;
    }

    .shot-a {
        height: 280px;
    }

    .about-visuals {
        min-height: 440px;
    }
}

@media (max-width: 760px) {
    .topbar {
        display: none;
    }

    .hero {
        clip-path: none;
        --hero-h: 100svh;
        height: var(--hero-h);
        min-height: var(--hero-h);
        max-height: var(--hero-h);
    }

    .hero-layout {
        height: 100%;
        min-height: 0;
        padding: 3.4rem 0 6.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-nav,
    .reg-chip {
        position: absolute;
        margin: 0;
    }

    .hero-nav {
        left: var(--gutter);
        bottom: 1.4rem;
        width: auto;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .reg-chip {
        right: var(--gutter);
        bottom: 1.5rem;
        max-width: calc(100% - 9rem);
    }

    .project-grid,
    .client-grid,
    .insight-grid,
    .counters,
    .sol-grid {
        grid-template-columns: 1fr;
    }

    .service-tabs {
        grid-template-columns: 1fr;
    }

    .counter-item {
        border-inline-start: 0;
        border-top: 1px solid var(--line);
    }

    .cta-band-inner,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-visuals {
        min-height: 360px;
    }

    .shot-a,
    .shot-b {
        position: relative;
        width: 86%;
        height: 220px;
        top: auto;
        left: auto;
        right: auto;
        margin-bottom: 0.8rem;
    }

    .stamp {
        position: relative;
        left: auto;
        top: auto;
        display: inline-flex;
    }

    .portfolio {
        clip-path: none;
        padding-top: 4.4rem;
    }

    .section {
        padding: 4.2rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .logo-track { animation: none; }
    .hero-slide,
    .btn,
    .project-thumb img { transition: none; }
}

/* English / LTR adjustments */
html[dir="ltr"] .hero-dim {
    background:
        linear-gradient(90deg, rgba(7, 6, 11, 0.15) 0%, rgba(7, 6, 11, 0.82) 52%, rgba(7, 6, 11, 0.94) 100%),
        linear-gradient(0deg, rgba(7, 6, 11, 0.55), transparent 40%);
}

html[dir="ltr"] .hero-nav {
    left: auto;
    right: var(--gutter);
}

html[dir="ltr"] .reg-chip {
    right: auto;
    left: var(--gutter);
}

html[dir="ltr"] .nav-link::after {
    transform-origin: left;
}

html[dir="ltr"] .footer-links a i,
html[dir="ltr"] .fa-angle-left {
    transform: scaleX(-1);
}

html[dir="ltr"] .wa-fab,
html[dir="ltr"] .to-top {
    left: auto;
    right: 1.1rem;
}

html[dir="ltr"] .offcanvas-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

html[dir="ltr"] .offcanvas.active .offcanvas-panel {
    transform: none;
}

html[dir="ltr"] .hero-word {
    transform: rotate(6deg);
}

html[dir="ltr"] .service-tab {
    text-align: left;
}

@media (max-width: 760px) {
    html[dir="ltr"] .hero-nav {
        left: auto;
        right: var(--gutter);
    }

    html[dir="ltr"] .reg-chip {
        right: auto;
        left: var(--gutter);
    }
}
