[hidden] { display: none !important; }
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/alexandria-arabic.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/alexandria-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;
}

:root {
  --ink: #111a28;
  --ink-2: #1b2739;
  --ink-3: #2a3850;
  --paper: #f7f3ec;
  --card: #fffdf9;
  --line: #e4ddd0;
  --muted: #5b6372;
  --on-ink: #f4efe6;
  --on-ink-muted: #b9c0cc;
  --brass: #c99a4a;
  --brass-hi: #ddb469;
  --brass-ink: #855e1f;
  --ok: #1f7a55;
  --err: #b3261e;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1080px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgb(17 26 40 / 6%), 0 8px 24px rgb(17 26 40 / 6%);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[lang='en'] body, body[lang='en'] { line-height: 1.6; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 8px; top: -100px; z-index: 10;
  background: var(--brass); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { background: var(--ink); color: var(--on-ink); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: 0.95rem; color: var(--on-ink-muted); }
.nav a:hover { color: var(--on-ink); }
.nav .nav-hide { display: none; }
.lang-switch { border: 1px solid var(--ink-3); color: var(--on-ink) !important; font-size: 0.9rem !important; }
@media (min-width: 640px) { .nav .nav-hide { display: inline-block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass); color: var(--ink); box-shadow: 0 6px 18px rgb(201 154 74 / 30%); }
.btn-primary:hover { background: var(--brass-hi); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.arrow { width: 18px; height: 18px; flex: none; }
[dir='rtl'] .arrow { transform: scaleX(-1); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding-block: 40px 64px; }
.hero::before, .hero::after {
  content: ''; position: absolute; pointer-events: none;
  border: 1.5px solid rgb(201 154 74 / 28%); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.hero::before { width: 300px; height: 420px; inset-inline-end: -110px; bottom: -40px; }
.hero::after { width: 200px; height: 300px; inset-inline-end: -60px; bottom: -40px; border-color: rgb(201 154 74 / 18%); }
.hero .wrap { position: relative; z-index: 1; }
.kicker { display: inline-block; color: var(--brass-hi); font-size: 0.9rem; font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 8.4vw, 3.6rem); max-width: 17ch; }
.hero .lead { margin-top: 18px; font-size: clamp(1.1rem, 4.4vw, 1.35rem); color: var(--on-ink-muted); max-width: 34ch; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-note { color: var(--on-ink-muted); font-size: 0.9rem; }
.hero-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--on-ink); font-size: 0.95rem; text-underline-offset: 4px; }
.hero-ig svg { width: 20px; height: 20px; }

/* Sections */
.section { padding-block: 56px; }
.section + .section { padding-top: 8px; }
.section-title { font-size: clamp(1.5rem, 5.6vw, 2.1rem); margin-bottom: 22px; }
.section-lead { color: var(--muted); margin-top: -12px; margin-bottom: 22px; }

.about p + p { margin-top: 10px; }
.about { max-width: 62ch; font-size: 1.1rem; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brass-ink); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
a.card { text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--brass); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f2e7d3; color: var(--brass-ink); }
.card-icon svg { width: 24px; height: 24px; }

.company-name { font-size: 1.25rem; font-weight: 700; }
.company-domain { direction: ltr; unicode-bidi: isolate; }

.series { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.series li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.series li:last-child { border-bottom: 0; }
.series-num { grid-row: span 2; font-weight: 700; color: var(--brass-ink); font-size: 1.1rem; }
.series-name { font-weight: 600; }
.series-text { color: var(--muted); }
.ig-handle { direction: ltr; unicode-bidi: isolate; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); }

.band { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: 28px 22px; display: grid; gap: 18px; }
.band p { color: var(--on-ink-muted); max-width: 52ch; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn-ghost { color: var(--on-ink); border-color: var(--ink-3); }
@media (min-width: 720px) { .band { padding: 40px; } }

/* Footer */
.site-footer { padding-block: 32px 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer nav { display: flex; gap: 16px; margin-inline-start: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Simple pages */
.page { padding-block: 40px 56px; }
.page h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 8px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 10px; }
.prose ul { padding-inline-start: 22px; margin: 8px 0 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brass-ink); text-underline-offset: 3px; }
.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

.center-card { max-width: 560px; margin-inline: auto; text-align: center; }
.check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e3f1ea; color: var(--ok); display: grid; place-items: center; }
.check svg { width: 32px; height: 32px; }
.center-card .actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.text-link { color: var(--brass-ink); font-weight: 600; text-underline-offset: 4px; }

/* Lead form (/start) */
.start-head { background: var(--ink); color: var(--on-ink); padding-block: 28px 76px; }
.start-head h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
.start-head p { color: var(--on-ink-muted); margin-top: 10px; max-width: 40ch; }
.form-shell { max-width: 600px; margin: -52px auto 0; padding-inline: var(--gutter); position: relative; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 20px 24px; }
@media (min-width: 640px) { .form-card { padding: 30px 32px 32px; } }

.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 0.85rem; color: var(--muted); }
.progress-bar { flex: 1; height: 6px; background: #eee6d8; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--brass); border-radius: 99px; transition: width 0.25s ease; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .step { display: none; }
.js .step.is-active { display: block; animation: fade 0.2s ease; }
.no-js .step + .step { margin-top: 28px; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .step.is-active { animation: none; } .progress-fill { transition: none; } }

.step legend { font-size: 1.35rem; font-weight: 700; padding: 0; margin-bottom: 16px; }
.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff; font-weight: 500; line-height: 1.35;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.opt span::before {
  content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c7bba6;
  margin-inline-end: 12px; background: #fff; transition: inherit;
}
.options.two .opt span { padding: 10px 12px; font-size: 0.95rem; }
.options.two .opt span::before { width: 18px; height: 18px; margin-inline-end: 10px; }
.opt input:hover + span { border-color: #cdb48a; }
.opt input:checked + span { border-color: var(--brass); background: #fbf4e7; }
.opt input:checked + span::before { border-color: var(--brass); background: var(--brass); box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field input {
  font: inherit; font-size: 1.05rem; min-height: 54px; padding: 12px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgb(201 154 74 / 25%); }
.field input[aria-invalid='true'] { border-color: var(--err); }
.field .hint { color: var(--muted); font-size: 0.85rem; }
input[type='tel'] { direction: ltr; }
[dir='rtl'] input[type='tel'] { text-align: right; }

.form-error { color: var(--err); font-size: 0.92rem; min-height: 1.4em; margin-top: 12px; }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.form-nav .btn { min-width: 120px; }
.back { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 10px 4px; display: inline-flex; align-items: center; gap: 6px; }
.back:hover { color: var(--ink); }
.back[hidden] { display: none; }
[dir='ltr'] .back .arrow { transform: scaleX(-1); }
[dir='rtl'] .back .arrow { transform: none; }
.submit { width: 100%; margin-top: 22px; }
.consent { margin-top: 14px; font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.consent a { color: var(--brass-ink); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { background: #fdf0e6; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.start-foot { text-align: center; padding-block: 28px 40px; color: var(--muted); font-size: 0.88rem; }
.start-foot a { text-underline-offset: 3px; }

/* Portfolio */
.pf-group + .pf-group { margin-top: 36px; }
.pf-year { color: var(--brass-ink); font-weight: 600; font-size: 0.9rem; }
