/* Masnaʿ — precision industrial. Graphite and cool concrete with the brand colour used sparingly,
   a calm full-bleed hero, fine design-grid details, a quiet product belt and a numbered catalogue. */
:root {
    --accent: #ea580c;
    --accent-ink: #fff;
    --bg: #f4f5f6;
    --bg-2: #eceef0;
    --surface: #ffffff;
    --ink: #16191d;
    --ink-soft: #5a626c;
    --line: #dfe2e6;
    --steel: #15181c;
    --steel-2: #1c2025;
    --steel-line: #2c3238;
    --steel-ink: #eceef0;
    --steel-soft: #9aa3ad;
    --display: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --wrap: 1200px;
    --r: 10px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0f1215;
    --bg-2: #14181c;
    --surface: #181c21;
    --ink: #e8eaed;
    --ink-soft: #9ea7b1;
    --line: #272d34;
    --steel: #0b0d10;
    --steel-2: #121519;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 1rem/1.75 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
:is(:lang(ar), :lang(ku)) :is(h1, h2, h3) { font-family: var(--body); letter-spacing: 0; line-height: 1.35; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.hide, .is-empty { display: none !important; }

.label { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.label--light { color: var(--steel-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .75rem 1.5rem; border-radius: var(--r); font: 500 .98rem/1 var(--body); border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn svg { width: 17px; height: 17px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn .i-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .i-arrow { transform: scaleX(-1) translateX(3px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-line { border-color: color-mix(in srgb, currentColor 30%, transparent); color: inherit; }
.btn-line:hover { border-color: currentColor; }
.btn-line--light { color: var(--steel-ink); }

/* Top bar + header */
.topbar { background: var(--steel); color: var(--steel-soft); font: 400 .78rem/1 var(--mono); }
.topbar-in { display: flex; gap: 1.8rem; justify-content: flex-end; padding: .6rem 0; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: .45rem; }
.tb-item svg { width: 13px; height: 13px; opacity: .7; }
.tb-item:hover { color: var(--steel-ink); }

.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hdr.is-stuck { box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .5); }
.hdr-in { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 600 1.12rem/1.2 var(--display); letter-spacing: -.01em; }
:is(:lang(ar), :lang(ku)) .brand { font-family: var(--body); }
.brand-logo { height: 40px; width: auto; }
.brand-logo--dark { display: none; }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
.nav { display: flex; gap: 1.8rem; margin-inline-start: auto; font-size: .93rem; }
.nav a { position: relative; padding: .4rem 0; color: var(--ink-soft); transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-tools { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.hdr-cta { min-height: 40px; padding: .5rem 1.1rem; font-size: .9rem; }

/* Hero: calm full-bleed photo (or a fine engineering grid), headline straight on it */
.hero { position: relative; min-height: min(88vh, 780px); display: grid; align-items: end; background: var(--steel); color: var(--steel-ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2;
    background-color: var(--steel);
    background-image:
        radial-gradient(70% 60% at 85% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 100% 100%, 96px 96px, 96px 96px; }
.hero-media[style*="url("] { animation: slowzoom 24s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(10, 12, 15, .55) 100%); }
[dir="ltr"] .hero::before, [dir="rtl"] .hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 70%; z-index: -1; }
[dir="ltr"] .hero::before { background: linear-gradient(90deg, rgba(10, 12, 15, .7), transparent); }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(10, 12, 15, .7), transparent); }
.hero-grid { padding: 10rem 0 5rem; }
.plate { max-width: 680px; }
.plate-tag { display: inline-flex; align-items: center; gap: .7rem; font: 400 .76rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(236, 238, 240, .75); margin-bottom: 1.6rem; }
.plate-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.plate h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
:is(:lang(ar), :lang(ku)) .plate h1 { font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.plate-tagline { font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 300; color: rgba(236, 238, 240, .8); margin: 1.3rem 0 2.2rem; max-width: 46ch; }
.plate-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Product belt — quiet, on the page surface */
.belt { background: var(--surface); color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line); }
.belt-track { display: flex; width: max-content; padding: 1.15rem 0; font: 500 1rem/1 var(--display); white-space: nowrap; animation: belt 50s linear infinite; }
:is(:lang(ar), :lang(ku)) .belt-track { font-family: var(--body); }
.belt-track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-inline-end: 2.2rem; color: var(--ink-soft); }
.belt-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
[dir="rtl"] .belt-track { animation-name: belt-rtl; }
.belt:hover .belt-track { animation-play-state: paused; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sec-head { margin-bottom: 3rem; max-width: 720px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sec-head--row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.3rem; }
.lead { font-size: 1.08rem; font-weight: 300; color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 58ch; }
.link-arrow { font-weight: 500; color: var(--ink); display: inline-flex; gap: .5rem; padding-bottom: .2rem; border-bottom: 1px solid var(--accent); }
[dir="rtl"] .link-arrow span { transform: scaleX(-1); display: inline-block; }
.about-frame { position: relative; padding: 14px; }
.about-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 4px; position: relative; z-index: 1; }
.about-fallback { display: none; }
.about-frame:not(:has(.about-photo)) { aspect-ratio: 5 / 4; }
.about-frame:not(:has(.about-photo)) .about-fallback { display: block; position: absolute; inset: 14px; border-radius: 4px;
    background:
        radial-gradient(circle at 70% 35%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
        linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px),
        var(--bg-2);
    background-size: 100% 100%, 32px 32px, 32px 32px, 100% 100%; }
.mark { position: absolute; width: 18px; height: 18px; border-color: var(--ink-soft); border-style: solid; border-width: 0; z-index: 2; opacity: .55; }
.mark-a { top: 0; inset-inline-start: 0; border-top-width: 1px; border-inline-start-width: 1px; }
.mark-b { top: 0; inset-inline-end: 0; border-top-width: 1px; border-inline-end-width: 1px; }
.mark-c { bottom: 0; inset-inline-start: 0; border-bottom-width: 1px; border-inline-start-width: 1px; }
.mark-d { bottom: 0; inset-inline-end: 0; border-bottom-width: 1px; border-inline-end-width: 1px; }

/* Catalogue */
.catalogue { background: var(--surface); border-block: 1px solid var(--line); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; counter-reset: cat; }
.pcard { position: relative; display: flex; flex-direction: column; counter-increment: cat; }
.pcard-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; transition: transform .5s, filter .5s; filter: saturate(.92); }
.pcard:hover .pcard-cover { filter: saturate(1.05); }
.pcard-cover--blank { border-radius: 6px; background:
    radial-gradient(circle at 75% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    var(--bg-2);
    background-size: 100% 100%, 24px 24px, 24px 24px, 100% 100%; }
.pcard-body { padding: 1.3rem 0 0; display: flex; flex-direction: column; gap: .45rem; flex: 1; border-top: 0; }
.pcard-body::before { content: counter(cat, decimal-leading-zero); font: 400 .74rem/1 var(--mono); letter-spacing: .12em; color: var(--accent); padding-bottom: .9rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.pcard:hover .pcard-body::before { border-bottom-color: var(--accent); }
.pcard h3 { font-size: 1.25rem; }
.pcard p { margin: 0; color: var(--ink-soft); font-size: .94rem; font-weight: 300; }
.pcard-price { margin-top: auto; padding-top: .5rem; font: 500 .9rem/1.4 var(--body); color: var(--ink); }

/* Process line */
.line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6rem; position: relative; counter-reset: step; }
.line::before { content: ""; position: absolute; top: 19px; inset-inline: 20px; height: 1px; background: var(--line); }
.line li { position: relative; counter-increment: step; }
.node { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); position: relative; margin-bottom: 1.3rem; }
.node::after { content: counter(step, decimal-leading-zero); font: 500 .74rem/1 var(--mono); color: var(--ink-soft); }
.line li:last-child .node { background: var(--accent); border-color: var(--accent); }
.line li:last-child .node::after { color: var(--accent-ink); }
.line h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.line p { margin: 0; color: var(--ink-soft); font-size: .92rem; font-weight: 300; }

/* Factory floor strip */
.floor { background: var(--steel); color: var(--steel-ink); }
.floor .label { color: var(--steel-soft); }
.floor-nav { display: flex; gap: .5rem; }
.gallery-nav { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--steel-ink); border: 1px solid var(--steel-line); cursor: pointer; transition: background .2s, border-color .2s; }
.gallery-nav:hover { border-color: var(--steel-ink); }
.gallery-nav svg { width: 18px; height: 18px; }
[dir="rtl"] .gallery-nav svg { transform: scaleX(-1); }
.gallery-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(1.25rem, (100% - var(--wrap)) / 2) .5rem; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { margin: 0; flex: 0 0 clamp(260px, 32vw, 420px); aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; border-radius: 6px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery-item:hover img { transform: scale(1.04); }

/* Team */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; }
.tcard-avatar { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); font: 500 1rem/1 var(--display); border: 1px solid var(--line); }
.tcard h3 { font: 500 1rem/1.3 var(--body); }
.tcard p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

/* Quote desk */
.desk { background: var(--steel-2); color: var(--steel-ink); padding: clamp(4.5rem, 8vw, 6.5rem) 0; }
.desk-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.desk h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.desk-copy p { color: var(--steel-soft); font-weight: 300; max-width: 50ch; margin: 1.1rem 0 2rem; font-size: 1.06rem; }
.desk-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.desk-card { margin: 0; border-top: 1px solid var(--steel-line); }
.desk-card div { padding: 1.2rem 0; border-bottom: 1px solid var(--steel-line); display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: baseline; }
.desk-card dt { font: 400 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-soft); }
.desk-card dd { margin: 0; font-weight: 400; }

/* Footer */
.ftr { background: var(--steel); color: var(--steel-soft); padding: 4.5rem 0 0; font-size: .92rem; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 42px; width: auto; margin-bottom: .8rem; }
.footer-name { display: block; font: 600 1.25rem/1.3 var(--display); color: var(--steel-ink); }
:is(:lang(ar), :lang(ku)) .footer-name { font-family: var(--body); }
.ftr-brand p { max-width: 44ch; font-weight: 300; }
.ftr-col { display: flex; flex-direction: column; gap: .55rem; }
.ftr-col h4 { margin: 0 0 .5rem; font: 400 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel-ink); }
.ftr-col a:hover { color: var(--steel-ink); }
.socials { display: flex; gap: .5rem; margin-top: 1.1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--steel-line); color: var(--steel-ink); transition: border-color .2s; }
.socials a:hover { border-color: var(--accent); }
.socials svg { width: 16px; height: 16px; }
.ftr-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding: 1.4rem 0; border-top: 1px solid var(--steel-line); font-size: .82rem; }
.footer-credit a { color: var(--steel-ink); border-bottom: 1px solid var(--accent); }

.wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa:hover { transform: translateY(-3px); }

/* Arabic/Kurdish: the mono face has no Arabic glyphs and letter-spacing breaks the joins. */
:is(:lang(ar), :lang(ku)) :is(.label, .plate-tag, .desk-card dt, .ftr-col h4, .topbar) { font-family: var(--body); letter-spacing: 0; font-size: .85rem; text-transform: none; }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes belt { to { transform: translateX(-50%); } }
@keyframes belt-rtl { to { transform: translateX(50%); } }
@keyframes slowzoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 1000px) {
    .nav { display: none; }
    .hdr-tools { margin-inline-start: auto; }
    .about-grid, .desk-grid { grid-template-columns: 1fr; }
    .line { grid-template-columns: 1fr; gap: 0; }
    .line::before { top: 20px; bottom: 20px; inset-inline: 19px auto; width: 1px; height: auto; }
    .line li { display: grid; grid-template-columns: 40px 1fr; column-gap: 1.2rem; padding-bottom: 1.8rem; }
    .line li .node { grid-row: span 2; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .topbar, .brand-name, .hdr-cta { display: none; }
    .hero-grid { padding: 7rem 0 3.5rem; }
    .hero::before { width: 100%; }
    .desk-card div { grid-template-columns: 1fr; gap: .3rem; }
    .ftr-grid { grid-template-columns: 1fr; }
}
