@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --ink: #132b3f;
  --ink-2: #1b4158;
  --paper: #f5f0e8;
  --paper-2: #fffdf9;
  --muted: #6b7778;
  --line: rgba(19, 43, 63, .14);
  --copper: #d47b45;
  --copper-dark: #a9572d;
  --sage: #b8c9bd;
  --shadow: 0 24px 70px rgba(19, 43, 63, .11);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--copper); color: var(--paper-2); }

.skip-link { position: absolute; top: -60px; right: 20px; z-index: 30; background: var(--ink); color: white; padding: 8px 16px; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(245,240,232,.9); border-bottom: 1px solid var(--line); }
.nav-wrap { width: min(calc(100% - 44px), var(--max)); margin: auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 8px 18px rgba(19,43,63,.16); }
.brand small { display: block; color: var(--muted); font-size: 10px; line-height: 1.2; font-weight: 500; letter-spacing: .06em; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); color: var(--ink); width: 44px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: .25s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(212,123,69,.13); }

main { overflow: hidden; }
.page-shell { width: min(calc(100% - 44px), var(--max)); margin: auto; }
.hero { min-height: min(700px, calc(100vh - 78px)); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding: 88px 0 105px; position: relative; }
.hero::before { content: ""; position: absolute; width: 430px; height: 430px; background: rgba(184,201,189,.3); border-radius: 50%; filter: blur(2px); left: -190px; top: 25px; z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--copper-dark); font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--copper); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 86px); line-height: 1.12; letter-spacing: -.075em; margin: 18px 0 22px; max-width: 780px; }
h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.25; letter-spacing: -.05em; margin-bottom: 18px; }
h3 { font-size: 21px; line-height: 1.45; letter-spacing: -.03em; margin-bottom: 8px; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 11px 19px; font-weight: 700; font-size: 14px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19,43,63,.12); }
.btn-primary { background: var(--ink); color: var(--paper-2); }
.btn-secondary { border-color: var(--line); color: var(--ink); background: rgba(255,253,249,.5); }
.btn-copper { background: var(--copper); color: #fff; }
.hero-card { background: var(--ink); color: var(--paper-2); padding: 30px; border-radius: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card::after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(212,123,69,.42); border-radius: 50%; left: -78px; bottom: -110px; box-shadow: 0 0 0 20px rgba(212,123,69,.05), 0 0 0 40px rgba(212,123,69,.05); }
.card-topline { display: flex; justify-content: space-between; align-items: center; color: rgba(245,240,232,.72); font-size: 12px; }
.stamp { width: 106px; height: 106px; border: 1px solid rgba(212,123,69,.75); border-radius: 50%; display: grid; place-items: center; color: var(--copper); font-weight: 700; transform: rotate(-9deg); }
.card-name { font-size: clamp(28px, 4vw, 43px); line-height: 1.25; letter-spacing: -.06em; max-width: 300px; }
.card-foot { color: rgba(245,240,232,.68); font-size: 13px; max-width: 260px; }

.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 500px; margin-bottom: 4px; }
.section-label { color: var(--copper-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.panel, .project-card, .article-card, .media-card, .contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(19,43,63,.035); }
.panel p, .project-card p, .article-card p, .media-card p { color: var(--muted); }
.project-card { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.project-card::before { content: ""; position: absolute; inset: auto auto 0 0; width: 100%; height: 5px; background: var(--copper); }
.project-meta, .article-meta, .media-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; width: fit-content; align-items: center; gap: 7px; color: var(--copper-dark); font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; font-size: 14px; }
.text-link::after { content: "↗"; color: var(--copper); font-size: 18px; transition: transform .2s; }
.text-link:hover::after { transform: translate(-2px, -2px); }
.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal { padding: 22px 18px; border-left: 1px solid var(--line); }
.signal:last-child { border-left: 0; }
.signal strong { display: block; font-size: 22px; margin-bottom: 2px; }
.signal span { color: var(--muted); font-size: 13px; }
.quote { border-right: 4px solid var(--copper); padding: 4px 20px 4px 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.55; letter-spacing: -.05em; max-width: 850px; }
.page-hero { padding: 90px 0 68px; max-width: 880px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 70px); }
.page-hero .lede { max-width: 720px; }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.info-row dt { color: var(--muted); font-size: 14px; }
.info-row dd { margin: 0; font-weight: 600; }
.feature { display: grid; grid-template-columns: 100px 1fr; gap: 22px; align-items: start; }
.feature-icon { width: 70px; height: 70px; border-radius: 18px; background: rgba(212,123,69,.14); color: var(--copper-dark); display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.feature + .feature { margin-top: 28px; }
.empty-state { padding: 44px 26px; border: 1px dashed rgba(19,43,63,.28); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 6px; }
.social-list { display: grid; gap: 10px; }
.social-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.6); }
.social-link span { color: var(--muted); font-size: 13px; }
.site-footer { background: var(--ink); color: var(--paper); margin-top: 50px; }
.footer-inner { width: min(calc(100% - 44px), var(--max)); margin: auto; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; padding-bottom: 44px; }
.site-footer h2 { color: var(--paper); font-size: 28px; }
.site-footer p, .site-footer a { color: rgba(245,240,232,.7); }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(245,240,232,.15); padding-top: 18px; color: rgba(245,240,232,.55); font-size: 12px; }
.reveal { animation: rise .7s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 62px; }
  .hero-card { min-height: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-wrap, .page-shell, .footer-inner { width: min(calc(100% - 32px), var(--max)); }
  .site-header { backdrop-filter: blur(10px); }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 70px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; padding: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .hero { min-height: 0; padding: 62px 0 78px; }
  h1 { font-size: clamp(40px, 14vw, 62px); }
  .section { padding: 65px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .project-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal { border-bottom: 1px solid var(--line); }
  .signal:nth-child(2) { border-left: 0; }
  .signal:nth-child(3), .signal:nth-child(4) { border-bottom: 0; }
  .info-row { grid-template-columns: 1fr; gap: 3px; }
  .feature { grid-template-columns: 70px 1fr; gap: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
