:root {
  --dark: #07182e;
  --blue: #123f70;
  --electric: #00aeef;
  --violet: #7566ff;
  --light: #f5f7fa;
  --ink: #172033;
  --white: #f7faff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, .24);
  --card: rgba(255, 255, 255, .08);
  --shadow: 0 22px 70px rgba(7, 24, 46, .16);
  --gradient: linear-gradient(135deg, var(--electric), var(--violet));
  --font-en: "Inter", system-ui, sans-serif;
  --font-ar: "Cairo", system-ui, sans-serif;
  --radius: 22px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  --header: 82px;
}

[data-theme="light"] {
  --ink: #172033;
  --card: rgba(18, 63, 112, .08);
  --line: rgba(23, 32, 51, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  font-family: var(--font-en);
  background: var(--light);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(0, 174, 239, .45); outline-offset: 3px; }
.skip-link { position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 1200; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--dark); font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 108px 0; position: relative; }
.section-dark { background: var(--dark); color: var(--white); }
.section-muted { background: #eaf0f7; }
[data-theme="light"] .section-muted { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2, .section-copy h2, .contact h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.section-copy p { margin: 16px 0 0; color: #4b5870; }
.section-dark .section-copy p, .section-dark p { color: rgba(247, 250, 255, .78); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--electric);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--dark);
  transition: opacity .5s ease, visibility .5s ease;
}
.loader span {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(var(--dark), var(--dark)) padding-box, var(--gradient) border-box;
  animation: pulse 1.2s ease-in-out infinite alternate;
}
.loader.done { opacity: 0; visibility: hidden; }
.progress { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 1001; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--gradient); }
.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(0,174,239,.14), transparent 62%);
  transform: translate(-50%, -50%);
}

.site-header {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  width: var(--container);
  height: 64px;
  margin: auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.25vw, 18px);
  padding: 8px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  transition: .3s ease;
}
.site-header.scrolled {
  background: rgba(7, 24, 46, .76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(var(--dark), var(--dark)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  background: var(--electric);
  right: -10px;
  top: 13px;
}
.site-nav { display: flex; align-items: center; gap: clamp(10px, 1.25vw, 18px); margin-inline: auto; font-size: clamp(.78rem, .85vw, .92rem); color: rgba(247,250,255,.8); }
.site-nav a.active, .site-nav a:hover { color: var(--electric); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn, .chip-btn, .icon-btn {
  min-height: 44px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn { padding: 12px 20px; }
.btn.small { min-height: 40px; padding: 9px 14px; font-size: .86rem; }
.btn-primary { color: #fff; background: var(--gradient); box-shadow: 0 14px 36px rgba(0,174,239,.22); }
.btn-ghost { color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.btn-soft { color: var(--electric); background: rgba(0,174,239,.12); border: 1px solid rgba(0,174,239,.22); }
.btn:hover, .chip-btn:hover, .icon-btn:hover { transform: translateY(-2px); }
.chip-btn, .icon-btn { width: 44px; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-toggle { display: none; flex-direction: column; }
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 3px; }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.decor-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 76%);
}
.hero::before, .hero::after, .expertise::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .3;
  background: var(--electric);
}
.hero::before { left: -60px; top: 18%; }
.hero::after { right: 5%; bottom: 4%; background: var(--violet); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(2.8rem, 4.8vw, 4.9rem); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; color: transparent; }
.hero-text { max-width: 710px; color: rgba(247,250,255,.78); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; color: rgba(247,250,255,.7); font-size: .92rem; }
.contact-row a:hover { color: var(--electric); }
.portrait-wrap {
  position: relative;
  width: min(430px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(var(--dark), var(--dark)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent;
  animation: slowFloat 6s ease-in-out infinite;
}
.portrait-wrap img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 26px; }
.orbit-tag {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: .82rem;
  animation: tagFloat 5s ease-in-out infinite alternate;
}
.tag-1 { top: 12%; left: -42px; }
.tag-2 { top: 34%; right: -24px; animation-delay: .4s; }
.tag-3 { bottom: 28%; left: -55px; animation-delay: .8s; }
.tag-4 { bottom: 12%; right: 12px; animation-delay: 1.2s; }
.tag-5 { top: -18px; right: 22%; animation-delay: 1.6s; }
.scroll-indicator { position: absolute; bottom: 24px; left: 50%; width: 26px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; }
.scroll-indicator span { display: block; width: 6px; height: 6px; margin: 9px auto; border-radius: 50%; background: var(--electric); animation: scrollDot 1.4s infinite; }

.stats { margin-top: -38px; position: relative; z-index: 2; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card, .timeline-card, .service-card, .project-card, .skill-box, .info-card, .testimonial-card, .contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.stat-card { padding: 24px; min-height: 150px; }
.stat-card strong { display: block; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; color: var(--blue); }
.stat-card p { margin: 14px 0 0; color: #58657a; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.about-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(34px, 6vw, 82px); align-items: center; }
.about-content { min-width: 0; }
.about-content .section-copy { display: grid; row-gap: 14px; }
.about-content .section-copy > * { margin-block: 0; }
.about-content .section-copy .eyebrow { margin-block-end: 4px; line-height: 1.6; }
.about-content .section-copy h2 { line-height: 1.16; }
.about-portrait {
  width: min(100%, 400px);
  aspect-ratio: 1;
  justify-self: center;
  position: relative;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box;
  box-shadow: 0 24px 70px rgba(7, 24, 46, .18), 0 0 0 10px rgba(0, 174, 239, .06);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 50%;
}
.about-content .pill-panel { margin-top: 26px; }
.pill-panel { display: flex; flex-wrap: wrap; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--dark); color: var(--white); }
.pill-panel span, .tag-cloud span, .skill-box span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: inherit;
  font-weight: 700;
  font-size: .9rem;
}

.expertise { overflow: hidden; }
.expertise-grid { display: grid; grid-template-columns: 1fr 100px 1fr; align-items: stretch; gap: 18px; }
.expert-card { padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.card-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 900; }
.expert-card h3, .service-card h3, .project-card h3, .timeline-card h3 { margin: 18px 0 8px; line-height: 1.2; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.connector { display: grid; place-items: center; }
.connector span { width: 100%; height: 3px; background: var(--gradient); border-radius: 20px; position: relative; }
.connector span::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--electric); transform: translateY(-50%); animation: travel 2.8s ease-in-out infinite alternate; }

.timeline { position: relative; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 9px; width: 3px; background: var(--line); }
.timeline::after { content: ""; position: absolute; top: 0; inset-inline-start: 9px; width: 3px; height: var(--timeline-height, 0%); background: var(--gradient); transition: height .4s ease; }
.timeline-item { position: relative; margin-bottom: 28px; }
.dot { position: absolute; inset-inline-start: -32px; top: 28px; width: 20px; height: 20px; border-radius: 50%; background: var(--electric); border: 5px solid var(--light); z-index: 1; }
.timeline-card { padding: 28px; }
.timeline-card .meta, .company { color: var(--electric); font-weight: 800; margin: 0; }
.timeline-card ul { padding-inline-start: 20px; color: #506079; }

.service-grid, .portfolio-grid, .skills-grid, .testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .skill-box, .testimonial-card { padding: 26px; position: relative; overflow: hidden; }
.service-card::before, .project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
}
.service-card:hover::before, .project-card:hover::before { opacity: 1; }
.service-card svg { width: 34px; height: 34px; fill: none; stroke: var(--electric); stroke-width: 1.8; }
.service-card p, .project-card p, .skill-box span, .testimonial-card span { color: #5d6b82; }
.service-card a { color: var(--electric); font-weight: 800; }
.service-card:hover, .project-card:hover { transform: translateY(-6px); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filters button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; color: var(--ink); }
.filters button.active { color: #fff; background: var(--gradient); border-color: transparent; }
.project-card { position: relative; overflow: hidden; cursor: pointer; transition: .3s ease; background: #fff; }
.project-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.project-card span { display: inline-block; margin: 20px 20px 0; color: var(--electric); font-weight: 900; font-size: .84rem; }
.project-card h3, .project-card p { margin-inline: 20px; }
.project-card p { margin-bottom: 22px; }
.project-card.hide { opacity: 0; transform: scale(.96); pointer-events: none; display: none; }

.process-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.process-line::before { content: ""; position: absolute; top: 36px; inset-inline: 8%; height: 3px; background: rgba(255,255,255,.16); }
.process-line::after { content: ""; position: absolute; top: 36px; inset-inline-start: 8%; height: 3px; width: var(--process-width, 0%); background: var(--gradient); transition: width .35s ease; }
.process-step { position: relative; z-index: 1; padding-top: 74px; }
.process-step strong { position: absolute; top: 0; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--gradient); color: #fff; }
.process-step h3 { margin-bottom: 6px; }

.skills-grid { grid-template-columns: repeat(2, 1fr); }
.skill-box { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.skill-box h3 { width: 100%; margin: 0 0 10px; }
.skill-box span { background: #fff; border: 1px solid var(--line); }
.education-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-grid-simple { grid-template-columns: minmax(0, 820px); justify-content: center; text-align: center; }
.contact-grid-simple .hero-actions { justify-content: center; }
.info-card { padding: 30px; }
.testimonial-card p { font-size: 1.1rem; color: var(--ink); }

.contact { padding: 108px 0; }
.contact-list { display: grid; gap: 12px; margin-top: 28px; }
.contact-list a, .contact-list p { margin: 0; padding: 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.contact-list strong, .contact-list span { display: block; }
.contact-list span { color: rgba(247,250,255,.75); overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.contact-form label { display: grid; gap: 7px; color: rgba(247,250,255,.82); font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.09);
  color: var(--white);
  padding: 12px 14px;
}
.contact-form select option { color: var(--ink); }
.full { grid-column: 1 / -1; }
.form-status { margin: 0; min-height: 24px; color: var(--electric); }
.contact-form .error { border-color: #ff6b6b; }

.footer { padding: 44px 0 20px; background: #04101f; color: rgba(247,250,255,.75); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 24px; }
.footer nav, .footer-grid div:last-child { display: grid; gap: 8px; }
.copyright { text-align: center; margin: 34px 0 0; color: var(--muted); }
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; }

.project-modal { width: min(920px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 0; border-radius: 24px; padding: 0; color: var(--ink); background: #fff; overflow: auto; }
.project-modal::backdrop { background: rgba(3, 10, 20, .72); backdrop-filter: blur(8px); }
.project-modal img { width: 100%; max-height: 390px; object-fit: cover; }
.modal-body { padding: 28px; }
.modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.modal-grid section { padding: 16px; border-radius: 16px; background: var(--light); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(7,24,46,.78); color: #fff; font-size: 1.4rem; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

html[dir="rtl"] .project-modal,
html[dir="rtl"] .project-card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .timeline-card,
html[dir="rtl"] .skill-box { text-align: right; }
html[dir="rtl"] .modal-close { right: auto; left: 14px; }
html[dir="rtl"] .about-content .section-copy { row-gap: 16px; }
html[dir="rtl"] .about-content .section-copy .eyebrow {
  margin-block-end: 6px;
  line-height: 1.85;
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .about-content .section-copy h2 { line-height: 1.3; }

/* Light theme keeps every surface readable while still looking visibly light. */
[data-theme="light"] body { background: #f5f7fa; }
[data-theme="light"] .section-dark { background: #eef4fb; color: var(--ink); }
[data-theme="light"] .section-dark p,
[data-theme="light"] .hero-text { color: #4b5870; }
[data-theme="light"] .decor-grid {
  background-image: linear-gradient(rgba(18,63,112,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(18,63,112,.07) 1px, transparent 1px);
}
[data-theme="light"] .site-header { color: var(--ink); border-color: rgba(23,32,51,.12); }
[data-theme="light"] .site-header.scrolled { background: rgba(255,255,255,.88); }
[data-theme="light"] .site-nav { color: #42516a; }
[data-theme="light"] .brand-mark,
[data-theme="light"] .portrait-wrap { background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; }
[data-theme="light"] .brand-mark {
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(18, 63, 112, .12);
}
[data-theme="light"] .chip-btn,
[data-theme="light"] .icon-btn,
[data-theme="light"] .btn-ghost { background: rgba(18,63,112,.07); border-color: rgba(18,63,112,.16); }
[data-theme="light"] .expert-card { background: rgba(255,255,255,.82); border-color: var(--line); }
[data-theme="light"] .expert-card .tag-cloud span { background: #fff; }
[data-theme="light"] .process-line::before { background: rgba(18,63,112,.15); }
[data-theme="light"] .contact-list a,
[data-theme="light"] .contact-list p { background: #fff; border-color: var(--line); }
[data-theme="light"] .contact-list span { color: #526078; }

@media (max-width: 1180px) {
  [data-theme="light"] .site-nav { color: rgba(247,250,255,.86); }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { to { transform: scale(1.06); } }
@keyframes slowFloat { 50% { transform: translateY(-10px); } }
@keyframes tagFloat { to { transform: translateY(-10px); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 12px); } }

@media (max-width: 1180px) {
  .site-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .site-nav {
    display: grid;
    position: fixed;
    inset: 86px 18px auto;
    padding: 24px;
    border-radius: 24px;
    background: rgba(7, 24, 46, .96);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .hero-grid, .split, .contact-grid, .education-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .expertise-grid { grid-template-columns: 1fr; }
  .connector { min-height: 48px; }
  .connector span { width: 3px; height: 100%; }
  .stat-grid, .service-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: 1fr; }
  .process-line::before, .process-line::after { display: none; }
  .process-step { padding: 20px 0 0 92px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 34px; align-items: start; }
  .about-content .pill-panel { padding: 20px; }
}

@media (max-width: 720px) {
  :root { --container: min(calc(100% - 24px), 1180px); --header: 72px; --radius: 18px; }
  .section, .contact { padding: 64px 0; }
  .site-header { top: 7px; height: 58px; padding: 6px; border-radius: 18px; gap: 8px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 13px; font-size: .84rem; }
  .brand-text { display: none; }
  .header-actions { gap: 6px; }
  .chip-btn, .icon-btn { width: 42px; min-height: 42px; }
  .site-nav { inset: 74px 12px auto; padding: 18px; gap: 4px; border-radius: 18px; }
  .site-nav a { padding: 10px 12px; border-radius: 10px; }
  .hero { min-height: auto; padding: 104px 0 62px; }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: clamp(2.2rem, 10.2vw, 3.25rem); line-height: 1.05; overflow-wrap: anywhere; text-wrap: wrap; }
  .hero-text { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .contact-row { gap: 8px 14px; }
  .orbit-tag { position: static; display: inline-flex; margin: 8px 4px 0 0; animation: none; }
  .portrait-wrap { width: min(320px, 100%); border-radius: 26px; }
  .portrait-wrap img { border-radius: 20px; }
  .stats { margin-top: -24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { min-height: 128px; padding: 18px 14px; }
  .stat-card p { font-size: .88rem; line-height: 1.45; }
  .section-head { margin-bottom: 28px; }
  .section-head h2, .section-copy h2, .contact h2 { font-size: clamp(1.85rem, 9vw, 2.7rem); }
  .pill-panel, .expert-card, .timeline-card, .service-card, .skill-box, .info-card, .testimonial-card { padding: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait { width: min(330px, 88vw); margin-inline: auto; }
  .about-content .pill-panel { margin-top: 22px; }
  .stat-grid, .service-grid, .portfolio-grid, .skills-grid, .testimonial-grid, .footer-grid, .modal-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card img { aspect-ratio: 1 / 1; }
  .project-card span { margin: 16px 16px 0; }
  .project-card h3, .project-card p { margin-inline: 16px; }
  .process-step { min-height: 82px; padding: 10px 0 0 78px; }
  html[dir="rtl"] .process-step { padding: 10px 78px 0 0; }
  .process-step strong { width: 62px; height: 62px; }
  .contact-form { grid-template-columns: 1fr; }
  .timeline-card ul { padding-inline-start: 18px; }
  .filters { margin-inline: -12px; padding: 2px 12px 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; }
  .project-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .project-modal img { max-height: 30dvh; }
  .modal-body { padding: 20px 16px; }
  .modal-grid section { padding: 14px; }
  .footer { padding-top: 36px; }
  .cursor-glow { display: none; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 112px; }
  .header-actions { gap: 4px; }
  .chip-btn, .icon-btn { width: 40px; min-height: 40px; }
  .hero h1 { font-size: clamp(2.05rem, 11vw, 2.75rem); }
  .contact-list a, .contact-list p { padding: 14px; }
  .orbit-tag { font-size: .74rem; padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
