:root {
  --ink: #1c2024;
  --ink-2: #242a30;
  --ink-line: rgba(246, 244, 239, 0.12);
  --paper: #f6f4ef;
  --stone: #ebe7df;
  --text: #1c2024;
  --muted: #5d6065;
  --muted-dark: rgba(246, 244, 239, 0.68);
  --line: rgba(28, 32, 36, 0.13);
  --signal: #f2683a;
  --signal-text: #b2441b;
  --head: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html[lang="ar"] {
  --head: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* Shared type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--signal-text);
  margin-block-end: 20px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; }
html[lang="ar"] .eyebrow { font-family: var(--body); font-weight: 600; font-size: 13px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }
.hero .eyebrow, .dark .eyebrow, .contact .eyebrow { color: var(--signal); }
.title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
html[lang="ar"] .title, html[lang="ar"] .display { line-height: 1.5; letter-spacing: 0; }
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
html[lang="en"] .label { text-transform: uppercase; letter-spacing: 0.14em; }
html[lang="ar"] .label { font-family: var(--body); font-size: 13px; }
.dark .label, .contact .label { color: var(--muted-dark); }
.num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--signal-text); letter-spacing: 0.04em; }
.prose { display: grid; gap: 16px; color: var(--muted); font-size: 17px; }
.prose p:last-child { color: var(--text); font-weight: 600; }
.arrow { display: inline-block; transition: transform 0.35s var(--ease); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--signal);
  color: #1a0d07;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: #ff7c4f; }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(246, 244, 239, 0.32); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--paper); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }
.brand-mark circle { fill: var(--signal); }
.brand-word { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -0.05em; line-height: 1; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding-inline: max(20px, (100vw - 1200px) / 2);
  color: var(--paper);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.solid { background: rgba(28, 32, 36, 0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ink-line); }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--muted-dark); transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
.lang { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: rgba(246, 244, 239, 0.4); }
.lang button { color: var(--muted-dark); padding: 4px 2px; }
.lang button[aria-pressed="true"] { color: var(--signal); }
.lang button[data-lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 15px; }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  position: absolute; left: 10px; width: 20px; height: 2px; background: currentColor; transition: transform 0.3s, opacity 0.3s;
}
.menu-icon { top: 19px; }
.menu-icon::before, .menu-icon::after { content: ""; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.nav.open .menu-icon { background: transparent; }
.nav.open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-block: calc(var(--nav-h) + 64px) 40px;
  background-image:
    linear-gradient(rgba(246, 244, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 244, 239, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero-title {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  letter-spacing: -0.045em;
}
html[lang="ar"] .hero-title { line-height: 1.35; letter-spacing: 0; font-weight: 700; }
.hero-title .line { display: block; }
.hero-title .line:last-child { color: var(--signal); }
.hero-sub { margin-block: 28px 36px; max-width: 34em; color: var(--muted-dark); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.plan { position: relative; }
.plan-svg { width: 100%; height: auto; overflow: visible; }
.plan-svg .walls path { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linejoin: miter; }
.plan-svg .windows path { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.plan-svg .doors path { fill: none; stroke: rgba(246, 244, 239, 0.35); stroke-width: 1.2; stroke-dasharray: 3 3; }
.plan-svg .furniture > * { fill: rgba(246, 244, 239, 0.04); stroke: rgba(246, 244, 239, 0.22); stroke-width: 1.2; }
.plan-svg .dim line { stroke: rgba(246, 244, 239, 0.4); stroke-width: 1; }
.plan-svg .dim text { direction: ltr; unicode-bidi: embed; fill: var(--muted-dark); font: 500 10px var(--mono); paint-order: stroke; stroke: var(--ink); stroke-width: 6px; }
.plan-svg .rooms text { fill: rgba(246, 244, 239, 0.45); font: 500 10.5px var(--mono); text-anchor: middle; letter-spacing: 0.06em; }
html[lang="en"] .plan-svg .rooms text { text-transform: uppercase; }
html[lang="ar"] .plan-svg .rooms text { font: 500 12px "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
.plan-svg .scan rect { fill: var(--signal); opacity: 0; }
.pin circle { fill: var(--signal); stroke: var(--ink); stroke-width: 3; transition: r 0.25s var(--ease); }
.pin text { fill: #1a0d07; font: 700 13px "Manrope", sans-serif; text-anchor: middle; }
.pin.active circle { r: 17; }
.pin { cursor: default; }

.report {
  position: relative;
  margin-block-start: 4px;
  background: var(--paper);
  color: var(--text);
  border-radius: 14px;
  padding: 16px 20px 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 8px; }
.report-title { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.report-tag { font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
html[lang="ar"] .report-tag { font-family: var(--body); letter-spacing: 0; font-size: 12px; }
.report-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.report-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 6px; margin-inline: -6px; border-top: 1px solid var(--line); border-radius: 6px;
  transition: background 0.2s;
}
.report-list li.active { background: rgba(242, 104, 58, 0.1); }
.report-num {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-block-start: 1px;
  display: grid; place-items: center; background: var(--signal); color: #1a0d07; font-size: 11.5px; font-weight: 800;
}
.report-text { display: grid; line-height: 1.35; }
.report-where { font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: 0.04em; }
html[lang="ar"] .report-where { font: 500 12px var(--body); }
.report-what { font-size: 14px; font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-block-start: 72px; border-top: 1px solid var(--ink-line); }
.fact { display: grid; gap: 2px; padding: 24px 24px 0 0; }
html[dir="rtl"] .fact { padding: 24px 0 0 24px; }
.fact + .fact { padding-inline-start: 24px; border-inline-start: 1px solid var(--ink-line); }
.fact-title { font-weight: 700; font-size: 17px; }
.fact-text { color: var(--muted-dark); font-size: 15px; }

/* Hero entrance */
html.js .plan-svg .walls path { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 1.8s var(--ease) 0.15s forwards; }
html.js .plan-svg .furniture, html.js .plan-svg .doors, html.js .plan-svg .windows, html.js .plan-svg .rooms, html.js .plan-svg .dim { opacity: 0; animation: fade 0.8s ease 1.2s forwards; }
html.js .plan-svg .scan rect { animation: scan 1.6s ease-in-out 1.5s forwards; }
html.js .pin { opacity: 0; animation: pin 0.5s var(--ease) calc(2.6s + var(--d) * 0.18s) forwards; }
html.js .report { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) 2.4s forwards; }
html.js .hero-text > * { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) forwards; }
html.js .hero-text > :nth-child(2) { animation-delay: 0.08s; }
html.js .hero-text > :nth-child(3) { animation-delay: 0.16s; }
html.js .hero-text > :nth-child(4) { animation-delay: 0.24s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pin { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }
@keyframes scan {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(377px); }
}

/* Sections */
.section { padding-block: clamp(80px, 10vw, 128px); }
.paper { background: var(--paper); }
.stone { background: var(--stone); }
.dark { background: var(--ink); color: var(--paper); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.head { max-width: 720px; margin-block-end: 56px; }
#about { padding-block-end: 40px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.service {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 28px 32px;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service:hover { border-color: rgba(242, 104, 58, 0.55); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28, 32, 36, 0.08); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 48px; }
.icon { width: 44px; height: 44px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-when { font: 500 11.5px var(--mono); color: var(--signal-text); letter-spacing: 0.1em; text-transform: uppercase; margin-block-end: 8px; }
html[lang="ar"] .service-when { font: 600 13px var(--body); letter-spacing: 0; }
.service-title { font-family: var(--head); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-block-end: 12px; }
.service-text { color: var(--muted); font-size: 15.5px; }

/* Who we serve */
.clients { display: grid; }
.client { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); }
.client:last-child { border-bottom: 1px solid var(--line); }
.client .num { grid-row: span 2; padding-block-start: 8px; }
.client-title { font-family: var(--head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.client-text { color: var(--muted); font-size: 16.5px; margin-block-start: 4px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 20px; height: 1px; background: var(--ink-line); }
.step { position: relative; padding-inline-end: 32px; }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--signal); color: var(--signal);
  font: 500 13px var(--mono); margin-block-end: 28px;
}
.step-title { font-family: var(--head); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-block-end: 8px; }
.step-text { color: var(--muted-dark); max-width: 22em; }
.uses { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block-start: 72px; padding-block-start: 32px; border-top: 1px solid var(--ink-line); }
.uses-list { display: flex; flex-wrap: wrap; gap: 10px; }
.uses-list li { padding: 8px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: 15px; font-weight: 600; }

/* Why Snag */
.checks { display: grid; }
.check { display: flex; gap: 18px; align-items: flex-start; padding-block: 20px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; line-height: 1.45; }
.check:last-child { border-bottom: 1px solid var(--line); }
.check-mark { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); margin-block-start: 0; }
.check-mark::after {
  content: ""; position: absolute; left: 8px; top: 6.5px; width: 9px; height: 5px;
  border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg);
}
.parent {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-block-start: clamp(64px, 8vw, 96px); padding: 32px 36px; border-radius: 16px;
  background: var(--stone); transition: background 0.3s;
}
.parent:hover { background: #e3ded4; }
.parent-text { display: grid; }
.parent .eyebrow { margin-block-end: 8px; }
.parent-body { font-size: 17px; max-width: 40em; }
.parent-cta { display: inline-flex; gap: 10px; align-items: center; flex: none; font-weight: 700; }
.parent:hover .parent-cta .arrow { transform: translate(3px, -3px); }
html[dir="rtl"] .parent:hover .parent-cta .arrow { transform: scaleX(-1) translate(3px, -3px); }

/* Contact */
.contact {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(88px, 11vw, 140px);
  background-image: radial-gradient(circle at 85% 20%, rgba(242, 104, 58, 0.14), transparent 45%);
}
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact-text { color: var(--muted-dark); font-size: 18px; max-width: 32em; margin-block: 24px 36px; }
.details { display: grid; }
.detail { padding-block: 20px; border-top: 1px solid var(--ink-line); }
.detail:last-child { border-bottom: 1px solid var(--ink-line); }
.detail .label { margin-block-end: 6px; }
.detail dd { font-size: 19px; font-weight: 600; line-height: 1.45; }
.detail a { border-bottom: 1px solid rgba(242, 104, 58, 0.5); transition: color 0.2s; }
.detail a:hover { color: var(--signal); }

/* Footer */
.footer { background: #15181b; color: var(--muted-dark); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 40px 28px; }
.footer-inner .brand { margin-inline-end: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 32px; border-top: 1px solid var(--ink-line); font-size: 13px; }
.footer-bottom a:hover { color: var(--paper); }

/* Scroll reveals */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.services .reveal.in:nth-child(2), .steps .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.services .reveal.in:nth-child(3), .steps .reveal.in:nth-child(3) { transition-delay: 0.16s; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .plan { max-width: 640px; }
  .services { grid-template-columns: 1fr; }
  .service-top { margin-block-end: 28px; }
}

@media (max-width: 860px) {
  .nav { gap: 16px; }
  .nav-links {
    position: absolute; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0;
    padding: 8px 20px 20px; background: var(--ink); box-shadow: 0 1px 0 var(--ink-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-links a { padding-block: 14px; border-bottom: 1px solid var(--ink-line); font-size: 17px; color: var(--paper); }
  .nav.open { background: var(--ink); }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .lang { margin-inline-start: auto; }
  .menu-btn { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .sticky { position: static; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { inset-inline: 20px auto; width: 1px; height: auto; top: 0; bottom: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; padding: 0; }
  .step-num { grid-row: span 2; margin: 0; }
  .facts { grid-template-columns: 1fr; margin-block-start: 48px; }
  .fact, html[dir="rtl"] .fact, .fact + .fact { padding: 16px 0; border-inline-start: 0; border-bottom: 1px solid var(--ink-line); }
  .fact:last-child { border-bottom: 0; }
  .parent { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

@media (max-width: 560px) {
  .hero { padding-block-start: calc(var(--nav-h) + 40px); }
  .hero-sub { font-size: 17px; }
  .report-list { grid-template-columns: 1fr; }
  .btn { padding: 14px 20px; }
  .check { font-size: 16.5px; }
  .footer-inner .brand { margin-inline-end: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .plan-svg .walls path, html.js .plan-svg .furniture, html.js .plan-svg .doors, html.js .plan-svg .windows,
  html.js .plan-svg .rooms, html.js .plan-svg .dim, html.js .pin, html.js .report, html.js .hero-text > * {
    animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important;
  }
  html.js .plan-svg .scan rect { opacity: 0 !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
