/* ==========================================================================
   NSS — Naouchi Stainless Steel / NSS Instaserv
   Light "futuristic engineering" theme. All classes are prefixed `nss-` /
   `site-nav` so they do not collide with the Mobius utility classes.
   Layout is written with logical properties only: the page follows its own
   direction (Arabic RTL, English LTR) and never a physical screen edge.
   ========================================================================== */

:root {
    /* surfaces */
    --nss-bg: #F7F9FC;
    --nss-white: #FFFFFF;
    --nss-ice: #EAF2FA;
    --nss-ice-2: #F1F7FC;

    /* ink */
    --nss-ink: #0A1A2A;
    --nss-text: #33465A;
    --nss-steel: #5A6B7C;
    --nss-steel-2: #4A5B6C;
    --nss-faint: #64717F;

    /* lines */
    --nss-line: #DCE6F2;
    --nss-line-2: #C9D8E8;
    --nss-grid: #E3ECF5;

    /* one accent, one technical detail colour */
    --nss-blue: #0A6BFF;
    --nss-blue-ink: #0A56C8;
    --nss-blue-soft: rgba(10, 107, 255, .10);
    --nss-cyan: #00A3C4;
    --nss-accent: var(--nss-blue);
    --nss-accent-soft: var(--nss-blue-soft);

    /* glass + shadow */
    --nss-glass: rgba(255, 255, 255, .72);
    --nss-shadow-sm: 0 6px 20px rgba(10, 26, 42, .05);
    --nss-shadow: 0 20px 60px rgba(10, 26, 42, .07);
    --nss-shadow-lg: 0 30px 80px rgba(10, 26, 42, .12);
    --nss-radius: 2px;

    --nss-max: 1240px;
    --nss-font-ar: 'Almarai', 'Segoe UI', Tahoma, Arial, sans-serif;
    --nss-font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --nss-font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nss-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html body {
    margin: 0;
    min-height: 100%;
    background-color: var(--nss-bg);
    color: var(--nss-text);
    font-family: var(--nss-font-en);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body {
    font-family: var(--nss-font-ar);
    line-height: 1.85;
}

/* Flow direction follows the page language, never a physical screen edge:
   Arabic pages flow right-to-left, English pages left-to-right. Declared on the
   root and on the body so no reset can leave a page flowing against its text. */

html[lang="ar"] {
    direction: rtl;
}

html[lang="en"] {
    direction: ltr;
}

html[lang="ar"] body {
    direction: rtl;
}

html[lang="en"] body {
    direction: ltr;
}

html body {
    text-align: start;
}

/* the main regions carry the direction themselves, so no wrapper above them
   can flip the flow of the page */

html[lang="ar"] .nss-page,
html[lang="ar"] .nss-nav-inner,
html[lang="ar"] .nss-mobile,
html[lang="ar"] .nss-footer {
    direction: rtl;
}

html[lang="en"] .nss-page,
html[lang="en"] .nss-nav-inner,
html[lang="en"] .nss-mobile,
html[lang="en"] .nss-footer {
    direction: ltr;
}

/* every text block on the page starts on the inline-start side, so no Arabic
   block can begin at the left edge and no English block at the right one */

.nss-page h1,
.nss-page h2,
.nss-page h3,
.nss-page h4,
.nss-page p,
.nss-page li,
.nss-page label,
.nss-page td,
.nss-page th,
.nss-page a,
.nss-footer p,
.nss-footer h4,
.nss-footer a,
.nss-nav-inner,
.nss-mobile-inner {
    text-align: start;
}

img,
svg {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

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

button {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--nss-blue);
    outline-offset: 3px;
}

/* --------------------------------------------------------------- primitives */

.nss-wrap {
    width: 100%;
    max-width: var(--nss-max);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 44px);
}

.nss-section {
    padding-block: clamp(54px, 7vw, 110px);
}

.nss-section--tight {
    padding-block: clamp(34px, 4.5vw, 62px);
}

.nss-hair {
    height: 1px;
    background: var(--nss-line);
    border: 0;
    margin: 0;
}

.nss-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

.nss-eyebrow::before {
    content: "";
    display: block;
    width: 26px;
    height: 1px;
    background: linear-gradient(to right, var(--nss-blue), var(--nss-cyan));
    opacity: .9;
}

html[lang="ar"] .nss-eyebrow {
    letter-spacing: .04em;
    font-family: var(--nss-font-ar);
    font-size: 12.5px;
    font-weight: 700;
}

.nss-h1 {
    color: var(--nss-ink);
    font-family: var(--nss-font-display);
    font-size: clamp(31px, 4.5vw, 58px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -.03em;
}

html[lang="ar"] .nss-h1 {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    line-height: 1.32;
    font-weight: 800;
}

.nss-h2 {
    color: var(--nss-ink);
    font-family: var(--nss-font-display);
    font-size: clamp(23px, 2.8vw, 38px);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -.025em;
}

html[lang="ar"] .nss-h2 {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    line-height: 1.4;
    font-weight: 800;
}

.nss-h3 {
    color: var(--nss-ink);
    font-family: var(--nss-font-display);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.01em;
}

html[lang="ar"] .nss-h3 {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    line-height: 1.5;
}

.nss-lead {
    color: var(--nss-steel);
    font-size: clamp(15px, 1.25vw, 17.5px);
    line-height: 1.85;
    max-width: 68ch;
}

.nss-label {
    display: block;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

html[lang="ar"] .nss-label {
    letter-spacing: .02em;
    font-family: var(--nss-font-ar);
    font-size: 12px;
}

.nss-section-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 40px;
    margin-bottom: clamp(26px, 3vw, 44px);
}

/* faint blueprint grid behind every section header */
.nss-section-head::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset-block: -28px -12px;
    inset-inline-start: -16px;
    width: min(520px, 94%);
    background-image:
        linear-gradient(to right, var(--nss-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--nss-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(130% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, .35) 52%, transparent 78%);
    mask-image: radial-gradient(130% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, .35) 52%, transparent 78%);
    pointer-events: none;
}

.nss-section-head > * {
    position: relative;
    z-index: 1;
}

.nss-section-head .nss-lead {
    margin-top: 14px;
}

/* one thin blue -> cyan hairline under every section title */
.nss-section-head .nss-h2::after,
.nss-cta .nss-h2::after,
.nss-pagehead .nss-h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin-top: 16px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--nss-blue), var(--nss-cyan));
}

html[dir="rtl"] .nss-section-head .nss-h2::after,
html[dir="rtl"] .nss-cta .nss-h2::after,
html[dir="rtl"] .nss-pagehead .nss-h1::after {
    background: linear-gradient(to left, var(--nss-blue), var(--nss-cyan));
}

.nss-section-link {
    font-family: var(--nss-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nss-blue-ink);
    white-space: nowrap;
    border-bottom: 1px solid rgba(10, 107, 255, .38);
    padding-bottom: 3px;
}

.nss-section-link:hover {
    color: var(--nss-blue);
    border-bottom-color: var(--nss-blue);
}

html[lang="ar"] .nss-section-link {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    font-size: 13.5px;
}

/* ------------------------------------------------------------------ buttons */

.nss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--nss-radius);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    text-align: center;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

html[lang="en"] .nss-btn {
    font-family: var(--nss-font-display);
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nss-btn-primary {
    background: var(--nss-blue);
    border-color: var(--nss-blue);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(10, 107, 255, .22);
}

.nss-btn-primary:hover {
    background: #0057D8;
    border-color: #0057D8;
    color: #FFFFFF;
    box-shadow: 0 14px 30px rgba(10, 107, 255, .28);
}

.nss-btn-ghost {
    background: #FFFFFF;
    border-color: rgba(10, 107, 255, .40);
    color: var(--nss-blue-ink);
}

.nss-btn-ghost:hover {
    background: var(--nss-ice-2);
    border-color: var(--nss-blue);
    color: var(--nss-blue);
}

.nss-btn-sm {
    padding: 11px 18px;
}

.nss-btn-block {
    width: 100%;
}

.nss-btn svg {
    flex: 0 0 auto;
}

.nss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --------------------------------------------------------------------- nav */

body nav.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: block;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid var(--nss-line);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.nss-nav-inner {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 32px);
    max-width: 1440px;
    margin-inline: auto;
    padding: 13px clamp(18px, 3.4vw, 40px);
}

.nss-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    flex: 0 0 auto;
    line-height: 1;
}

.nss-brand-mark {
    font-family: var(--nss-font-display);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: .085em;
    background: linear-gradient(180deg, #0A1A2A 0%, #123A63 52%, #0A6BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--nss-ink);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .nss-brand-mark {
        color: var(--nss-ink);
    }
}

.nss-brand-sub {
    font-family: var(--nss-mono);
    font-size: 8px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--nss-steel);
    white-space: nowrap;
}

.nss-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(13px, 1.7vw, 26px);
    margin-inline: auto;
}

.nss-nav-link {
    position: relative;
    display: inline-block;
    padding-block: 6px;
    font-size: 14px;
    color: var(--nss-steel);
    white-space: nowrap;
    transition: color .16s ease;
}

html[lang="ar"] .nss-nav-link {
    font-size: 15px;
}

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

.nss-nav-link.active::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--nss-blue), var(--nss-cyan));
}

.nss-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.nss-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nss-mono);
    font-size: 12px;
    letter-spacing: .1em;
}

.nss-lang-btn {
    background: none;
    border: 0;
    padding: 3px 1px;
    color: var(--nss-steel);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color .16s ease;
}

.nss-lang-btn:hover {
    color: var(--nss-ink);
}

.nss-lang-sep {
    color: #B9CBDE;
}

html[lang="ar"] .nss-lang-ar,
html[lang="en"] .nss-lang-en {
    color: var(--nss-blue-ink);
}

.nss-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 36px;
    padding: 0;
    background: none;
    border: 1px solid var(--nss-line-2);
    border-radius: var(--nss-radius);
    cursor: pointer;
}

.nss-burger span {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--nss-ink);
}

.nss-mobile {
    display: none;
    border-top: 1px solid var(--nss-line);
    background: #FFFFFF;
    box-shadow: var(--nss-shadow);
}

.nss-mobile-inner {
    padding: 12px clamp(18px, 4vw, 44px) 26px;
}

.nss-mobile-link {
    display: block;
    padding-block: 12px;
    border-bottom: 1px solid var(--nss-line);
    color: var(--nss-ink);
    font-size: 15.5px;
}

.nss-mobile-link.active {
    color: var(--nss-blue-ink);
}

.nss-mobile-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.nss-mobile-lang .nss-lang-btn {
    border: 1px solid var(--nss-line-2);
    padding: 7px 14px;
    border-radius: var(--nss-radius);
    background: #FFFFFF;
}

.nss-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.nss-mobile-contact {
    display: grid;
    gap: 2px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--nss-line);
    font-family: var(--nss-mono);
    font-size: 12.5px;
    color: var(--nss-steel);
}

.nss-mobile-contact a {
    display: block;
    padding-block: 4px;
    color: var(--nss-steel);
    word-break: break-word;
}

.nss-mobile-contact a:hover {
    color: var(--nss-blue);
}

/* -------------------------------------------------------------------- hero */

.nss-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--nss-line);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--nss-bg) 62%, var(--nss-bg) 100%);
}

/* faint blueprint grid behind the whole hero */
.nss-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(to right, var(--nss-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--nss-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 58%, transparent 100%);
    pointer-events: none;
}

/* the stainless-steel plant photo, kept high-key */
.nss-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.nss-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.82) brightness(1.08) contrast(.92);
}

/* phones: full-bleed photo under a white veil so the section reads white */
.nss-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .88) 48%, rgba(255, 255, 255, .97) 100%);
}

/* one faint line-drawn weld / pipe diagram behind the copy */
.nss-hero-diagram {
    position: absolute;
    z-index: 1;
    inset-inline-start: -8%;
    top: 50%;
    translate: 0 -50%;
    width: min(620px, 64vw);
    height: auto;
    color: var(--nss-blue);
    opacity: .16;
    pointer-events: none;
}

.nss-diagram-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: nss-spin 90s linear infinite;
}

.nss-hero-inner {
    position: relative;
    z-index: 2;
    padding-block: clamp(56px, 7vw, 104px);
}

/* the whole hero copy is one column, anchored to the inline-start half:
   right in Arabic, left in English */
.nss-hero-content {
    position: relative;
    width: 100%;
    max-width: 660px;
    text-align: start;
}

.nss-hero .nss-h1 {
    max-width: 24ch;
    margin-top: 20px;
    text-wrap: balance;
}

.nss-hero-lead {
    margin-top: 22px;
    max-width: 60ch;
    color: var(--nss-steel-2);
    font-size: clamp(15px, 1.3vw, 17.5px);
    line-height: 1.9;
}

.nss-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(26px, 3vw, 38px);
}

.nss-hero-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 30px;
    margin-top: clamp(34px, 4.5vw, 58px);
    padding-top: 18px;
    border-top: 1px solid var(--nss-line);
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

.nss-hero-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* short technical rule before each label */
.nss-hero-foot > span::before {
    content: "";
    display: block;
    width: 14px;
    height: 1px;
    background: linear-gradient(to right, var(--nss-blue), var(--nss-cyan));
}

@media (min-width: 901px) {
    .nss-hero-media {
        inset-block: clamp(20px, 2.4vw, 34px);
        inset-inline-start: auto;
        inset-inline-end: max(clamp(18px, 4vw, 44px), calc((100% - var(--nss-max)) / 2 + clamp(18px, 4vw, 44px)));
        width: min(44%, 500px);
        overflow: hidden;
        border: 1px solid var(--nss-line);
        border-radius: var(--nss-radius);
        box-shadow: var(--nss-shadow-lg);
    }

    .nss-hero-media::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, .10) 100%);
    }

    .nss-hero-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: min(74vh, 720px);
    }

    .nss-hero-content {
        width: 48%;
        align-self: flex-start;
    }

    .nss-hero-diagram {
        inset-inline-start: -4%;
        width: min(560px, 46vw);
        opacity: .14;
    }
}

/* ------------------------------------------------------------------- stats */

.nss-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: var(--nss-line);
    box-shadow: var(--nss-shadow);
    overflow: hidden;
}

.nss-stat {
    position: relative;
    padding: clamp(20px, 2.4vw, 32px);
    background: #FFFFFF;
}

.nss-stat-num {
    font-family: var(--nss-font-display);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.02;
    color: var(--nss-ink);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

html[lang="ar"] .nss-stat-num {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
}

.nss-stat-num--text {
    font-size: clamp(17px, 1.7vw, 22px);
    letter-spacing: .01em;
    line-height: 1.35;
}

.nss-stat-label {
    margin-top: 10px;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

html[lang="ar"] .nss-stat-label {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    font-size: 12.5px;
}

/* ------------------------------------------------------------------- cards */

.nss-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 18px);
}

.nss-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 236px;
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: var(--nss-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--nss-shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, translate .2s ease, background-color .2s ease;
}

.nss-card:hover {
    translate: 0 -3px;
    border-color: rgba(10, 107, 255, .34);
    background: #FFFFFF;
    box-shadow: var(--nss-shadow);
}

/* thin corner brackets, the technical detail of each key card */
.nss-card::before,
.nss-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: .55;
    pointer-events: none;
    transition: opacity .2s ease;
}

.nss-card::before {
    top: 10px;
    inset-inline-start: 10px;
    border-top: 1px solid var(--nss-blue);
    border-inline-start: 1px solid var(--nss-blue);
}

.nss-card::after {
    bottom: 10px;
    inset-inline-end: 10px;
    border-bottom: 1px solid var(--nss-cyan);
    border-inline-end: 1px solid var(--nss-cyan);
}

.nss-card:hover::before,
.nss-card:hover::after {
    opacity: 1;
}

.nss-card-num {
    font-family: var(--nss-mono);
    font-size: 11.5px;
    letter-spacing: .16em;
    color: var(--nss-blue-ink);
}

.nss-card-title {
    margin-top: 20px;
    color: var(--nss-ink);
    font-family: var(--nss-font-display);
    font-size: clamp(17px, 1.45vw, 19.5px);
    font-weight: 600;
    line-height: 1.35;
}

html[lang="ar"] .nss-card-title {
    font-family: var(--nss-font-ar);
    font-weight: 700;
    line-height: 1.5;
}

.nss-card-text {
    margin-top: 12px;
    color: var(--nss-steel);
    font-size: 14.5px;
    line-height: 1.8;
}

html[lang="ar"] .nss-card-text {
    font-size: 15px;
}

.nss-card-foot {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

html[lang="ar"] .nss-card-foot {
    font-family: var(--nss-font-ar);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.nss-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(10, 107, 255, .34);
    border-radius: 50%;
    color: var(--nss-blue-ink);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.nss-card-arrow svg {
    display: block;
    width: 15px;
    height: 15px;
}

.nss-card:hover .nss-card-arrow {
    background: var(--nss-blue);
    border-color: var(--nss-blue);
    color: #FFFFFF;
}

/* --------------------------------------------------------------- chips/sector */

.nss-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 14px);
}

.nss-chip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 20px clamp(18px, 2vw, 26px);
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: var(--nss-ice);
    transition: background-color .18s ease, border-color .18s ease, translate .2s ease;
}

.nss-chip:hover {
    translate: 0 -2px;
    background: #FFFFFF;
    border-color: rgba(10, 107, 255, .28);
}

.nss-chip-name {
    color: var(--nss-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

html[lang="ar"] .nss-chip-name {
    font-weight: 700;
}

.nss-chip-alt {
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

/* ------------------------------------------------------------- client marquee */

.nss-marquee {
    border-block: 1px solid var(--nss-line);
    background: #FFFFFF;
    padding-block: clamp(16px, 2vw, 22px);
}

.nss-marquee-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

.nss-marquee-head::after {
    content: "";
    flex: 0 0 auto;
    width: 24px;
    height: 1px;
    background: linear-gradient(to right, var(--nss-blue), var(--nss-cyan));
}

html[lang="ar"] .nss-marquee-head {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 700;
}

.nss-marquee-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.nss-marquee-track {
    display: flex;
    width: max-content;
    animation: nss-marquee 46s linear infinite;
}

html[dir="rtl"] .nss-marquee-track {
    animation-name: nss-marquee-rtl;
}

.nss-marquee:hover .nss-marquee-track {
    animation-play-state: paused;
}

.nss-marquee-group {
    display: flex;
    align-items: center;
    gap: clamp(26px, 4vw, 60px);
    padding-inline-end: clamp(26px, 4vw, 60px);
}

.nss-marquee-item {
    font-family: var(--nss-font-display);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    color: var(--nss-steel-2);
}

@keyframes nss-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes nss-marquee-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

@keyframes nss-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------ project cards */

.nss-projs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 18px);
}

.nss-proj {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: #FFFFFF;
    box-shadow: var(--nss-shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, translate .2s ease;
}

.nss-proj:hover {
    translate: 0 -3px;
    border-color: rgba(10, 107, 255, .34);
    box-shadow: var(--nss-shadow);
}

.nss-proj::before {
    content: "";
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--nss-blue);
    border-inline-end: 1px solid var(--nss-blue);
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s ease;
}

.nss-proj:hover::before {
    opacity: 1;
}

.nss-proj-user {
    color: var(--nss-ink);
    font-family: var(--nss-font-display);
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 600;
    line-height: 1.3;
}

html[lang="ar"] .nss-proj-user {
    font-family: var(--nss-font-ar);
    font-weight: 700;
    line-height: 1.45;
}

.nss-proj-scope {
    color: var(--nss-steel);
    font-size: 14.5px;
    line-height: 1.7;
}

.nss-proj-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--nss-line);
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    color: #43566A;
}

/* ---------------------------------------------------------------- page head */

.nss-pagehead {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--nss-line);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--nss-ice-2) 58%, var(--nss-bg) 100%);
}

.nss-pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(to right, var(--nss-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--nss-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 62%, transparent 100%);
    pointer-events: none;
}

.nss-pagehead-inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(48px, 6.5vw, 96px);
}

.nss-pagehead .nss-h1 {
    margin-top: 18px;
    max-width: 24ch;
}

.nss-pagehead .nss-lead {
    margin-top: 18px;
}

.nss-pagehead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin-top: 26px;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

.nss-pagehead-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nss-pagehead-meta > span::before {
    content: "";
    display: block;
    width: 12px;
    height: 1px;
    background: var(--nss-cyan);
}

/* ----------------------------------------------------------------- services */

.nss-svc-list {
    border-top: 1px solid var(--nss-line);
}

.nss-svc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(18px, 4vw, 64px);
    padding-block: clamp(28px, 3.6vw, 46px);
    border-bottom: 1px solid var(--nss-line);
}

.nss-svc-num {
    font-family: var(--nss-mono);
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--nss-blue-ink);
}

.nss-svc-title {
    margin-top: 12px;
    color: var(--nss-ink);
    font-family: var(--nss-font-display);
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
}

html[lang="ar"] .nss-svc-title {
    font-family: var(--nss-font-ar);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0;
}

.nss-svc-desc {
    margin-top: 12px;
    color: var(--nss-steel);
    font-size: 15px;
    line-height: 1.85;
    max-width: 56ch;
}

.nss-svc-body {
    padding-top: 4px;
}

.nss-scope {
    margin-top: 10px;
    white-space: pre-line;
    color: var(--nss-text);
    font-size: 14.5px;
    line-height: 2.05;
    padding-inline-start: 16px;
    border-inline-start: 1px solid rgba(10, 107, 255, .45);
}

.nss-mats-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    margin-top: 24px;
    padding: 22px clamp(18px, 3vw, 28px);
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: var(--nss-ice);
}

.nss-mats-value {
    color: var(--nss-text);
    font-size: 13.5px;
    line-height: 1.7;
}

/* ------------------------------------------------------------------- sectors */

.nss-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 18px);
}

.nss-sector {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: #FFFFFF;
    box-shadow: var(--nss-shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, translate .2s ease;
}

.nss-sector:hover {
    translate: 0 -3px;
    border-color: rgba(10, 107, 255, .3);
    box-shadow: var(--nss-shadow);
}

.nss-sector-name {
    color: var(--nss-ink);
    font-family: var(--nss-font-display);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 1.3;
}

html[lang="ar"] .nss-sector-name {
    font-family: var(--nss-font-ar);
    font-weight: 700;
    line-height: 1.45;
}

.nss-sector-alt {
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

.nss-sector-blurb {
    color: var(--nss-steel);
    font-size: 14.5px;
    line-height: 1.8;
}

.nss-refs {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--nss-line);
}

.nss-refs-text {
    margin-top: 8px;
    white-space: pre-line;
    color: var(--nss-text);
    font-size: 13px;
    line-height: 2;
}

/* -------------------------------------------------------------------- table */

.nss-tablewrap {
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: #FFFFFF;
    box-shadow: var(--nss-shadow-sm);
    overflow: hidden;
}

.nss-table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
}

.nss-table th {
    padding: 15px 20px;
    border-bottom: 1px solid var(--nss-line);
    background: var(--nss-ice-2);
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
    text-align: start;
    white-space: nowrap;
}

html[lang="ar"] .nss-table th {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    font-size: 12px;
}

.nss-table td {
    padding: 15px 20px;
    border-top: 1px solid var(--nss-line);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--nss-text);
    vertical-align: top;
}

.nss-table tbody tr:first-child td {
    border-top: 0;
}

.nss-table tbody tr:hover td {
    background: var(--nss-ice-2);
}

.nss-table td:first-child {
    color: var(--nss-ink);
    font-weight: 600;
}

.nss-table td:last-child {
    font-family: var(--nss-mono);
    font-size: 13px;
    color: var(--nss-ink);
    white-space: nowrap;
}

.nss-table-note {
    margin-top: 16px;
    font-family: var(--nss-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--nss-steel);
}

html[lang="ar"] .nss-table-note {
    font-family: var(--nss-font-ar);
    font-size: 13px;
}

/* ------------------------------------------------------------------ about */

.nss-profile {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
}

.nss-plate {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 380px;
    padding: clamp(22px, 2.6vw, 34px);
    overflow: hidden;
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: linear-gradient(155deg, #FFFFFF 0%, var(--nss-ice) 58%, #E2EDF9 100%);
    box-shadow: var(--nss-shadow);
}

.nss-plate::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, var(--nss-grid) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(90deg, var(--nss-grid) 0 1px, transparent 1px 46px);
    opacity: .9;
    pointer-events: none;
}

.nss-plate::after {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 163, 196, .16), rgba(0, 163, 196, 0) 68%);
    pointer-events: none;
}

.nss-plate-top,
.nss-plate-bottom {
    position: relative;
    z-index: 1;
}

.nss-plate-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.nss-plate-mark {
    font-family: var(--nss-font-display);
    font-size: clamp(56px, 9vw, 104px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    background: linear-gradient(180deg, #0A1A2A 0%, #2C4B68 46%, #8FA6BA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--nss-ink);
}

.nss-plate-tag {
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
    text-align: end;
    white-space: nowrap;
    line-height: 1.9;
}

.nss-plate-name {
    color: var(--nss-ink);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 700;
    line-height: 1.4;
}

.nss-plate-role {
    margin-top: 8px;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

html[lang="ar"] .nss-plate-role {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    font-size: 12.5px;
}

.nss-plate-loc {
    margin-top: 8px;
    color: var(--nss-steel);
    font-size: 13px;
}

.nss-bio p {
    color: var(--nss-steel);
    font-size: 15px;
    line-height: 1.95;
}

.nss-bio p + p {
    margin-top: 16px;
}

.nss-bio > p:first-of-type {
    margin-top: 16px;
}

.nss-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 34px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--nss-line);
}

.nss-fact-label {
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

html[lang="ar"] .nss-fact-label {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    font-size: 12px;
}

.nss-fact-value {
    margin-top: 4px;
    color: var(--nss-ink);
    font-size: 14.5px;
}

/* expertise grid: bordered cells so an odd item count leaves no empty gap */

.nss-exp {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: #FFFFFF;
    box-shadow: var(--nss-shadow-sm);
    overflow: hidden;
}

.nss-exp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px clamp(16px, 2vw, 24px);
    background: #FFFFFF;
    border-inline-start: 1px solid var(--nss-line);
    border-top: 1px solid var(--nss-line);
    color: var(--nss-text);
    font-size: 14.5px;
    line-height: 1.65;
}

.nss-exp-item::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 1px;
    background: var(--nss-blue);
}

.nss-exp-idx {
    font-family: var(--nss-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    color: var(--nss-blue-ink);
}

.nss-exp-item:nth-child(3n + 1) {
    border-inline-start: 0;
}

.nss-exp-item:nth-child(-n + 3) {
    border-top: 0;
}

/* ----------------------------------------------------------------- contact */

.nss-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.nss-info-list {
    display: grid;
    gap: 1px;
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: var(--nss-line);
    box-shadow: var(--nss-shadow-sm);
    overflow: hidden;
}

.nss-info {
    padding: 20px clamp(18px, 2.2vw, 26px);
    background: #FFFFFF;
}

.nss-info-value {
    display: block;
    margin-top: 8px;
    color: var(--nss-ink);
    font-size: 16px;
    line-height: 1.7;
    text-align: start;
}

.nss-info-value + .nss-info-value {
    margin-top: 2px;
}

a.nss-info-value:hover {
    color: var(--nss-blue);
}

.nss-info-text {
    display: block;
    margin-top: 8px;
    color: var(--nss-steel);
    font-size: 14.5px;
    line-height: 1.8;
}

.nss-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.nss-form {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background: #FFFFFF;
    box-shadow: var(--nss-shadow);
}

.nss-form-head {
    margin-bottom: 2px;
}

.nss-form-head .nss-label {
    color: #43566A;
}

.nss-field {
    display: grid;
    gap: 7px;
}

.nss-field label {
    font-size: 12.5px;
    color: var(--nss-steel-2);
}

html[lang="en"] .nss-field label {
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

.nss-input,
.nss-textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--nss-line-2);
    border-radius: var(--nss-radius);
    background: var(--nss-bg);
    color: var(--nss-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.nss-input::placeholder,
.nss-textarea::placeholder {
    color: var(--nss-faint);
}

.nss-input:focus,
.nss-textarea:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--nss-blue);
    box-shadow: 0 0 0 3px var(--nss-blue-soft);
}

.nss-textarea {
    min-height: 132px;
    resize: vertical;
}

.nss-form-err {
    color: #C02626;
    font-size: 13px;
}

.nss-form-hint {
    color: var(--nss-steel);
    font-size: 12.5px;
    line-height: 1.7;
}

.nss-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* a value forced left-to-right (a phone number in the form) still lines up
   with the page's start edge */
html[lang="ar"] .nss-input[dir="ltr"] {
    text-align: end;
}

/* --------------------------------------------------------------------- cta */

.nss-cta {
    position: relative;
    padding: clamp(26px, 3.6vw, 52px);
    border: 1px solid var(--nss-line);
    border-radius: var(--nss-radius);
    background:
        radial-gradient(85% 140% at 12% 0%, rgba(10, 107, 255, .08), rgba(10, 107, 255, 0) 62%),
        linear-gradient(180deg, #FFFFFF 0%, var(--nss-ice-2) 100%);
    box-shadow: var(--nss-shadow);
    overflow: hidden;
}

.nss-cta::before,
.nss-cta::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: .6;
    pointer-events: none;
}

.nss-cta::before {
    top: 12px;
    inset-inline-start: 12px;
    border-top: 1px solid var(--nss-blue);
    border-inline-start: 1px solid var(--nss-blue);
}

.nss-cta::after {
    bottom: 12px;
    inset-inline-end: 12px;
    border-bottom: 1px solid var(--nss-cyan);
    border-inline-end: 1px solid var(--nss-cyan);
}

.nss-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px 40px;
}

.nss-cta .nss-h2 {
    max-width: 22ch;
}

.nss-cta-lead {
    margin-top: 10px;
    color: var(--nss-steel);
    font-size: 15px;
    line-height: 1.8;
    max-width: 52ch;
}

/* ------------------------------------------------------------------ footer */

.nss-footer {
    margin-top: clamp(40px, 6vw, 90px);
    border-top: 1px solid var(--nss-line);
    background: #FFFFFF;
    padding-block: clamp(38px, 5vw, 68px) 24px;
}

.nss-footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
    gap: clamp(24px, 3.4vw, 48px);
}

.nss-footer-brand .nss-brand {
    display: inline-flex;
    padding-block: 0;
    margin-bottom: 16px;
}

.nss-footer-tag {
    color: var(--nss-steel);
    font-size: 13.5px;
    line-height: 1.85;
    max-width: 34ch;
}

.nss-footer h4 {
    margin: 0 0 14px;
    font-family: var(--nss-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #43566A;
}

html[lang="ar"] .nss-footer h4 {
    font-family: var(--nss-font-ar);
    letter-spacing: 0;
    font-size: 13px;
}

.nss-footer-top a,
.nss-footer-top .nss-footer-text {
    display: block;
    padding-block: 5px;
    color: var(--nss-steel);
    font-size: 14px;
    line-height: 1.6;
}

.nss-footer-top a:hover {
    color: var(--nss-blue);
}

.nss-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 26px;
    margin-top: clamp(28px, 4vw, 46px);
    padding-top: 18px;
    padding-inline-end: 84px;
    border-top: 1px solid var(--nss-line);
    font-size: 12.5px;
    color: var(--nss-steel);
}

/* Latin values (numbers, phone numbers, copyright lines) keep their own
   left-to-right order inside Arabic text, without dragging their block away
   from the page's start edge */
[dir="ltr"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* -------------------------------------------------------------------- fab */

.nss-fab {
    position: fixed;
    inset-inline-end: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1FA855;
    color: #FFFFFF;
    box-shadow: 0 14px 34px rgba(10, 26, 42, .24);
    transition: translate .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.nss-fab:hover {
    background: #178A46;
    translate: 0 -2px;
    box-shadow: 0 18px 40px rgba(10, 26, 42, .28);
}

/* --------------------------------------------------------------- utilities */

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

html[dir="rtl"] .nss-flip {
    transform: scaleX(-1);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
    .nss-nav-cta {
        display: none;
    }
}

@media (max-width: 1024px) {

    .nss-cards,
    .nss-chips,
    .nss-projs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nss-exp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .nss-exp-item:nth-child(3n + 1) {
        border-inline-start: 1px solid var(--nss-line);
    }

    .nss-exp-item:nth-child(-n + 3) {
        border-top: 1px solid var(--nss-line);
    }

    .nss-exp-item:nth-child(-n + 2) {
        border-top: 0;
    }

    .nss-exp-item:nth-child(2n + 1) {
        border-inline-start: 0;
    }

    .nss-footer-top {
        grid-template-columns: 1.4fr 1fr;
    }
}

@media (max-width: 900px) {
    .nss-nav-links {
        display: none;
    }

    .nss-burger {
        display: flex;
    }

    nav.nav-opened .nss-mobile {
        display: block;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.nav-opened {
        overflow: hidden;
    }

    .nss-nav-inner {
        padding-block: 10px;
    }

    .nss-hero-inner {
        padding-block: clamp(52px, 12vw, 80px);
    }

    .nss-hero-diagram {
        inset-inline-start: -18%;
        width: 88vw;
        opacity: .12;
    }

    .nss-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nss-profile,
    .nss-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nss-svc {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .nss-sector-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nss-cta-inner {
        align-items: flex-start;
    }

    .nss-footer {
        padding-bottom: 104px;
    }

    .nss-footer-bottom {
        padding-inline-end: 0;
    }
}

@media (max-width: 700px) {

    .nss-cards,
    .nss-chips,
    .nss-projs,
    .nss-exp {
        grid-template-columns: minmax(0, 1fr);
    }

    .nss-exp-item:nth-child(n) {
        border-top: 1px solid var(--nss-line);
        border-inline-start: 0;
    }

    .nss-exp-item:first-child {
        border-top: 0;
    }

    .nss-footer-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .nss-hero .nss-h1 {
        max-width: 100%;
    }

    .nss-hero-actions .nss-btn {
        flex: 1 1 100%;
    }

    .nss-section-link {
        align-self: flex-start;
    }

    .nss-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .nss-plate {
        min-height: 300px;
    }

    /* project table becomes stacked records */
    .nss-tablewrap {
        box-shadow: none;
    }

    .nss-table {
        display: block;
    }

    .nss-table thead {
        display: none;
    }

    .nss-table tbody {
        display: block;
    }

    .nss-table tr {
        display: block;
        border-bottom: 1px solid var(--nss-line);
        padding: 10px 0;
    }

    .nss-table tbody tr:last-child {
        border-bottom: 0;
    }

    .nss-table td {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding: 7px 18px;
        border: 0;
        font-size: 14px;
    }

    .nss-table tbody tr:hover td {
        background: transparent;
    }

    .nss-table td::before {
        content: attr(data-l-ar);
        font-family: var(--nss-font-ar);
        font-size: 12px;
        color: #43566A;
        line-height: 1.9;
    }

    html[lang="en"] .nss-table td::before {
        content: attr(data-l-en);
        font-family: var(--nss-mono);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        color: #43566A;
    }

    .nss-table td:first-child {
        padding-top: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nss-brand-mark {
        font-size: 20px;
    }

    .nss-brand-sub {
        font-size: 7px;
        letter-spacing: .16em;
    }

    .nss-nav-right {
        gap: 10px;
    }

    .nss-hero-foot {
        gap: 8px 20px;
    }

    .nss-fab {
        width: 48px;
        height: 48px;
        inset-inline-end: 14px;
        bottom: 14px;
    }

    .nss-table td {
        grid-template-columns: 78px minmax(0, 1fr);
        padding-inline: 14px;
    }
}

/* ------------------------------------------------- hero on phones (≤760px)
   Below 761px the plant photo is no longer a backdrop: it becomes a normal
   panel under the copy, so no paragraph ever sits on top of a photo. The
   line-drawn ring/pipe diagram stays inside that panel, at low opacity. */

@media (max-width: 760px) {
    .nss-hero {
        --nss-hero-pad: clamp(22px, 4.5vw, 32px);
        --nss-hero-panel-h: clamp(240px, 62vw, 280px);
        display: flex;
        flex-direction: column;
        padding-block-end: var(--nss-hero-pad);
    }

    .nss-hero-inner {
        order: 1;
        padding-block: clamp(44px, 10vw, 68px) clamp(22px, 4.5vw, 32px);
    }

    .nss-hero-media {
        order: 2;
        position: relative;
        inset: auto;
        width: auto;
        height: var(--nss-hero-panel-h);
        margin-inline: clamp(18px, 4vw, 44px);
        overflow: hidden;
        border: 1px solid var(--nss-line);
        border-radius: var(--nss-radius);
        box-shadow: var(--nss-shadow);
    }

    .nss-hero-media img {
        filter: saturate(.85) brightness(1.06) contrast(.94);
    }

    /* the veil belonged to the text-over-photo layout; the panel only keeps a
       faint high-key wash so it still reads as the light theme */
    .nss-hero-media::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, .08) 100%);
    }

    /* sits exactly on the panel's inner box */
    .nss-hero-diagram {
        top: auto;
        bottom: calc(var(--nss-hero-pad) + 1px);
        inset-inline: 0;
        width: calc(var(--nss-hero-panel-h) - 2px);
        height: calc(var(--nss-hero-panel-h) - 2px);
        max-width: calc(100% - 2 * clamp(18px, 4vw, 44px) - 2px);
        margin-inline: auto;
        translate: none;
        opacity: .2;
    }
}

/* ------------------------------------------------------------------- motion
   The reveal class is only added by script when the visitor allows motion, so
   with reduced motion (or without script) every block is simply visible. */

.nss-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease, translate .2s ease, box-shadow .2s ease,
        border-color .2s ease, background-color .2s ease;
}

.nss-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .nss-marquee-track,
    .nss-diagram-ring {
        animation: none !important;
    }

    .nss-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nss-card:hover,
    .nss-proj:hover,
    .nss-sector:hover,
    .nss-chip:hover,
    .nss-fab:hover {
        translate: 0 0;
    }
}
