/* ================================================================
   Nuqtah Network — ported from nuqtah-design-v2.html
   Fonts self-hosted; subsets split so a locale downloads only what it
   renders. Logical properties throughout for bidi.
   ================================================================ */

/* ── Fonts ─────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Marcellus';
    src: url('/static/fonts/marcellus-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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;
}

/* Variable font: one file covers 300–600. */
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/static/fonts/ibm-plex-sans-latin.woff2') format('woff2');
    font-weight: 300 600;
    font-style: normal;
    font-display: swap;
    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;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/static/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
    font-weight: 300 600;
    font-style: normal;
    font-display: swap;
    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: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-300-arabic.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-300-latin.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    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;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-400-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-500-arabic.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-500-latin.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    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;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-600-latin.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    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;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/static/fonts/ibm-plex-sans-arabic-700-latin.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    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 {
    --maroon: #8A1538;
    --maroon-deep: #5E0E26;
    --maroon-ink: #3D0918;
    --gold: #C9A227;
    --gold-light: #E9D8A6;
    --gold-pale: #F5EDD8;
    --ivory: #FBF9F4;
    --stone: #EDE7DC;
    --ink: #1C1A18;
    --muted: #6B6259;
    --display: 'Marcellus', Georgia, serif;
    --body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --gut: clamp(20px, 4vw, 40px);
}

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

body {
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html[dir=rtl] body { font-family: var(--ar); line-height: 1.9; letter-spacing: 0; }
html[dir=rtl] .d { font-family: var(--ar); font-weight: 700; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.d { font-family: var(--display); font-weight: 400; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* type scale — wide range is the point */
h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); line-height: 1.1; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; }
html[dir=rtl] h1 { line-height: 1.25; letter-spacing: 0; }
html[dir=rtl] h2 { line-height: 1.35; }
html[dir=rtl] h3 { line-height: 1.45; }

.kicker { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: block; }
html[dir=rtl] .kicker { letter-spacing: 0; text-transform: none; font-size: .9rem; font-weight: 600; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.hair { height: 1px; background: var(--gold); opacity: .55; border: 0; }

.skip { position: absolute; inset-inline-start: -9999px; z-index: 999; background: var(--maroon); color: #fff; padding: 10px 18px; text-decoration: none; }
.skip:focus { inset-inline-start: 12px; top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Chrome ────────────────────────────────────────────────────── */

.topbar { background: var(--maroon-ink); color: #DCCDBE; font-size: .78rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; opacity: .8; }
.topbar a:hover { opacity: 1; color: var(--gold-light); }
.topbar .set { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.lang { background: none; border: 1px solid rgba(233,216,166,.45); color: var(--gold-light); border-radius: 2px; padding: 3px 12px; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; opacity: 1; }
.lang:hover { background: rgba(233,216,166,.15); }

header.nav { position: sticky; top: 0; z-index: 80; background: rgba(251,249,244,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--stone); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 14px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; display: block; line-height: 1.1; }
html[dir=rtl] .brand b { font-family: var(--ar); font-weight: 700; }
.brand small { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
html[dir=rtl] .brand small { letter-spacing: 0; text-transform: none; font-size: .72rem; }
.menu { display: flex; gap: 28px; font-size: .92rem; }
.menu a { text-decoration: none; padding-block: 6px; position: relative; }
.menu a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 1.5px; width: 0; background: var(--gold); transition: width .25s; }
.menu a:hover::after, .menu a.on::after { width: 100%; }

.navtoggle { display: none; background: none; border: 1px solid var(--stone); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.navtoggle i { display: block; width: 20px; height: 1.5px; background: var(--ink); }

.btn { display: inline-block; text-decoration: none; padding: 14px 30px; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--maroon); background: var(--maroon); color: #fff; transition: .22s; cursor: pointer; font-family: inherit; text-align: center; }
html[dir=rtl] .btn { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn.line { background: transparent; color: var(--maroon); }
.btn.line:hover { background: var(--maroon); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--maroon-ink); }
.btn.gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn.onmaroon { background: transparent; border-color: var(--gold-light); color: var(--gold-light); }
.btn.onmaroon:hover { background: var(--gold-light); color: var(--maroon-ink); }

/* ── Hero slider ───────────────────────────────────────────────── */

.hero { position: relative; background: var(--maroon-ink); color: #F4EAE0; overflow: hidden; min-height: min(86vh, 760px); display: grid; }
.slide { grid-area: 1/1; position: relative; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease; }
.slide.on { opacity: 1; visibility: visible; }
.slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(61,9,24,.95) 0%, rgba(94,14,38,.88) 45%, rgba(94,14,38,.35) 100%); }
html[dir=rtl] .slide .bg::after { background: linear-gradient(255deg, rgba(61,9,24,.95) 0%, rgba(94,14,38,.88) 45%, rgba(94,14,38,.35) 100%); }
.slide .inner { position: relative; z-index: 2; padding-block: clamp(90px, 13vh, 150px); width: 100%; }
.slide h1, .slide h2 { color: #fff; max-width: 15ch; margin: 20px 0 0; font-size: clamp(2.9rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.01em; }
html[dir=rtl] .slide h1, html[dir=rtl] .slide h2 { line-height: 1.25; letter-spacing: 0; }
.slide h1 em, .slide h2 em { font-style: normal; color: var(--gold-light); display: block; }
.slide p { margin-top: 24px; max-width: 42ch; color: rgba(244,234,224,.85); font-size: 1.1rem; }
.slide .acts { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero .lattice { position: absolute; inset: 0; z-index: 1; opacity: .22; pointer-events: none; }

.hero-ui { position: absolute; inset-inline-start: 0; bottom: 0; z-index: 5; width: 100%; }
.hero-ui .wrap { display: flex; align-items: center; gap: 24px; padding-block: 26px; flex-wrap: wrap; }
.dots { display: flex; gap: 0; flex: 1; max-width: 420px; }
.dot { flex: 1; background: none; border: 0; padding: 0; cursor: pointer; height: 34px; display: flex; align-items: center; }
.dot i { display: block; width: 100%; height: 2px; background: rgba(244,234,224,.28); position: relative; overflow: hidden; }
.dot i::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 0; background: var(--gold); }
.dot[aria-selected=true] i::after { width: 100%; transition: width .45s; }
.arrows { display: flex; gap: 8px; }
.arw { width: 46px; height: 46px; border: 1px solid rgba(233,216,166,.45); background: none; color: var(--gold-light); cursor: pointer; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; transition: .2s; }
.arw:hover { background: var(--gold-light); color: var(--maroon-ink); }
html[dir=rtl] .arw { transform: scaleX(-1); }

/* highlights strip — factual only */
.strip { background: var(--maroon); color: var(--gold-light); border-block: 1px solid rgba(233,216,166,.25); }
.strip .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; flex-wrap: wrap; }
.strip li { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.strip b { font-family: var(--display); font-size: 1.25rem; color: #fff; font-weight: 400; }
html[dir=rtl] .strip b { font-family: var(--ar); font-weight: 700; }

/* ── Sections ──────────────────────────────────────────────────── */

section { padding-block: clamp(72px, 10vw, 120px); }
.head { max-width: 60ch; margin-bottom: 56px; }
.head h2 { margin: 16px 0 18px; }
.head.mid { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.figure { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--stone), #d8cfc0); overflow: hidden; }
.figure::after { content: attr(data-cap); position: absolute; inset-inline-start: 0; bottom: 0; background: var(--maroon); color: var(--gold-light); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; }
html[dir=rtl] .figure::after { letter-spacing: 0; text-transform: none; }
.figure .fr { position: absolute; inset: 14px; border: 1px solid rgba(201,162,39,.55); z-index: 2; }

/* Services — editorial list, weighted. Not equal boxes. */
.svc-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--stone); background: #fff; margin-bottom: 1px; }
.svc-feature .txt { padding: clamp(30px, 4vw, 52px); }
.svc-feature .num { font-family: var(--display); color: var(--gold); font-size: .85rem; letter-spacing: .18em; }
.svc-feature h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 14px 0 12px; }
html[dir=rtl] .svc-feature h3 { font-family: var(--ar); font-weight: 700; }
.svc-feature p { color: var(--muted); max-width: 44ch; }
.svc-feature .art { background: linear-gradient(150deg, var(--maroon-deep), var(--maroon-ink)); position: relative; min-height: 260px; overflow: hidden; }
.svc-feature .art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; }

.svc-list { border: 1px solid var(--stone); border-top: 0; background: #fff; }
.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 34px); align-items: center; padding: 26px clamp(20px, 3vw, 40px); border-top: 1px solid var(--stone); text-decoration: none; position: relative; transition: background .2s; }
.svc-row:hover { background: var(--gold-pale); }
.svc-row .n { font-family: var(--display); color: var(--gold); font-size: .9rem; min-width: 2.2em; }
.svc-row .body h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 4px; }
html[dir=rtl] .svc-row .body h3 { font-family: var(--ar); font-weight: 700; }
.svc-row .body p { color: var(--muted); font-size: .92rem; max-width: 60ch; }
.svc-row .go { color: var(--maroon); font-size: 1.3rem; flex: none; }
html[dir=rtl] .svc-row .go { transform: scaleX(-1); }

/* process rail */
.rail { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; margin-top: 20px; }
.rail::before { content: ""; position: absolute; top: 26px; inset-inline-start: 8%; width: 84%; height: 1px; background: var(--gold); opacity: .5; }
.stepc { text-align: center; padding-inline: 10px; }
.stepc .b { width: 52px; height: 52px; margin: 0 auto 20px; border: 1px solid var(--gold); background: var(--ivory); display: grid; place-items: center; font-family: var(--display); color: var(--maroon); position: relative; z-index: 2; transform: rotate(45deg); }
.stepc .b span { transform: rotate(-45deg); }
.stepc h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.stepc p { font-size: .86rem; color: var(--muted); }

/* why — full bleed maroon with lattice */
.why { background: var(--maroon); color: #F4EAE0; position: relative; overflow: hidden; }
.why .lattice { position: absolute; inset: 0; opacity: .16; }
.why .wrap { position: relative; z-index: 2; }
.why h2 { color: #fff; }
.why .kicker { color: var(--gold-light); }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 3vw, 36px); }
.pillar { border-top: 1px solid rgba(233,216,166,.4); padding-top: 22px; }
.pillar h3 { font-family: var(--display); color: var(--gold-light); font-size: 1.1rem; margin-bottom: 10px; }
html[dir=rtl] .pillar h3 { font-family: var(--ar); font-weight: 700; }
.pillar p { font-size: .9rem; color: rgba(244,234,224,.82); }

/* ── Testimonials ─────────────────────────────────────────────── */

.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testi-card { background: #fff; border: 1px solid var(--stone); padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; margin: 0; }
.testi-card blockquote { margin: 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
html[dir=rtl] .testi-card blockquote { font-family: var(--ar); font-weight: 400; line-height: 1.8; }
.testi-card blockquote::before { content: "\201C"; display: block; font-family: var(--display); font-size: 2.6rem; line-height: .6; color: var(--gold); margin-bottom: 10px; }
html[dir=rtl] .testi-card blockquote::before { content: "\201D"; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.testi-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--maroon); font-family: var(--display); font-size: 1.15rem; }
.testi-card figcaption b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); }
.testi-card figcaption small { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* quote band */
.band { background: var(--gold-pale); border-block: 1px solid rgba(201,162,39,.4); text-align: center; }
.band .wrap { padding-block: 56px; }
.band p { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--maroon); max-width: 26ch; margin-inline: auto; line-height: 1.35; }
html[dir=rtl] .band p { font-family: var(--ar); font-weight: 600; line-height: 1.7; }

/* CTA full bleed */
.cta { background: var(--maroon-ink); color: #F4EAE0; text-align: center; position: relative; overflow: hidden; }
.cta .lattice { position: absolute; inset: 0; opacity: .2; }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { color: rgba(244,234,224,.75); max-width: 46ch; margin: 0 auto 34px; }
.cta .acts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Interior page header ──────────────────────────────────────── */

.phead { background: var(--ivory); border-bottom: 1px solid var(--stone); position: relative; overflow: hidden; }
.phead .lattice { position: absolute; inset-inline-end: -10%; top: 0; width: 52%; height: 100%; opacity: .5; }
.phead .wrap { position: relative; z-index: 2; padding-block: clamp(44px, 7vw, 84px); }
.crumb { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--maroon); }
.crumb .sep { color: var(--gold); }
.phead h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.phead .lede { margin-top: 20px; }

/* ── Service detail ────────────────────────────────────────────── */

.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--stone); border: 1px solid var(--stone); margin-top: 12px; }
.feat article { background: #fff; padding: 26px 24px; }
.feat h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--maroon); }
.feat p { font-size: .9rem; color: var(--muted); }
aside.side { position: sticky; top: 96px; border: 1px solid var(--stone); background: #fff; }
aside.side .pad { padding: 26px 24px; }
aside.side h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; }
html[dir=rtl] aside.side h3 { font-family: var(--ar); font-weight: 700; }
aside.side p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.wa { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--maroon); color: #fff; text-decoration: none; padding: 15px; font-size: .9rem; letter-spacing: .04em; }
html[dir=rtl] .wa { letter-spacing: 0; }
.wa:hover { background: var(--maroon-deep); }
.related { border-top: 1px solid var(--stone); }
.related .rlabel { padding: 16px 24px 6px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[dir=rtl] .related .rlabel { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.related a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--stone); text-decoration: none; font-size: .92rem; transition: .2s; }
.related a:hover { background: var(--gold-pale); color: var(--maroon); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.badges li { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); border: 1px solid rgba(201,162,39,.55); background: var(--gold-pale); padding: 8px 16px; }
html[dir=rtl] .badges li { letter-spacing: 0; text-transform: none; font-size: .88rem; }

/* ── Contact ───────────────────────────────────────────────────── */

.cform { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
html[dir=rtl] .field label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--stone); background: transparent; padding: 12px 2px; font: inherit; color: var(--ink); transition: border-color .2s; text-align: start; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--maroon); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { display: block; margin-top: 8px; font-size: .85rem; color: var(--maroon); }
.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] { border-bottom-color: var(--maroon); border-bottom-width: 2px; }
.formalert { border-inline-start: 3px solid var(--maroon); background: rgba(138,21,56,.07); padding: 14px 18px; margin-bottom: 28px; font-size: .92rem; color: var(--maroon-deep); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sent { border: 1px solid var(--stone); background: #fff; padding: clamp(30px, 5vw, 54px); text-align: center; }
.sent .tick { width: 62px; height: 62px; margin: 0 auto 20px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--maroon); transform: rotate(45deg); }
.sent .tick svg { transform: rotate(-45deg); }
.sent h2 { font-family: var(--display); font-size: 1.6rem; color: var(--maroon); margin-bottom: 10px; }
html[dir=rtl] .sent h2 { font-family: var(--ar); font-weight: 700; }
.sent p { color: var(--muted); max-width: 40ch; margin-inline: auto; }
.sent:focus { outline: none; }
.busy { display: none; }
.btn.htmx-request .idle { display: none; }
.btn.htmx-request .busy { display: inline; }

.infopanel { background: var(--maroon); color: #F4EAE0; padding: clamp(26px, 4vw, 40px); }
.infopanel h3 { font-family: var(--display); color: #fff; font-size: 1.3rem; margin-bottom: 20px; }
html[dir=rtl] .infopanel h3 { font-family: var(--ar); font-weight: 700; }
.infopanel ul { display: grid; gap: 16px; font-size: .94rem; }
.infopanel a { color: var(--gold-light); text-decoration: none; }
.infopanel a:hover { text-decoration: underline; }
.infopanel .hair { margin-block: 24px; background: rgba(233,216,166,.4); }

/* ── Generic interior content ──────────────────────────────────── */

.prose { max-width: 68ch; }
.prose h2 { margin-bottom: 16px; }
.prose p { color: var(--muted); }
.block + .block { margin-top: clamp(40px, 6vw, 72px); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.card { border: 1px solid var(--stone); background: #fff; padding: clamp(24px, 3vw, 34px); }
.card h3 { font-family: var(--display); color: var(--maroon); margin-bottom: 10px; }
html[dir=rtl] .card h3 { font-family: var(--ar); font-weight: 700; }
.card p { color: var(--muted); font-size: .94rem; }
.tagline { font-family: var(--display); color: var(--maroon); font-size: 1.3rem; margin-top: 24px; }
html[dir=rtl] .tagline { font-family: var(--ar); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin-top: 30px; }
.chips li { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--stone); padding: 7px 15px; border-radius: 999px; }
html[dir=rtl] .chips li { letter-spacing: 0; text-transform: none; font-size: .88rem; }

/* ── Error pages ───────────────────────────────────────────────── */

.errpage { text-align: center; }
.errpage .code { font-family: var(--display); font-size: clamp(4rem, 12vw, 8rem); color: var(--stone); line-height: 1; }
.errpage h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--maroon); margin-bottom: 14px; }
.errpage p { color: var(--muted); max-width: 44ch; margin: 0 auto 30px; }

/* ── Footer ────────────────────────────────────────────────────── */

footer { background: var(--maroon-ink); color: #CDBCAC; padding-block: 64px 26px; font-size: .9rem; }
.fg { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
footer h4 { font-family: var(--display); font-weight: 400; color: var(--gold-light); font-size: 1.05rem; margin-bottom: 18px; }
html[dir=rtl] footer h4 { font-family: var(--ar); font-weight: 700; }
footer ul { display: grid; gap: 10px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--gold-light); }
.fbot { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(233,216,166,.22); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: rgba(205,188,172,.6); }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1000px) {
    .menu { display: none; }
    .menu.open { display: flex; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--stone); padding: 10px var(--gut) 20px; }
    .menu.open li { border-bottom: 1px solid var(--stone); }
    .menu.open a { display: block; padding-block: 14px; }
    .navtoggle { display: flex; }
    .split, .svc-feature, .detail, .cform { grid-template-columns: 1fr; }
    .rail { grid-template-columns: repeat(3, 1fr); gap: 36px 0; }
    .rail::before { display: none; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .fg { grid-template-columns: 1fr 1fr; }
    .grid3 { grid-template-columns: repeat(2, 1fr); }
    aside.side { position: static; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .rail { grid-template-columns: 1fr; }
    .pillars, .fg, .feat, .grid3, .grid2 { grid-template-columns: 1fr; }
    .svc-row { grid-template-columns: auto 1fr; gap: 14px; }
    .svc-row .go { display: none; }
    .hero { min-height: auto; }
    .slide .inner { padding-block: 70px 130px; }
    .strip .wrap { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
