/* ==========================================================================
   NSS — Naouchi Stainless Steel / NSS Instaserv
   Site stylesheet. All classes are prefixed `nss-` / `site-nav` so they do
   not collide with the Mobius utility classes.
   ========================================================================== */

:root {
    --nss-graphite: #0B0F14;
    --nss-graphite-2: #080B0F;
    --nss-panel: #121A22;
    --nss-panel-2: #0F161E;
    --nss-panel-3: #16202A;
    --nss-white: #FFFFFF;
    --nss-text: #E6EBF0;
    --nss-steel: #8A97A3;
    --nss-steel-2: #B9C3CC;
    --nss-accent: #22D3EE;
    --nss-accent-soft: rgba(34, 211, 238, .12);
    --nss-line: rgba(255, 255, 255, .08);
    --nss-line-2: rgba(255, 255, 255, .16);
    --nss-max: 1240px;
    --nss-font-ar: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
    --nss-font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, 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-graphite);
    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;
}

body.nss-page-body {
    background-color: var(--nss-graphite);
}

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-accent);
    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: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--nss-accent);
}

.nss-eyebrow::before {
    content: "";
    display: block;
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: .75;
}

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

.nss-h1 {
    color: var(--nss-white);
    font-size: clamp(30px, 4.3vw, 56px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.022em;
}

html[lang="ar"] .nss-h1 {
    letter-spacing: 0;
    line-height: 1.3;
    font-weight: 700;
}

.nss-h2 {
    color: var(--nss-white);
    font-size: clamp(23px, 2.7vw, 36px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.015em;
}

html[lang="ar"] .nss-h2 {
    letter-spacing: 0;
    line-height: 1.38;
}

.nss-h3 {
    color: var(--nss-white);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.35;
    font-weight: 600;
}

html[lang="ar"] .nss-h3 {
    line-height: 1.5;
}

.nss-lead {
    color: var(--nss-steel-2);
    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: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

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

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

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

.nss-section-link {
    font-family: var(--nss-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nss-accent);
    white-space: nowrap;
    border-bottom: 1px solid rgba(34, 211, 238, .4);
    padding-bottom: 3px;
}

.nss-section-link:hover {
    color: #7CE9F7;
    border-bottom-color: #7CE9F7;
}

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: 2px;
    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, transform .18s ease;
}

html[lang="en"] .nss-btn {
    font-size: 12.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.nss-btn-primary {
    background: var(--nss-accent);
    border-color: var(--nss-accent);
    color: #04151A;
}

.nss-btn-primary:hover {
    background: #63E4F5;
    border-color: #63E4F5;
    color: #04151A;
}

.nss-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
    color: var(--nss-white);
}

.nss-btn-ghost:hover {
    border-color: var(--nss-accent);
    color: var(--nss-accent);
}

.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(11, 15, 20, .92);
    border-bottom: 1px solid var(--nss-line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.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-en);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .085em;
    background: linear-gradient(180deg, #FFFFFF 0%, #C9D3DC 48%, #7C8995 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E9EEF2;
}

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

.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-2);
    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-white);
}

.nss-nav-link.active::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 1px;
    background: var(--nss-accent);
}

.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;
    transition: color .16s ease;
}

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

.nss-lang-sep {
    color: rgba(255, 255, 255, .2);
}

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

.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: 2px;
    cursor: pointer;
}

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

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

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

.nss-mobile-link {
    display: block;
    padding-block: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: #DDE4EA;
    font-size: 15.5px;
}

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

.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: 2px;
}

.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);
    unicode-bidi: plaintext;
}

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

.nss-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--nss-line);
    background: var(--nss-graphite);
}

.nss-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nss-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.nss-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 85% at 50% 25%, rgba(11, 15, 20, .34), rgba(11, 15, 20, .88) 72%),
        linear-gradient(180deg, rgba(11, 15, 20, .86) 0%, rgba(11, 15, 20, .58) 42%, rgba(11, 15, 20, .97) 100%);
}

.nss-hero-inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(64px, 9vw, 132px);
}

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

.nss-hero-lead {
    margin-top: 22px;
    max-width: 66ch;
    color: #CBD4DC;
    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: 8px 26px;
    margin-top: clamp(34px, 4.5vw, 58px);
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--nss-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

.nss-hero-foot span {
    position: relative;
}

.nss-hero-foot span + span::before {
    content: "";
    position: absolute;
    inset-inline-start: -14px;
    top: 50%;
    width: 3px;
    height: 3px;
    margin-top: -1.5px;
    background: var(--nss-accent);
    border-radius: 50%;
}

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

.nss-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--nss-line);
    background: linear-gradient(180deg, rgba(34, 211, 238, .05), rgba(34, 211, 238, 0) 65%);
}

.nss-stat {
    padding: clamp(20px, 2.4vw, 32px);
    border-inline-end: 1px solid var(--nss-line);
}

.nss-stat:last-child {
    border-inline-end: 0;
}

.nss-stat-num {
    font-family: var(--nss-font-en);
    font-size: clamp(27px, 3.3vw, 42px);
    font-weight: 600;
    line-height: 1.05;
    color: var(--nss-white);
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    unicode-bidi: plaintext;
}

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

.nss-stat-label {
    margin-top: 10px;
    font-family: var(--nss-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

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: 1px;
    background: var(--nss-line);
    border: 1px solid var(--nss-line);
}

.nss-card {
    display: flex;
    flex-direction: column;
    min-height: 236px;
    padding: clamp(22px, 2.4vw, 30px);
    background: var(--nss-panel);
    transition: background-color .18s ease, box-shadow .18s ease;
}

.nss-card:hover {
    background: var(--nss-panel-3);
    box-shadow: inset 0 1px 0 var(--nss-accent);
}

.nss-card-num {
    font-family: var(--nss-mono);
    font-size: 11.5px;
    letter-spacing: .16em;
    color: var(--nss-accent);
    unicode-bidi: plaintext;
}

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

.nss-card-text {
    margin-top: 12px;
    color: var(--nss-steel-2);
    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;
    font-family: var(--nss-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

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

.nss-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--nss-line);
    border: 1px solid var(--nss-line);
}

.nss-chip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 20px clamp(18px, 2vw, 26px);
    background: var(--nss-panel-2);
    transition: background-color .18s ease;
}

.nss-chip:hover {
    background: var(--nss-panel-3);
}

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

.nss-chip-alt {
    font-family: var(--nss-mono);
    font-size: 10.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

/* ------------------------------------------------------------------ trust */

.nss-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px 30px;
    padding-block: 22px;
    border-block: 1px solid var(--nss-line);
}

.nss-trust-label {
    font-family: var(--nss-mono);
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--nss-accent);
    white-space: nowrap;
}

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

.nss-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: #C6CFD8;
    font-size: 14px;
    line-height: 1.6;
}

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

.nss-projs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--nss-line);
    border: 1px solid var(--nss-line);
}

.nss-proj {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(22px, 2.4vw, 30px);
    background: var(--nss-panel);
    transition: background-color .18s ease, box-shadow .18s ease;
}

.nss-proj:hover {
    background: var(--nss-panel-3);
    box-shadow: inset 0 1px 0 var(--nss-accent);
}

.nss-proj-user {
    color: var(--nss-white);
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 600;
    line-height: 1.35;
    unicode-bidi: plaintext;
}

.nss-proj-scope {
    color: var(--nss-steel-2);
    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;
    letter-spacing: .06em;
    color: var(--nss-steel);
}

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

.nss-pagehead {
    position: relative;
    border-bottom: 1px solid var(--nss-line);
    background:
        radial-gradient(75% 130% at 88% 0%, rgba(34, 211, 238, .12), rgba(34, 211, 238, 0) 58%),
        linear-gradient(180deg, #0D141B 0%, var(--nss-graphite) 100%);
}

.nss-pagehead-inner {
    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 24px;
    margin-top: 26px;
    font-family: var(--nss-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

/* ----------------------------------------------------------------- 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-accent);
    unicode-bidi: plaintext;
}

.nss-svc-title {
    margin-top: 12px;
    color: var(--nss-white);
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.4;
}

.nss-svc-desc {
    margin-top: 12px;
    color: var(--nss-steel-2);
    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: #CBD4DC;
    font-size: 14.5px;
    line-height: 2.05;
    padding-inline-start: 16px;
    border-inline-start: 1px solid rgba(34, 211, 238, .45);
}

.nss-mats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--nss-line);
}

.nss-mats-value {
    color: #C6CFD8;
    font-size: 13.5px;
    line-height: 1.7;
}

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

.nss-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--nss-line);
    border: 1px solid var(--nss-line);
}

.nss-sector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(22px, 2.6vw, 32px);
    background: var(--nss-panel);
}

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

.nss-sector-alt {
    font-family: var(--nss-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nss-accent);
}

.nss-sector-blurb {
    color: var(--nss-steel-2);
    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: #CBD4DC;
    font-size: 13px;
    line-height: 2;
    unicode-bidi: plaintext;
}

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

.nss-tablewrap {
    border: 1px solid var(--nss-line);
    background: var(--nss-panel-2);
}

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

.nss-table th {
    padding: 15px 20px;
    border-bottom: 1px solid var(--nss-line);
    background: #0E151D;
    font-family: var(--nss-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nss-steel);
    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-steel-2);
    vertical-align: top;
}

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

.nss-table tbody tr:hover td {
    background: #121B24;
}

.nss-table td:first-child {
    color: var(--nss-white);
    font-weight: 600;
    unicode-bidi: plaintext;
}

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

.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-2);
    background: linear-gradient(155deg, #16202A 0%, #0C1218 58%, #0B0F14 100%);
}

.nss-plate::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px);
    opacity: .55;
    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(34, 211, 238, .18), rgba(34, 211, 238, 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-en);
    font-size: clamp(56px, 9vw, 104px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    background: linear-gradient(180deg, #FFFFFF 0%, #C2CCD6 46%, #59656F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E9EEF2;
}

.nss-plate-tag {
    font-family: var(--nss-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--nss-steel);
    text-align: end;
    white-space: nowrap;
}

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

.nss-plate-role {
    margin-top: 8px;
    font-family: var(--nss-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nss-accent);
}

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-2);
    font-size: 15px;
    line-height: 1.95;
}

.nss-bio p + p {
    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: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

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-white);
    font-size: 14.5px;
}

.nss-exp {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--nss-line);
    border: 1px solid var(--nss-line);
}

.nss-exp-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 20px clamp(16px, 2vw, 24px);
    background: var(--nss-panel);
    color: #DCE3E9;
    font-size: 14.5px;
    line-height: 1.65;
}

.nss-exp-idx {
    font-family: var(--nss-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    color: var(--nss-accent);
    unicode-bidi: plaintext;
}

/* ----------------------------------------------------------------- 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;
    background: var(--nss-line);
    border: 1px solid var(--nss-line);
}

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

.nss-info-value {
    display: block;
    margin-top: 8px;
    color: var(--nss-white);
    font-size: 16px;
    line-height: 1.7;
    unicode-bidi: plaintext;
}

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

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

.nss-info-text {
    display: block;
    margin-top: 8px;
    color: var(--nss-steel-2);
    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);
    background: var(--nss-panel);
}

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

.nss-form-head .nss-label {
    color: var(--nss-accent);
}

.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: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nss-steel);
}

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

.nss-input::placeholder,
.nss-textarea::placeholder {
    color: #6E7B87;
}

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

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

.nss-form-err {
    color: #FF9C9C;
    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;
}

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

.nss-cta {
    position: relative;
    padding: clamp(26px, 3.6vw, 52px);
    border: 1px solid var(--nss-line-2);
    background:
        radial-gradient(85% 140% at 12% 0%, rgba(34, 211, 238, .16), rgba(34, 211, 238, 0) 62%),
        var(--nss-panel);
}

.nss-cta-inner {
    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-2);
    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: var(--nss-graphite-2);
    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 {
    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: 10.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--nss-accent);
}

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

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

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

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

.nss-footer-bottom span {
    unicode-bidi: plaintext;
}

/* -------------------------------------------------------------------- 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(0, 0, 0, .45);
    transition: transform .16s ease, background-color .16s ease;
}

.nss-fab:hover {
    background: #25C363;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------- 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-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;
    }

    body.nav-opened {
        overflow: hidden;
    }

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

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

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

    .nss-stat:nth-child(2n) {
        border-inline-end: 0;
    }

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

    .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;
    }
}

@media (max-width: 700px) {
    .nss-cards,
    .nss-chips,
    .nss-projs,
    .nss-exp {
        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-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: var(--nss-steel);
        line-height: 1.9;
    }

    html[lang="en"] .nss-table td::before {
        content: attr(data-l-en);
        font-family: var(--nss-mono);
        font-size: 10.5px;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .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 {
        font-size: 10px;
        letter-spacing: .12em;
    }

    .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;
    }
}

/* ------------------------------------------------------------ refinements */

.nss-section-head .nss-h2 {
    margin-top: 12px;
}

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

.nss-plate-tag {
    line-height: 1.9;
}

.nss-info-value {
    text-align: start;
}

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

/* 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);
    background: var(--nss-panel);
}

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

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

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

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

@media (max-width: 1024px) {
    .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;
    }
}

@media (max-width: 700px) {
    .nss-exp {
        grid-template-columns: minmax(0, 1fr);
    }

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

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