/* ============================================================
   Barlas Tank — "Işık ve Hassasiyet" theme
   Light-dominant, navy structure, steel rendered with light.
   Logical properties throughout (ar is RTL).
   ============================================================ */

/* ---------- Fonts (Onest variable, self-hosted subsets) ---------- */
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --ink: #0B1C3D;
    --ink-2: #2B3C58;
    --navy-900: #0A1834;
    --navy-800: #10264F;
    --blue: #1B4FD8;
    --blue-h: #1642B8;
    --blue-soft: #6E8FF0;
    --paper: #F6F7F9;
    --card: #FFFFFF;
    --line: #DFE5EC;
    --text: #3D4C63;
    --muted: #71809A;
    --ok: #1D6B3C;
    --err: #C42847;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow-1: 0 1px 2px rgba(11, 28, 61, .05), 0 10px 26px -14px rgba(11, 28, 61, .14);
    --shadow-2: 0 2px 4px rgba(11, 28, 61, .06), 0 22px 44px -18px rgba(11, 28, 61, .22);

    --font: 'Onest', system-ui, 'Segoe UI', -apple-system, sans-serif;
    --mono: ui-monospace, 'Cascadia Mono', 'Consolas', 'SF Mono', monospace;

    --seam-g: linear-gradient(90deg, transparent, #B9C4D2 16%, #EDF1F6 50%, #B9C4D2 84%, transparent);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.022em;
    font-weight: 750;
    text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-block-end: 0; }

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

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

img, svg { max-inline-size: 100%; display: block; }

button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

::selection { background: rgba(27, 79, 216, .18); }

section[id] { scroll-margin-block-start: 84px; }

/* Arabic: no tracking — negative/positive letter-spacing breaks joined script. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] .tag, [dir="rtl"] .case-meta, [dir="rtl"] .hero-spec, [dir="rtl"] .ftr-spec { letter-spacing: 0; }

/* ---------- Utilities ---------- */
.container {
    max-inline-size: 1180px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 32px);
}
.container-narrow { max-inline-size: 860px; }

.mono { font-family: var(--mono); }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
}
.tag::before {
    content: '';
    inline-size: 22px;
    block-size: 1.5px;
    background: var(--blue);
    opacity: .55;
}

.lead {
    font-size: clamp(16px, 1.6vw, 17.5px);
    color: var(--text);
    max-inline-size: 60ch;
}

.seam {
    block-size: 1px;
    background: var(--seam-g);
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    inset-block-start: -48px;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 0; }

/* ---------- Reveal system (gated on html.js) ---------- */
html.js .rv {
    opacity: 0;
    translate: 0 26px;
    transition:
        opacity .7s cubic-bezier(.2, .65, .25, 1),
        translate .7s cubic-bezier(.2, .65, .25, 1);
    transition-delay: var(--d, 0s);
}
html.js .rv.in { opacity: 1; translate: 0 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 650;
    font-size: 15px;
    line-height: 1.2;
    box-shadow: 0 12px 26px -14px rgba(27, 79, 216, .65);
    transition: transform .25s, box-shadow .25s, background .2s, border-color .2s;
}
.btn:hover { background: var(--blue-h); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(27, 79, 216, .7); }
.btn:active { transform: translateY(0); }

.btn-ghost {
    background: rgba(255, 255, 255, .65);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}
.btn-ghost:hover { background: #fff; border-color: rgba(11, 28, 61, .28); box-shadow: var(--shadow-1); }

.btn-light { background: #fff; color: var(--navy-900); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55); }
.btn-light:hover { background: #EDF1F8; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .6); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-wide { inline-size: 100%; padding: 16px; font-size: 15.5px; }

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    font-size: 14.5px;
    color: var(--blue);
}
.btn-line .arr { transition: translate .25s; }
.btn-line:hover .arr { translate: 4px 0; }
[dir="rtl"] .btn-line .arr { scale: -1 1; }
[dir="rtl"] .btn-line:hover .arr { translate: -4px 0; }
.btn-line-light { color: #C7D6FA; font-family: var(--mono); }

/* ---------- Header ---------- */
.hdr {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 50;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-block-end: 1px solid transparent;
}
.hdr.scrolled {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-color: var(--line);
}
.hdr-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    block-size: 70px;
}

/* Scroll-progress rail pinned to the header's lower edge. */
.hdr-progress {
    position: absolute;
    inset-inline: 0;
    inset-block-end: -1px;
    block-size: 2px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.hdr.scrolled .hdr-progress { opacity: 1; }
.hdr-progress span {
    display: block;
    block-size: 100%;
    inline-size: 100%;
    transform-origin: left center;
    transform: scaleX(var(--scroll, 0));
    background: linear-gradient(90deg, var(--blue), var(--blue-soft));
    will-change: transform;
}
[dir="rtl"] .hdr-progress span { transform-origin: right center; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { color: var(--ink); flex-shrink: 0; }
.brand-w { font-weight: 800; font-size: 17px; letter-spacing: .04em; color: var(--ink); }
.brand-w b { color: var(--blue); font-weight: 800; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav a {
    position: relative;
    font-size: 14.5px;
    font-weight: 550;
    color: var(--ink-2);
    padding-block: 6px;
    transition: color .2s;
}
/* Animated underline that grows from the center on hover / active. */
.nav a::after {
    content: '';
    position: absolute;
    inset-block-end: -2px;
    inset-inline: 0;
    block-size: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s cubic-bezier(.2, .65, .25, 1);
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { transform: scaleX(1); }

.hdr-x { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: .1em;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .65);
    color: var(--ink);
    transition: border-color .2s, background .2s;
}
.lang-btn:hover { border-color: rgba(11, 28, 61, .3); }
.lang-menu {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + 8px);
    min-inline-size: 176px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    padding: 6px;
    opacity: 0;
    translate: 0 -6px;
    visibility: hidden;
    transition: opacity .2s, translate .2s, visibility .2s;
    z-index: 60;
}
.lang.open .lang-menu { opacity: 1; translate: 0 0; visibility: visible; }
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--ink-2);
}
.lang-menu a .mono { font-size: 11px; color: var(--muted); inline-size: 20px; }
.lang-menu a:hover { background: var(--paper); }
.lang-menu a[aria-current] { color: var(--blue); font-weight: 700; }
.lang-menu a[aria-current] .mono { color: var(--blue); }

.burger { display: none; position: relative; inline-size: 40px; block-size: 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.65); }
.burger span {
    position: absolute;
    inset-inline: 11px;
    block-size: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: translate .25s, rotate .25s;
}
.burger span:first-child { inset-block-start: 15px; }
.burger span:last-child { inset-block-start: 23px; }
body.nav-open .burger span:first-child { translate: 0 4px; rotate: 45deg; }
body.nav-open .burger span:last-child { translate: 0 -4px; rotate: -45deg; }

/* Dimmed backdrop behind the mobile drawer. */
.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(8, 18, 40, .46);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
@media (min-width: 1081px) { .nav-scrim { display: none; } }

/* ---------- Hero (dark cinematic — homepage only) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: #0A1834;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-block-size: 86vh;
    padding-block-start: 70px; /* clear the fixed header */
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(760px 460px at 78% 6%, rgba(46, 91, 227, .30), transparent 62%),
        radial-gradient(680px 520px at 10% 104%, rgba(27, 79, 216, .16), transparent 60%),
        linear-gradient(180deg, #0B1C3D 0%, #081228 100%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: radial-gradient(900px 560px at 66% 26%, #000 24%, transparent 74%);
    mask-image: radial-gradient(900px 560px at 66% 26%, #000 24%, transparent 74%);
}
/* interactive particle network */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    inline-size: 100%;
    block-size: 100%;
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
    padding-block-start: clamp(18px, 3vh, 34px);
}
/* darken behind the copy so text stays readable over the field */
.hero-grid::before {
    content: '';
    position: absolute;
    inset-inline-start: -8%;
    inset-block: -12%;
    inline-size: 58%;
    background: radial-gradient(56% 60% at 30% 50%, rgba(8, 18, 40, .68), transparent 72%);
    z-index: -1;
    pointer-events: none;
}
.hero h1 { font-size: clamp(38px, 5.8vw, 66px); font-weight: 800; line-height: 1.02; margin-block: 18px 0; color: #fff; }
.hero h1 span { display: block; }
.hero h1 .accent {
    background: linear-gradient(94deg, #6E8FF0 6%, #9AB6FF 52%, #D3E1FF 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .tag { color: #8FA9F2; }
.hero .tag::before { background: #8FA9F2; }
.hero .lead { margin-block-start: 20px; color: #AFC0E4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 30px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); color: #EAF0FF; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .42); }
.hero-spec {
    margin-block-start: 26px;
    font-size: 12.5px;
    letter-spacing: .12em;
    color: rgba(174, 190, 224, .7);
}

.hero-visual { position: relative; z-index: 2; display: grid; place-items: center; }
html.js .hero-visual { animation: heroFloat 7s ease-in-out infinite; }
/* model-viewer is a web component — it needs an explicit box or it collapses. */
.hero-model {
    position: relative;
    display: block;
    inline-size: min(100%, 560px);
    block-size: min(76vw, 640px);
    background: transparent;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
    will-change: transform;
}
.hero-halo {
    position: absolute;
    inset: -10%;
    background: radial-gradient(46% 42% at 50% 46%, rgba(46, 91, 227, .45), transparent 70%);
}
.hero-sweep {
    position: absolute;
    inset-block: 0;
    inline-size: 46%;
    inset-inline-start: -60%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
    pointer-events: none;
}
html.js .hero-sweep { animation: heroSweep 9s ease-in-out infinite; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@keyframes heroSweep {
    0%, 62% { inset-inline-start: -60%; opacity: 0; }
    68% { opacity: 1; }
    86%, 100% { inset-inline-start: 120%; opacity: 0; }
}

.hero-foot { position: relative; z-index: 2; padding-block-end: clamp(20px, 4vh, 34px); margin-block-start: clamp(34px, 6vh, 58px); }
.hero-foot .seam { background: linear-gradient(90deg, transparent, rgba(140, 165, 220, .4) 50%, transparent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(26px, 5vw, 62px); margin-block-start: 20px; }
.hero-stats li { display: grid; gap: 2px; }
.hero-stats strong { font-size: 25px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.hero-stats span { font-size: 13.5px; color: #93A5C7; }

/* Header over a dark hero (light text until scrolled). Applies to the home
   hero (body.is-home) and any page that opens with a dark hero band, e.g. the
   contact page's 3D robot hero (body.has-dark-hero). */
body.is-home .hdr:not(.scrolled) .brand-w,
body.has-dark-hero .hdr:not(.scrolled) .brand-w,
body.is-home .hdr:not(.scrolled) .brand-mark,
body.has-dark-hero .hdr:not(.scrolled) .brand-mark { color: #fff; }
body.is-home .hdr:not(.scrolled) .brand-w b,
body.has-dark-hero .hdr:not(.scrolled) .brand-w b { color: #9AB6FF; }
body.is-home .hdr:not(.scrolled) .nav a,
body.has-dark-hero .hdr:not(.scrolled) .nav a { color: rgba(233, 240, 255, .82); }
body.is-home .hdr:not(.scrolled) .nav a:hover,
body.has-dark-hero .hdr:not(.scrolled) .nav a:hover,
body.is-home .hdr:not(.scrolled) .nav a[aria-current="page"],
body.has-dark-hero .hdr:not(.scrolled) .nav a[aria-current="page"] { color: #fff; }
body.is-home .hdr:not(.scrolled) .lang-btn,
body.has-dark-hero .hdr:not(.scrolled) .lang-btn {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
}
body.is-home .hdr:not(.scrolled) .burger,
body.has-dark-hero .hdr:not(.scrolled) .burger {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
}
body.is-home .hdr:not(.scrolled) .burger span,
body.has-dark-hero .hdr:not(.scrolled) .burger span { background: #fff; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(68px, 9vw, 116px); }
.sec-alt { background: #fff; border-block: 1px solid var(--line); }
.sec-tight { padding-block-start: clamp(20px, 4vw, 40px); }

.sec-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: clamp(16px, 3vw, 30px);
    margin-block-end: clamp(34px, 5vw, 54px);
}
.sec-num {
    font-family: var(--mono);
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 700;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(11, 28, 61, .18);
    user-select: none;
}
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); margin-block: 10px 0; }
.sec-head h1 { font-size: clamp(32px, 5vw, 54px); margin-block: 10px 0; }
.sec-head .lead { margin-block-start: 14px; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: start;
}
.about-facts { display: grid; gap: 10px; margin-block-start: 26px; }
.about-facts li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); font-weight: 550; }
.about-facts .mono { color: var(--blue); }

.panel-steel {
    position: relative;
    background:
        linear-gradient(150deg, #F2F5F8 0%, #E1E7EE 45%, #F5F8FA 60%, #D8DFE8 100%);
    border: 1px solid #D4DBE4;
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 34px);
    box-shadow: var(--shadow-1);
    color: var(--ink-2);
}
.panel-steel::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    block-size: 1px;
    background: rgba(255, 255, 255, .85);
}
.panel-cap {
    display: block;
    margin-block-start: 16px;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--muted);
}

/* ---------- About: interactive image accordion ---------- */
.about-acc {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}
.about-acc-copy .sec-head { margin-block-end: 0; }
.about-acc-copy .lead { margin-block: 22px 0; }
.about-acc-copy .btn { margin-block-start: 30px; }

.acc { display: flex; gap: 12px; block-size: 460px; }
.acc-item {
    position: relative;
    flex: 1 1 0;
    min-inline-size: 52px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 44px -24px rgba(11, 28, 61, .55);
    transition: flex-grow .6s cubic-bezier(.2, .65, .25, 1);
}
.acc-item.is-open { flex-grow: 5.2; }
/* When the group is hovered, the default-open panel yields... */
.acc:hover .acc-item.is-open { flex-grow: 1; }
/* ...to whichever panel the cursor is on (placed after → wins the tie). */
.acc:hover .acc-item:hover { flex-grow: 5.2; }
.acc-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.acc-media { position: absolute; inset: 0; display: grid; place-items: center; }
.acc-media--1 { background: linear-gradient(155deg, #14295d 0%, #0A1834 72%); }
.acc-media--2 { background: linear-gradient(155deg, #10275a 0%, #091530 74%); }
.acc-media--3 { background: linear-gradient(160deg, #1a3269 0%, #0B1C3D 70%); }
.acc-media svg { inline-size: clamp(56px, 40%, 128px); color: rgba(150, 180, 230, .42); }
.acc-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 45% at 50% 30%, rgba(46, 91, 227, .28), transparent 70%);
}
.acc-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 40, .12) 0%, rgba(8, 18, 40, .18) 45%, rgba(8, 18, 40, .82) 100%);
}
.acc-item.is-open .acc-media { filter: brightness(1.12); }
.acc:hover .acc-item.is-open .acc-media { filter: none; }
.acc:hover .acc-item:hover .acc-media { filter: brightness(1.12); }

.acc-cap {
    position: absolute;
    left: 50%;
    bottom: 94px;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: center;
    white-space: nowrap;
    color: #fff;
    font-weight: 650;
    font-size: clamp(14px, 1.4vw, 17px);
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    pointer-events: none;
    transition: transform .45s cubic-bezier(.2, .65, .25, 1), bottom .45s cubic-bezier(.2, .65, .25, 1);
}
.acc-item.is-open .acc-cap { transform: translateX(-50%) rotate(0); bottom: 26px; }
.acc:hover .acc-item.is-open .acc-cap { transform: translateX(-50%) rotate(90deg); bottom: 94px; }
.acc:hover .acc-item:hover .acc-cap { transform: translateX(-50%) rotate(0); bottom: 26px; }

@media (max-width: 900px) {
    .about-acc { grid-template-columns: 1fr; gap: 34px; }
    /* Touch: no hover — become a horizontal scroll strip with level captions. */
    .acc { block-size: 320px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 6px; }
    .acc-item,
    .acc-item.is-open,
    .acc:hover .acc-item.is-open { flex: 0 0 clamp(150px, 62vw, 230px); scroll-snap-align: start; }
    .acc-cap,
    .acc-item.is-open .acc-cap,
    .acc:hover .acc-item:hover .acc-cap { transform: translateX(-50%) rotate(0); bottom: 20px; }
}

/* ---------- Product cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 20px 24px;
    box-shadow: var(--shadow-1);
    transition: transform .35s cubic-bezier(.2, .65, .25, 1), box-shadow .35s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(27, 79, 216, .25); }
.card::after {
    content: '';
    position: absolute;
    inset-block: -20%;
    inline-size: 55%;
    inset-inline-start: -75%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: skewX(-14deg);
    transition: inset-inline-start .65s ease;
    pointer-events: none;
}
.card:hover::after { inset-inline-start: 125%; }
.card-media {
    background: linear-gradient(160deg, #EFF3F8, #DEE5EC);
    border-radius: 14px;
    padding: 18px;
    margin-block-end: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.card-media img { transition: transform .5s cubic-bezier(.2, .65, .25, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.card h3 { font-size: 18.5px; margin-block-end: 8px; }
.card p { font-size: 14.5px; }
.card .btn-line { margin-block-start: 14px; }

/* ---------- Product carousel (side-by-side + arrows) ---------- */
.prod-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-block-end: clamp(26px, 4vw, 42px);
}
.prod-head .sec-head { margin-block-end: 0; }
.car-nav { display: flex; gap: 10px; flex-shrink: 0; padding-block-end: 6px; }
.car-arrow {
    inline-size: 46px;
    block-size: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-1);
    transition: background .2s, color .2s, border-color .2s, transform .2s, opacity .2s;
}
.car-arrow:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.car-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }

.carousel { position: relative; }
.car-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 26px;
    margin-inline: -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.car-track::-webkit-scrollbar { block-size: 6px; }
.car-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.car-track .prod-card { flex: 0 0 clamp(258px, 78vw, 316px); scroll-snap-align: start; }

/* Extra motion on the product cards. */
.prod-card { transition: transform .4s cubic-bezier(.2, .65, .25, 1), box-shadow .4s, border-color .3s; }
.prod-card .card-media img { transition: transform .55s cubic-bezier(.2, .65, .25, 1); }
.prod-card:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: rgba(27, 79, 216, .4);
    box-shadow: 0 30px 60px -28px rgba(27, 79, 216, .5), var(--shadow-2);
}
.prod-card:hover .card-media img { transform: scale(1.09) rotate(-.6deg); }
.prod-card:hover .btn-line { color: var(--blue-h); }
.prod-card:hover .btn-line .arr { translate: 5px 0; }

@media (max-width: 720px) {
    .prod-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .car-nav { align-self: flex-end; }
}

/* ---------- Sectors ---------- */
.sectors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.sector {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 20px;
    display: grid;
    gap: 8px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.sector:hover { transform: translateY(-4px); border-color: rgba(27, 79, 216, .35); box-shadow: var(--shadow-1); }
.sector svg { color: var(--blue); transition: translate .3s; }
.sector:hover svg { translate: 0 -3px; }
.sector h3 { font-size: 16px; }
.sector p { font-size: 13.5px; color: var(--muted); }

/* ---------- Process ---------- */
.prc { margin-block-start: 20px; }
.prc-track {
    position: relative;
    block-size: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(11, 28, 61, .05), rgba(11, 28, 61, .16) 12% 88%, rgba(11, 28, 61, .05));
    margin-block-end: 44px;
}
.prc-track::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: calc(var(--prc, 0) * 100%);
    background: linear-gradient(90deg, #2E5BE3, var(--blue-soft));
    border-radius: 2px;
}
.prc-spark {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: calc(var(--prc, 0) * 100%);
    translate: -50% -50%;
    inline-size: 13px;
    block-size: 13px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--blue);
    box-shadow: 0 0 0 6px rgba(27, 79, 216, .14), 0 0 20px rgba(46, 91, 227, .8);
}
[dir="rtl"] .prc-spark { translate: 50% -50%; }
.prc-steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
    counter-reset: step;
}
.prc-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 650;
    color: var(--blue);
    background: rgba(27, 79, 216, .07);
    border: 1px solid rgba(27, 79, 216, .28);
    border-radius: 7px;
    padding: 3px 8px;
    margin-block-end: 10px;
}
.prc-steps h3 { font-size: 16px; margin-block-end: 6px; }
.prc-steps p { font-size: 13px; color: var(--muted); }

/* ---------- Why ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 34px);
}
.why-card { border-block-start: 1px solid var(--line); padding-block-start: 20px; transition: border-color .3s; }
.why-card:hover { border-color: var(--blue); }
.why-card svg { color: var(--blue); }
.why-card h3 { font-size: 17px; margin-block: 14px 8px; }
.why-card p { font-size: 14px; }

/* ---------- Quality ---------- */
.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}
.mats { display: grid; gap: 18px; }
.mat-plate {
    position: relative;
    background: linear-gradient(135deg, #F4F6F9 0%, #E3E9F0 40%, #F7F9FB 58%, #DBE2EA 100%);
    border: 1px solid #D3DAE3;
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
.mat-plate::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    block-size: 1px;
    background: rgba(255, 255, 255, .9);
}
.mat-plate h3 { font-family: var(--mono); font-size: 21px; letter-spacing: .02em; margin-block-end: 10px; }
.mat-plate p { font-size: 14.5px; }
.mat-spec { display: block; margin-block-start: 14px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }

.certs { display: grid; gap: 14px; }
.cert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color .3s, transform .3s;
}
.cert:hover { border-color: rgba(27, 79, 216, .35); transform: translateY(-2px); }
.cert svg { color: var(--blue); flex-shrink: 0; margin-block-start: 2px; }
.cert h3 { font-size: 15.5px; }
.cert p { font-size: 13.5px; color: var(--muted); }
.quality-note {
    font-size: 13.5px;
    color: var(--muted);
    border-inline-start: 3px solid var(--blue);
    padding-inline-start: 14px;
    margin-block-start: 8px;
}

/* ---------- Projects / cases ---------- */
.cases-wrap { overflow: hidden; }
.cases {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(430px, 82vw);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block: 6px 26px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.case {
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform .35s, box-shadow .35s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.case-media {
    position: relative;
    block-size: 180px;
    background: linear-gradient(150deg, var(--navy-800), var(--navy-900) 62%, #14305E);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.case-media::before, .case-media::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    block-size: 1px;
    background: rgba(255, 255, 255, .12);
}
.case-media::before { inset-block-start: 34%; }
.case-media::after { inset-block-start: 68%; }
.case-media.has-img {
    background-size: cover;
    background-position: center;
}
.case-media.has-img::before {
    inset: 0;
    block-size: auto;
    background: linear-gradient(180deg, rgba(8, 18, 40, .18), rgba(8, 18, 40, .7));
}
.case-media.has-img::after { display: none; }
.case-cap { font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: #B9C9EE; letter-spacing: .05em; }
.case-media.has-img .case-cap {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.case-body { padding: 20px 22px 24px; }
.case-meta { font-size: 11.5px; letter-spacing: .13em; color: var(--muted); }
.case h3 { font-size: 19px; margin-block: 10px 8px; }
.case p { font-size: 14px; }

/* ---------- Field + stats ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.tile {
    margin: 0;
    background: linear-gradient(150deg, #F3F5F8, #E2E8EF);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 20px 18px;
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
    color: var(--ink-2);
    transition: transform .3s, border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(27, 79, 216, .3); }
.tile svg { inline-size: 68px; block-size: 68px; opacity: .8; }
.tile figcaption { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.stats {
    margin-block-start: clamp(52px, 8vw, 84px);
    background: linear-gradient(120deg, var(--navy-900), var(--navy-800) 55%, #0C1E42);
    position: relative;
    overflow: hidden;
    padding-block: clamp(42px, 6vw, 62px);
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(560px 260px at 82% 0%, rgba(46, 91, 227, .3), transparent 65%);
    pointer-events: none;
}
.stats-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.stats-row li {
    display: grid;
    gap: 10px;
    padding: 24px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, background .3s;
}
.stats-row li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.stats-row svg {
    inline-size: 26px;
    block-size: 26px;
    color: var(--blue-soft);
    opacity: .95;
}
.stats-row strong {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
/* Sized/weighted on its own — some monospace fallbacks synthesize a heavy
   "+" glyph wildly out of proportion at weight 800, so it must not just
   inherit the big number's size/weight. */
.stats-row .stat-suffix {
    font-size: .5em;
    font-weight: 600;
    margin-inline-start: 1px;
}
.stats-row span { font-size: 13.5px; color: #93A5C7; }

/* Light variant (inner pages, on a white .sec-band) */
.stats-row--light li { background: var(--paper); border-color: var(--line); }
.stats-row--light li:hover { background: #fff; border-color: rgba(27, 79, 216, .28); box-shadow: var(--shadow-1); }
.stats-row--light svg { color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-inline-size: 900px; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover { border-color: rgba(27, 79, 216, .28); }
.faq-item[open] { border-color: rgba(27, 79, 216, .4); box-shadow: var(--shadow-2); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    font-weight: 650;
    font-size: 15.5px;
    color: var(--ink);
    transition: color .2s;
}
.faq-item summary:hover { color: var(--blue); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
/* CSS plus → minus toggle (no SVG). */
.faq-ico {
    position: relative;
    flex-shrink: 0;
    inline-size: 20px;
    block-size: 20px;
}
.faq-ico::before,
.faq-ico::after {
    content: '';
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    background: var(--blue);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.2, .65, .25, 1), opacity .3s;
}
.faq-ico::before { inline-size: 14px; block-size: 2px; transform: translate(-50%, -50%); }
.faq-ico::after { inline-size: 2px; block-size: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { padding: 0 22px 20px; font-size: 14.5px; color: var(--text); }
.faq-a p { margin: 0; }
.faq-item[open] .faq-a { animation: faqReveal .3s ease both; }
@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA panel ---------- */
.cta-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, var(--navy-900) 0%, var(--navy-800) 62%, #0E2148 100%);
    border-radius: 28px;
    padding: clamp(44px, 7vw, 84px) clamp(24px, 6vw, 80px);
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-2);
}
.cta-glow {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(620px 300px at 72% 6%, rgba(46, 91, 227, .38), transparent 62%),
        radial-gradient(520px 280px at 18% 96%, rgba(110, 143, 240, .18), transparent 62%);
    pointer-events: none;
}
.cta-panel h2 { position: relative; color: #fff; font-size: clamp(28px, 4.4vw, 48px); }
.cta-panel p { position: relative; color: #A9BADF; max-inline-size: 62ch; margin-inline: auto; margin-block-start: 16px; font-size: 16px; }
.cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-block-start: 34px;
}

/* ---------- Footer ---------- */
.ftr {
    position: relative;
    background: var(--navy-900);
    color: #93A5C7;
    padding-block: clamp(40px, 6vw, 60px) 26px;
    font-size: 14px;
}
/* Hairline top accent that echoes the seam motif. */
.ftr::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    block-size: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 143, 240, .5) 50%, transparent);
}

/* Quick-contact strip. */
.ftr-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block-end: clamp(30px, 4vw, 44px);
    margin-block-end: clamp(30px, 4vw, 44px);
    border-block-end: 1px solid rgba(147, 165, 199, .16);
}
.ftr-top-eyebrow { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6E8FF0; }
.ftr-top-mail {
    display: inline-block;
    margin-block-start: 6px;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 750;
    color: #fff;
    letter-spacing: -0.02em;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px;
    transition: background-size .3s;
}
.ftr-top-mail:hover { color: #fff; background-size: 100% 2px; }
.ftr-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.ftr-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 650;
    color: #C9D6F2;
    letter-spacing: .01em;
}
.ftr-phone svg { color: var(--blue-soft); transition: transform .3s; }
.ftr-phone:hover { color: #fff; }
.ftr-phone:hover svg { transform: rotate(-8deg) scale(1.05); }

.ftr-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: clamp(26px, 4vw, 40px);
}
.ftr .brand-w { color: #fff; font-size: 18px; }
.ftr .brand-w b { color: var(--blue-soft); }
.ftr-brand p { margin-block-start: 14px; max-inline-size: 40ch; }
.ftr-spec { font-size: 12px; letter-spacing: .1em; color: #5F7195; }
.ftr h4 {
    color: #C9D6F2;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-block-end: 14px;
}
.ftr ul { display: grid; gap: 9px; }
.ftr a { transition: color .2s; }
.ftr a:hover { color: #fff; }
/* Nav-list links slide slightly toward the reading direction on hover. */
.ftr-grid ul:not(.ftr-contact) a { display: inline-block; transition: color .2s, transform .2s; }
.ftr-grid ul:not(.ftr-contact) a:hover { transform: translateX(4px); }
[dir="rtl"] .ftr-grid ul:not(.ftr-contact) a:hover { transform: translateX(-4px); }
.ftr .seam { opacity: .22; margin-block: clamp(30px, 5vw, 44px) 0; }
.ftr-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block-start: 20px;
    font-size: 13px;
}
.ftr-top-btn {
    display: inline-grid;
    place-items: center;
    inline-size: 40px;
    block-size: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(147, 165, 199, .28);
    background: rgba(255, 255, 255, .04);
    color: #C9D6F2;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ftr-top-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-3px); }
/* Higher specificity than `.ftr ul { display: grid }` so the language row stays horizontal. */
.ftr .ftr-langs { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; letter-spacing: .08em; }
.ftr .ftr-langs a { padding-block: 2px; }
.ftr-langs a[aria-current] { color: #fff; font-weight: 700; }

/* ---------- Contact page ---------- */
.page-head { padding-block: calc(70px + clamp(40px, 8vh, 76px)) 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(26px, 4vw, 48px);
    align-items: start;
}
.contact-info {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    inset-block-start: 92px;
}
.contact-info h2 { font-size: 21px; margin-block-end: 22px; }
.contact-info ul { display: grid; gap: 18px; }
.contact-info .mono { display: block; font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-block-end: 4px; }
.contact-info p { font-size: 15px; color: var(--ink-2); }
.contact-info a:hover { color: var(--blue); }
.contact-info .seam { margin-block: 22px; }
.contact-note { font-size: 13.5px; color: var(--muted); }

.contact-form form { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-block-end: 16px; }
.field label { font-size: 13.5px; font-weight: 620; color: var(--ink-2); }
.field input, .field select, .field textarea {
    inline-size: 100%;
    padding: 13px 15px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-block-size: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(27, 79, 216, .12);
}
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--err); }
.err { color: var(--err); font-size: 12.5px; }

.field-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 450; color: var(--text); cursor: pointer; }
.field-consent input { inline-size: 18px; block-size: 18px; margin-block-start: 2px; accent-color: var(--blue); flex-shrink: 0; }
.field-consent a { color: var(--blue); text-decoration: underline; }

.alert { border-radius: 14px; padding: 16px 20px; margin-block-end: 22px; font-size: 14.5px; }
.alert strong { display: block; margin-block-end: 2px; }
.alert p { margin: 0; }
.alert-ok { background: #EAF7EF; border: 1px solid #BFE5CC; color: var(--ok); }
.alert-err { background: #FCEEF1; border: 1px solid #F2C6CF; color: var(--err); }

.hp-field {
    position: absolute;
    inset-inline-start: -9999px;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ---------- Contact 3D hero (Spline robot) ----------
   Dark band echoing the home hero; copy on the start side, interactive robot
   on the end side. Logical properties throughout (ar is RTL). */
.c3d {
    position: relative;
    overflow: hidden;
    background: #0A1834;
    padding-block: calc(70px + clamp(34px, 7vh, 66px)) clamp(38px, 6vw, 74px);
}
.c3d-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(720px 460px at 82% 6%, rgba(46, 91, 227, .32), transparent 62%),
        radial-gradient(620px 480px at 4% 104%, rgba(27, 79, 216, .16), transparent 60%),
        linear-gradient(180deg, #0B1C3D 0%, #081228 100%);
}
.c3d-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 74px 74px;
    -webkit-mask-image: radial-gradient(820px 520px at 28% 30%, #000 22%, transparent 74%);
    mask-image: radial-gradient(820px 520px at 28% 30%, #000 22%, transparent 74%);
}
.c3d-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: clamp(24px, 4vw, 52px);
}
.c3d-copy { position: relative; z-index: 3; }
.c3d h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.03; margin-block: 16px 0; color: #fff; }
.c3d .tag { color: #8FA9F2; }
.c3d .tag::before { background: #8FA9F2; }
.c3d .lead { margin-block-start: 18px; color: #AFC0E4; }
.c3d-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 28px; }
.c3d .btn-ghost { background: rgba(255, 255, 255, .06); color: #EAF0FF; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.c3d .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .42); }

/* Robot stage — the web component needs an explicit box or it collapses. */
.c3d-stage {
    position: relative;
    z-index: 2;
    min-block-size: clamp(350px, 48vw, 570px);
    display: grid;
    place-items: center;
}
.c3d-halo {
    position: absolute;
    inset: 2%;
    background: radial-gradient(46% 44% at 52% 48%, rgba(46, 91, 227, .42), transparent 70%);
    pointer-events: none;
}
.c3d-viewer {
    position: relative;
    z-index: 2;
    display: block;
    inline-size: 100%;
    block-size: clamp(350px, 48vw, 570px);
    background: transparent;
}
.c3d-hint {
    position: absolute;
    inset-block-end: 4px;
    inset-inline-start: 4px;
    z-index: 3;
    margin: 0;
    max-inline-size: 62%;
    font-size: 11.5px;
    letter-spacing: .08em;
    color: rgba(174, 190, 224, .66);
    pointer-events: none;
}

@media (max-width: 860px) {
    .c3d-grid { grid-template-columns: 1fr; }
    .c3d-stage { order: -1; min-block-size: 330px; }
    .c3d-viewer { block-size: 330px; }
}
@media (prefers-reduced-motion: reduce) {
    /* keep the scene, drop the "move your cursor" nudge */
    .c3d-hint { display: none; }
}

/* ---------- Legal ---------- */
.legal-body { display: grid; gap: 28px; padding-block-end: 30px; }
.legal-body h2 { font-size: 20px; margin-block-end: 8px; }
.legal-body p { font-size: 15px; }

/* ---------- Active nav + section detail link ---------- */
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.sec-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 18px;
    font-weight: 650;
    font-size: 14.5px;
    color: var(--blue);
}
.sec-more .arr { transition: translate .25s; }
.sec-more:hover .arr { translate: 4px 0; }
[dir="rtl"] .sec-more .arr { scale: -1 1; }
[dir="rtl"] .sec-more:hover .arr { translate: -4px 0; }

/* ---------- Breadcrumb (sits inside the page hero) ---------- */
.crumbs { margin-block-end: clamp(18px, 3vw, 28px); }
.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-family: var(--mono);
    color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink-2); }
.crumb-sep { color: var(--line); }

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: calc(70px + clamp(28px, 5vw, 48px)) clamp(38px, 6vw, 70px);
    background:
        radial-gradient(680px 380px at 82% 0%, rgba(27, 79, 216, .07), transparent 62%),
        linear-gradient(180deg, #FBFCFE 0%, #EEF2F7 100%);
    border-block-end: 1px solid var(--line);
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 28, 61, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 28, 61, .04) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(720px 420px at 88% 20%, #000 20%, transparent 72%);
    mask-image: radial-gradient(720px 420px at 88% 20%, #000 20%, transparent 72%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-num {
    position: absolute;
    inset-inline-end: clamp(-10px, 2vw, 40px);
    inset-block-start: 50%;
    translate: 0 -34%;
    font-family: var(--mono);
    font-size: clamp(130px, 21vw, 260px);
    font-weight: 700;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(11, 28, 61, .09);
    user-select: none;
    pointer-events: none;
    z-index: 0;
}
[dir="rtl"] .page-hero-num { inset-inline-end: auto; inset-inline-start: clamp(-10px, 2vw, 40px); }
.page-hero-copy { position: relative; max-inline-size: 64ch; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-block: 16px 0; }
.page-hero .lead { margin-block-start: 18px; font-size: clamp(16px, 1.6vw, 18px); }

/* ---------- Inner: light stats band (company) ---------- */
.sec-band {
    padding-block: clamp(40px, 6vw, 66px);
    background: #fff;
    border-block: 1px solid var(--line);
}
.stats-row--light strong { color: var(--ink); }
.stats-row--light span { color: var(--muted); }

/* ---------- Inner: products / sectors spacing ---------- */
.cards--wide, .sectors--page { margin-block-start: 8px; }

/* ---------- Inner: process vertical timeline ---------- */
.tl-wrap { position: relative; }
/* Vertical echo of the homepage production-line spark (--prc, JS-driven). */
.tl-rail {
    position: absolute;
    inset-inline-start: 21px;
    inset-block: 22px 22px;
    inline-size: 2px;
    pointer-events: none;
}
.tl-rail-fill {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    inline-size: 100%;
    block-size: calc(var(--prc, 0) * 100%);
    background: linear-gradient(180deg, #2E5BE3, var(--blue-soft));
    border-radius: 2px;
}
.tl-spark {
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: calc(var(--prc, 0) * 100%);
    translate: -50% -50%;
    inline-size: 13px;
    block-size: 13px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--blue);
    box-shadow: 0 0 0 6px rgba(27, 79, 216, .14), 0 0 20px rgba(46, 91, 227, .8);
}

.timeline { position: relative; display: grid; }
.tl-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 22px;
    padding-block-end: 34px;
}
.tl-step::before {
    content: '';
    position: absolute;
    inset-inline-start: 21px;
    inset-block: 44px 0;
    inline-size: 2px;
    background: var(--line);
}
.tl-step:last-child { padding-block-end: 0; }
.tl-step:last-child::before { display: none; }
.tl-num {
    position: relative;
    z-index: 1;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1.5px solid rgba(27, 79, 216, .3);
    color: var(--blue);
    box-shadow: 0 0 0 5px rgba(27, 79, 216, .06);
}
.tl-body { padding-block-start: 3px; }
.tl-step-idx {
    display: block;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .1em;
    color: var(--muted);
    margin-block-end: 4px;
}
.tl-body h2 { font-size: 19px; margin-block-end: 6px; }
.tl-body p { font-size: 14.5px; }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-block-start: 12px; }
.tl-dur {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--ink-2);
    background: rgba(27, 79, 216, .07);
    border: 1px solid rgba(27, 79, 216, .2);
    border-radius: 7px;
    padding: 3px 8px;
}

/* ---------- Inner: projects grid ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ---------- Inner: shared content bits ---------- */
.sub-head { display: grid; gap: 10px; margin-block-end: clamp(22px, 3vw, 34px); }
.sub-head h2 { font-size: clamp(22px, 3vw, 33px); }
.sub-head .lead { margin-block-start: 4px; }

.wc-num {
    display: inline-grid;
    place-items: center;
    min-inline-size: 34px;
    block-size: 30px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    background: rgba(27, 79, 216, .07);
    border: 1px solid rgba(27, 79, 216, .28);
    border-radius: 8px;
    padding-inline: 8px;
}

.card-feats { display: grid; gap: 8px; margin-block: 16px 0; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.card-feats li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.card-feats li::before {
    content: '';
    flex-shrink: 0;
    inline-size: 6px;
    block-size: 6px;
    margin-block-start: 6px;
    border-radius: 2px;
    background: var(--blue);
    rotate: 45deg;
}

.tl-out {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--muted);
}
.tl-out::before { content: '\2192'; color: var(--blue); }
[dir="rtl"] .tl-out::before { content: '\2190'; }

.docs-note {
    background: linear-gradient(150deg, #F3F5F8, #E4EAF1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    font-size: 15px;
    color: var(--ink-2);
    border-inline-start: 3px solid var(--blue);
}

/* Quality page: materials + certs laid out full-width. */
.mats--row { grid-template-columns: repeat(2, 1fr); }
.certs--grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Home overview bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 178px;
    gap: 16px;
}
.bento-tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.2, .65, .25, 1), box-shadow .35s, border-color .3s;
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(27, 79, 216, .3); }
.bt-a { grid-column: span 2; grid-row: span 2; }
.bt-b, .bt-e, .bt-f { grid-column: span 2; }
.bt-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }

/* A — dark statement tile */
.bt-dark { background: linear-gradient(150deg, var(--navy-800), var(--navy-900) 74%); border-color: transparent; }
.bt-dark .tag { color: #8FA9F2; }
.bt-dark .tag::before { background: #8FA9F2; }
.bt-a .bt-lead { color: #C7D4EE; font-size: 15.5px; margin-block: 14px 0; position: relative; }
.bt-facts { display: grid; gap: 8px; margin-block: 16px auto 0; position: relative; }
.bt-facts li { display: flex; gap: 9px; font-size: 13.5px; color: #AFC0E4; }
.bt-facts .mono { color: var(--blue-soft); }
.bt-a .btn-line-light { margin-block-start: 16px; position: relative; }
.bt-motif { position: absolute; inset-inline-end: -34px; inset-block-end: -30px; inline-size: 190px; color: #fff; opacity: .06; }

/* B — sectors */
.bt-secs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; margin-block-start: 16px; }
.bt-sec { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); min-inline-size: 0; }
.bt-sec svg { inline-size: 22px; block-size: 22px; color: var(--blue); flex-shrink: 0; }
.bt-sec span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* C/D — stat tiles */
.bt-stat { justify-content: center; }
.bt-stat strong { font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bt-stat span { font-size: 13px; color: var(--muted); margin-block-start: 4px; }
.bt-stat.bt-dark strong { color: #fff; }
.bt-stat.bt-dark span { color: #93A5C7; }

/* E — materials (steel) */
.bt-steel { background: linear-gradient(150deg, #F2F5F8, #E1E7EE 62%, #F5F8FA); border-color: #D6DDE6; }
.bt-mats { display: flex; gap: 30px; margin-block-start: auto; flex-wrap: wrap; }
.bt-mat b { display: block; font-family: var(--mono); font-size: 23px; color: var(--ink); letter-spacing: .01em; }
.bt-mat span { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* F — certificates */
.bt-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; }
.bt-certs li { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; }

@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bt-a { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-tile, .bt-a, .bt-b, .bt-e, .bt-f { grid-column: auto; grid-row: auto; min-block-size: 158px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav {
        position: fixed;
        inset-block: 70px 0;
        inset-inline-end: 0;
        z-index: 45;
        inline-size: min(88vw, 360px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        overflow-y: auto;
        background: rgba(255, 255, 255, .98);
        -webkit-backdrop-filter: blur(16px) saturate(1.3);
        backdrop-filter: blur(16px) saturate(1.3);
        border-inline-start: 1px solid var(--line);
        box-shadow: -24px 0 60px -30px rgba(11, 28, 61, .5);
        padding: 18px 24px 28px;
        translate: 100% 0;
        visibility: hidden;
        transition: translate .26s cubic-bezier(.2, .7, .2, 1), visibility .26s;
    }
    [dir="rtl"] .nav { inset-inline-end: auto; inset-inline-start: 0; translate: -100% 0; }
    body.nav-open .nav { translate: 0 0; visibility: visible; }
    /* The drawer always has its own opaque light background, so the dark-hero
       pale-text override (for the transparent desktop nav bar) must not carry
       over here — it was leaving links almost invisible (near-white on white)
       on the home/contact hero. #site-nav outranks the .hdr:not(.scrolled)
       rule's specificity regardless of source order. */
    body.is-home .hdr #site-nav a,
    body.has-dark-hero .hdr #site-nav a { color: var(--ink-2); }
    body.is-home .hdr #site-nav a:hover,
    body.has-dark-hero .hdr #site-nav a:hover,
    body.is-home .hdr #site-nav a[aria-current="page"],
    body.has-dark-hero .hdr #site-nav a[aria-current="page"],
    body.is-home .hdr #site-nav a.nav-contact,
    body.has-dark-hero .hdr #site-nav a.nav-contact { color: var(--blue); }
    /* Staggered item reveal once the drawer opens — kept short so the drawer
       reads as fully-formed almost immediately (a slow reveal made it look
       broken/half-rendered, with page content peeking through the scrim). */
    .nav a {
        padding: 13px 6px;
        font-size: 16px;
        border-block-end: 1px solid rgba(11, 28, 61, .06);
        opacity: 0;
        translate: 12px 0;
        transition: opacity .18s, translate .18s, color .2s;
    }
    [dir="rtl"] .nav a { translate: -12px 0; }
    body.nav-open .nav a { opacity: 1; translate: 0 0; }
    body.nav-open .nav a:nth-child(1) { transition-delay: .02s; }
    body.nav-open .nav a:nth-child(2) { transition-delay: .04s; }
    body.nav-open .nav a:nth-child(3) { transition-delay: .06s; }
    body.nav-open .nav a:nth-child(4) { transition-delay: .08s; }
    body.nav-open .nav a:nth-child(5) { transition-delay: .10s; }
    body.nav-open .nav a:nth-child(6) { transition-delay: .12s; }
    body.nav-open .nav a:nth-child(7) { transition-delay: .14s; }
    body.nav-open .nav a:nth-child(8) { transition-delay: .16s; }
    .nav a::after { display: none; }
    .nav-contact { margin-block-start: 6px; color: var(--blue); font-weight: 650; }
    .burger { display: block; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; margin-block-start: 10px; }
    .hero-model { inline-size: min(64vw, 380px); block-size: min(64vw, 380px); }
    .about-grid, .quality-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .prc-steps { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .sectors { grid-template-columns: repeat(2, 1fr); }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { position: static; }
    .cases-grid { grid-template-columns: 1fr; }
    .mats--row, .certs--grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cards, .form-row { grid-template-columns: 1fr; }
    .prc-steps { grid-template-columns: 1fr 1fr; }
    .prc-track { display: none; }
    .sec-num { display: none; }
    .sec-head { grid-template-columns: 1fr; }
    .hdr-cta { display: none; }
    .hero-stats { gap: 22px; }
    .hero-stats strong { font-size: 21px; }
}

@media (max-width: 480px) {
    .sectors, .tiles, .prc-steps, .why-grid { grid-template-columns: 1fr; }
    .cases { grid-auto-columns: 88vw; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .rv { opacity: 1; translate: none; transition: none; }
    html.js .hero-visual, html.js .hero-sweep { animation: none; }
    .nav a { opacity: 1 !important; translate: none !important; }
    body.nav-open .nav a { transition-delay: 0s !important; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}





