:root {
  --font-ar: "Tajawal", Tahoma, Arial, sans-serif;
  --ink: #050b09;
  --ink-soft: #08130f;
  --panel: rgba(11, 24, 19, .82);
  --panel-solid: #0b1813;
  --paper: #f4eacb;
  --muted: #9cae9f;
  --line: rgba(244, 234, 203, .13);
  --gold: #f4b400;
  --gold-deep: #c97b00;
  --red: #e62e22;
  --shadow: 0 18px 80px rgba(0, 0, 0, .38);
  --container: min(1160px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { color: var(--ink); background: var(--gold); }

.container { width: var(--container); margin-inline: auto; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  transition: visibility 0s linear 1s;
}
.loader__curtain { position: absolute; inset-block: 0; width: 51%; background: #04100c; transition: transform 1s cubic-bezier(.77, 0, .18, 1) .42s; }
.loader__curtain--left { left: 0; }
.loader__curtain--right { right: 0; }
.loader__content { position: relative; z-index: 2; display: flex; width: min(380px, 74vw); flex-direction: column; align-items: center; justify-content: center; margin: auto; text-align: center; transition: opacity .35s ease, transform .5s ease; }
.loader__logo { width: min(270px, 70vw); filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .38)); animation: loaderLogo 1.6s ease-in-out infinite alternate; }
.loader__label { margin: 30px 0 12px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.loader__bar { width: 100%; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.loader__bar span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.loader__percent { display: block; margin-top: 12px; color: var(--gold); font-size: 12px; letter-spacing: .32em; }
.loader.is-complete { visibility: hidden; }
.loader.is-complete .loader__curtain--left { transform: translateX(-100%); }
.loader.is-complete .loader__curtain--right { transform: translateX(100%); }
.loader.is-complete .loader__content { opacity: 0; transform: scale(.82); }
@keyframes loaderLogo { from { transform: translateY(-4px) scale(.98); } to { transform: translateY(4px) scale(1.02); } }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 42px;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}
.site-header.is-scrolled { padding-block: 12px; border-color: var(--line); background: rgba(5, 11, 9, .88); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .28em; }
.brand img { width: 82px; height: 38px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { position: relative; color: rgba(244, 234, 203, .7); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; transition: color .2s ease; }
.site-nav a::after { position: absolute; bottom: -8px; inset-inline-start: 0; width: 100%; height: 1px; content: ""; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--paper); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.language-switch { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; border: 1px solid rgba(244, 180, 0, .32); padding: 0 10px; color: var(--gold); background: rgba(5, 11, 9, .42); font-size: 10px; font-weight: 900; letter-spacing: .08em; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.language-switch:hover { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.language-switch .icon { width: 15px; height: 15px; }
.menu-toggle { display: none; align-items: center; gap: 4px; border: 0; color: var(--gold); background: transparent; }
.menu-toggle span { display: block; width: 17px; height: 1px; background: currentColor; }
.menu-toggle b { margin-left: 5px; font-size: 10px; letter-spacing: .2em; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 132px 0 88px;
}
.hero__background, .hero__shade, .hero__grid { position: absolute; inset: 0; z-index: -3; }
.hero__background { background: url("/assets/images/brand-desktop.png") center / cover no-repeat; transform: scale(1.08); animation: heroDrift 18s ease-in-out infinite alternate; }
.hero__shade { z-index: -2; background: linear-gradient(90deg, rgba(5, 11, 9, .97) 2%, rgba(5, 11, 9, .83) 46%, rgba(5, 11, 9, .32) 100%), linear-gradient(0deg, var(--ink), transparent 34%); }
.hero__grid { z-index: -1; opacity: .13; background-image: linear-gradient(rgba(244,180,0,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(244,180,0,.14) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, #000, transparent 82%); }
@keyframes heroDrift { from { transform: scale(1.08) translate3d(-1%, 0, 0); } to { transform: scale(1.13) translate3d(1%, -1%, 0); } }
.hero__content { max-width: 1160px; }
.section-kicker { margin: 0 0 16px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .32em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 840px; margin-bottom: 24px; color: var(--paper); font-size: clamp(54px, 6vw, 118px); font-weight: 950; letter-spacing: -.085em; line-height: .88; text-transform: uppercase; }
h1 em { display: block; margin-top: 12px; color: var(--gold); font-family: Georgia, serif; font-size: .58em; font-weight: 500; letter-spacing: -.055em; line-height: .92; text-transform: none; }
.hero__description { /*max-width: 650px;*/ color: rgba(244, 234, 203, .72); font-size: 17px; line-height: 1.82; }
.hero__name-alt { display: inline; color: var(--gold); font-size: .62em; font-weight: 700; letter-spacing: -.02em; text-transform: none; }
.hero__name-alt.seo-alternate { display: none !important; }
.hero__name-alt::before { margin-inline: .28em; color: rgba(244, 234, 203, .42); content: "/"; }
.hero__name-alt.seo-alternate::before { content: none; }
.hero__description--alt { margin-top: 0; }
.seo-alternate { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { position: relative; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(244, 180, 0, .46); padding: 0 21px; color: var(--paper); background: transparent; font-size: 11px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; transition: border-color .2s ease, transform .2s ease, color .2s ease; }
.button::before { position: absolute; inset: 0; content: ""; background: var(--gold); transform: translateX(-102%); transition: transform .28s ease; }
.button span, .button .icon { position: relative; z-index: 1; }
.button .icon { width: 16px; height: 16px; margin-inline-start: 9px; }
.button:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }
.button:hover::before { transform: translateX(0); }
.button--primary { color: var(--ink); background: var(--gold); }
.button--primary::before { background: var(--paper); }
.button--ghost { border-color: var(--line); }
.hero__side-label { position: absolute; right: 18px; bottom: 50%; color: rgba(244, 180, 0, .64); font-size: 9px; font-weight: 900; letter-spacing: .32em; writing-mode: vertical-rl; }
.hero__scroll { position: absolute; bottom: 26px; left: 42px; display: flex; align-items: center; gap: 10px; color: rgba(244, 234, 203, .48); font-size: 9px; font-weight: 800; letter-spacing: .24em; }
.hero__scroll span { display: block; width: 54px; height: 1px; background: var(--gold); animation: scrollLine 1.9s ease-in-out infinite; transform-origin: left; }
@keyframes scrollLine { 0%, 100% { transform: scaleX(.24); } 50% { transform: scaleX(1); } }

.icon { display: inline-block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.stats-strip { border-block: 1px solid var(--line); background: rgba(7, 17, 13, .92); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:first-child { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 34px; letter-spacing: -.05em; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }

.section { position: relative; padding: 112px 0; border-bottom: 1px solid var(--line); }
.section-heading h2 { max-width: 740px; margin-bottom: 0; color: var(--paper); font-size: clamp(40px, 5vw, 68px); font-weight: 950; letter-spacing: -.07em; line-height: .94; text-transform: uppercase; }
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-heading--row > p { max-width: 410px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
.section--about { background: linear-gradient(135deg, rgba(244, 180, 0, .035), transparent 40%); }
.about-copy > p { margin-bottom: 25px; color: rgba(244, 234, 203, .72); font-size: 17px; line-height: 1.9; }
.focus-list { display: grid; gap: 10px; }
.focus-item { display: flex; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); padding: 11px 0; color: var(--paper); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.focus-item__icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--gold); }

.section--skills { background: #07110e; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skill-card { position: relative; overflow: hidden; border: 1px solid var(--line); padding: 20px; background: rgba(13, 29, 23, .64); transition: border-color .2s ease, transform .2s ease; }
.skill-card:hover { border-color: rgba(244, 180, 0, .66); transform: translateY(-4px); }
.skill-card small { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.skill-card h3 { margin: 12px 0 18px; font-size: 18px; letter-spacing: -.03em; }
.skill-bar { height: 3px; background: rgba(255,255,255,.08); }
.skill-bar span { display: block; width: var(--level); height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.skill-card.is-visible .skill-bar span { transform: scaleX(1); }
.skill-level { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .14em; }


.section--projects { background: linear-gradient(180deg, #06100c, #07130f); }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: stretch; }
.project-card { position: relative; display: flex; flex-direction: column; grid-column: span 4; height: 100%; min-height: auto; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); box-shadow: var(--shadow); transition: border-color .25s ease, transform .3s ease; }
.project-card:first-child { grid-column: span 6; }
.project-card:nth-child(2) { grid-column: span 6; }
.project-card:hover { border-color: rgba(244, 180, 0, .72); transform: translateY(-8px); }
.project-card__media { position: relative; flex: 0 0 220px; height: 220px; overflow: hidden; }
.project-card__image { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .58; filter: saturate(.75) contrast(1.1); transition: transform .55s ease, opacity .3s ease, filter .3s ease; }
.project-card:hover .project-card__image { opacity: .76; transform: scale(1.06); }
.project-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 12, 9, 0.99), rgba(4, 12, 9, 0.45) 72%); }
.project-card__content { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 20px 22px 22px; z-index: 4; }
.project-card__body { flex: 1 1 auto; min-height: 0; }
.project-card__footer { flex-shrink: 0; margin-top: auto; padding-top: 16px; }
.project-card__desc { margin-bottom: 0; }
.project-card__desc-text { margin: 0; color: rgba(244, 234, 203, .72); font-size: 13px; line-height: 1.65; }
.project-card__desc-text.is-clamped:not(.is-expanded) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.project-card__toggle { display: inline-block; margin-top: 6px; padding: 0; border: 0; color: var(--gold); background: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s ease; }
.project-card__toggle:hover { color: var(--paper); }
.project-card__status { display: inline-block; margin-bottom: 12px; border: 1px solid rgba(244, 180, 0, .45); padding: 4px 7px; color: var(--gold); background: rgba(4, 12, 9, .55); font-size: 9px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 8px; color: var(--paper); font-size: 25px; letter-spacing: -.05em; line-height: 1.12; text-transform: uppercase; word-break: break-word; }
.project-card p { margin-bottom: 14px; color: rgba(244, 234, 203, .72); font-size: 13px; line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 0; }
.tag { display: inline-block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; }
.tag::before { margin-inline-end: 4px; color: var(--gold); content: "#"; }
.project-card__button { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; margin-top: 14px; border: 1px solid rgba(244, 180, 0, .62); padding: 0 14px; color: var(--ink); background: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.project-card__button:hover { border-color: var(--paper); background: var(--paper); transform: translateY(-3px); }
.project-card__button .icon { width: 15px; height: 15px; }
.project-card__button--disabled { cursor: not-allowed; color: rgba(244, 234, 203, .62); background: rgba(7, 17, 13, .72); }
.project-card__button--disabled:hover { border-color: rgba(244, 180, 0, .62); background: rgba(7, 17, 13, .72); transform: none; }
.project-card__state-layer { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(244, 180, 0, .48); padding: 8px 10px; color: var(--gold); background: rgba(4, 12, 9, .84); backdrop-filter: blur(8px); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.project-card__state-layer .icon { width: 15px; height: 15px; }
.project-card--development .project-card__media::after, .project-card--paused .project-card__media::after { position: absolute; inset: 0; z-index: 3; pointer-events: none; content: ""; }
.project-card--development .project-card__media::after { opacity: .42; background: linear-gradient(115deg, transparent 30%, rgba(244, 180, 0, .18) 48%, transparent 66%); animation: projectBuildSweep 4.6s ease-in-out infinite; transform: translateX(-100%); }
.project-card--development .project-card__image { opacity: .48; filter: saturate(.58) contrast(1.08); }
.project-card--paused .project-card__media::after { opacity: .43; background: repeating-linear-gradient(0deg, rgba(230, 46, 34, .15) 0 1px, transparent 1px 7px); animation: projectPausedLines 6s linear infinite; }
.project-card--paused .project-card__image { opacity: .34; filter: grayscale(1) contrast(.92) brightness(.68); }
.project-card--paused:hover .project-card__image { opacity: .4; }
.project-card--paused .project-card__state-layer { border-color: rgba(230, 46, 34, .58); color: #ff766c; }
@keyframes projectBuildSweep { 0%, 20% { transform: translateX(-110%); } 74%, 100% { transform: translateX(110%); } }
@keyframes projectPausedLines { from { background-position: 0 0; } to { background-position: 0 42px; } }


.section--stream {
  background:
    radial-gradient(circle at 12% 20%, rgba(83, 252, 24, .08), transparent 34%),
    linear-gradient(180deg, #06100c, #07140f 55%, #06100d);
}
.stream-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(8, 18, 14, .88);
  box-shadow: var(--shadow);
}
.stream-panel__media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 180, 0, .18);
  background: #040c09;
  min-height: 280px;
  aspect-ratio: 16 / 9;
}
.stream-panel__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.stream-panel__placeholder,
.stream-panel__cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(83, 252, 24, .08), transparent 42%),
    linear-gradient(0deg, rgba(4, 12, 9, .92), rgba(4, 12, 9, .45));
}
.stream-panel__placeholder { gap: 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stream-panel__spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(244, 180, 0, .25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: streamSpin .8s linear infinite;
}
@keyframes streamSpin { to { transform: rotate(360deg); } }
.stream-panel__cover-link { display: block; height: 100%; color: inherit; }
.stream-panel__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
  filter: saturate(.85) contrast(1.05);
  transition: transform .45s ease, opacity .3s ease;
}
.stream-panel__cover-link:hover .stream-panel__thumb { opacity: .78; transform: scale(1.04); }
.stream-panel__overlay {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(244, 180, 0, .55);
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transition: transform .25s ease, background .2s ease;
}
.stream-panel__cover-link:hover .stream-panel__overlay { transform: scale(1.06); background: var(--paper); }
.stream-panel__play { font-size: 22px; line-height: 1; transform: translateX(2px); }
.stream-panel__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 10px 8px;
}
.stream-panel__status { display: grid; gap: 10px; }
.stream-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(244, 180, 0, .45);
  padding: 6px 10px;
  color: var(--gold);
  background: rgba(4, 12, 9, .7);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.stream-panel.is-live .stream-badge {
  border-color: rgba(83, 252, 24, .55);
  color: #53fc18;
  background: rgba(83, 252, 24, .08);
}
.stream-panel.is-live .stream-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 0 0 rgba(83, 252, 24, .55);
  animation: streamPulse 1.6s ease-out infinite;
  content: "";
}
@keyframes streamPulse {
  0% { box-shadow: 0 0 0 0 rgba(83, 252, 24, .55); }
  70% { box-shadow: 0 0 0 12px rgba(83, 252, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0); }
}
.stream-panel__status strong {
  color: var(--paper);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.04em;
  line-height: 1.15;
  text-transform: uppercase;
}
.stream-panel__detail { margin: 0; color: rgba(244, 234, 203, .72); font-size: 14px; line-height: 1.7; }
.stream-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }


.section--socials { background: linear-gradient(135deg, rgba(230, 46, 34, .035), transparent 36%), #06100d; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.social-card { display: block; border: 1px solid var(--line); padding: 18px; background: rgba(13, 29, 23, .55); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.social-card:hover { border-color: var(--gold); background: rgba(244, 180, 0, .08); transform: translateY(-4px); }
.social-card strong { display: flex; align-items: center; justify-content: space-between; color: var(--paper); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.social-card strong { gap: 10px; }
.social-card__platform { display: inline-flex; min-width: 0; align-items: center; gap: 9px; }
.social-card__platform b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card__icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--gold); }
.social-card__external { width: 15px; height: 15px; flex: 0 0 auto; color: var(--gold); }
.social-card small { display: block; overflow: hidden; margin-top: 18px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.section--contact { isolation: isolate; overflow: hidden; background: #06100d; }
.contact-intro { max-width: 580px; margin: 22px 0 30px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.contact-details { display: grid; gap: 14px; margin: 0; }
.contact-details div { display: grid; gap: 5px; }
.contact-details dt { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.contact-details dd { margin: 0; color: var(--paper); font-size: 14px; }
.contact-details a:hover { color: var(--gold); }
.contact-form { display: grid; gap: 14px; border: 1px solid var(--line); padding: 24px; background: rgba(7, 19, 14, .9); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 7px; }
.contact-form label span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); outline: 0; padding: 13px 14px; color: var(--paper); background: rgba(255,255,255,.025); resize: vertical; transition: border-color .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(244, 180, 0, .72); }
.contact-form .button { justify-self: start; }
.form-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-status.is-error { color: #ff766c; }
.form-status.is-success { color: var(--gold); }

.site-footer { padding: 28px 0; background: #030806; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer img { width: 90px; }
.site-footer p { margin: 8px 0 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-meta { text-align: right; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--line); padding: 30px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  :root { --container: min(100% - 34px, 720px); }
  .site-header { padding: 13px 17px; }
  .header-actions { gap: 9px; }
  .language-switch { min-height: 32px; padding-inline: 8px; }
  .brand img { width: 72px; }
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 65px 0 auto; display: grid; gap: 0; padding: 8px 17px 17px; border-bottom: 1px solid var(--line); background: rgba(5, 11, 9, .96); backdrop-filter: blur(18px); transform: translateY(-130%); transition: transform .26s ease; }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { border-bottom: 1px solid var(--line); padding: 14px 3px; }
  .site-nav a::after { display: none; }
  .hero { min-height: 860px; padding-top: 130px; }
  .hero__background { background-image: url("/assets/images/brand-mobile.png"); }
  .hero__shade { background: linear-gradient(90deg, rgba(5, 11, 9, .97), rgba(5, 11, 9, .78)), linear-gradient(0deg, var(--ink), transparent 40%); }
  .hero__scroll { left: 17px; }
  .hero__side-label { display: none; }
  .section { padding: 82px 0; }
  .section-heading--row { display: block; }
  .section-heading--row > p { margin-top: 16px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card,
  .project-card:first-child,
  .project-card:nth-child(2) { grid-column: 1 / -1; }
  .project-card:hover { transform: none; }
  .project-card__content { padding: 18px 18px 20px; }
  .project-card h3 { font-size: clamp(18px, 5vw, 22px); }
  .stream-panel { grid-template-columns: 1fr; }
  .stream-panel__meta { padding: 4px 2px 2px; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { display: grid; }
  .footer-meta { text-align: left; }
}

@media (max-width: 540px) {
  h1 { font-size: clamp(50px, 17vw, 74px); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat:first-child { border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .skills-grid, .social-grid { grid-template-columns: 1fr; }
  .hero__actions .button { width: 100%; }
  .section-heading h2 { font-size: 44px; }
}

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


html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: -.02em; }
html[dir="rtl"] h1 em { font-family: var(--font-ar); font-weight: 700; letter-spacing: -.02em; }
html[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(5, 11, 9, .97) 2%, rgba(5, 11, 9, .83) 46%, rgba(5, 11, 9, .32) 100%), linear-gradient(0deg, var(--ink), transparent 34%); }
html[dir="rtl"] .hero__grid { mask-image: linear-gradient(270deg, #000, transparent 82%); }
html[dir="rtl"] #heroPrimary .icon { transform: scaleX(-1); }
html[dir="rtl"] .site-nav a, html[dir="rtl"] .section-kicker, html[dir="rtl"] .hero__scroll, html[dir="rtl"] .stat span, html[dir="rtl"] .skill-card small, html[dir="rtl"] .skill-level, html[dir="rtl"] .project-card__status, html[dir="rtl"] .tag, html[dir="rtl"] .project-card__button, html[dir="rtl"] .project-card__state-layer, html[dir="rtl"] .project-card__toggle, html[dir="rtl"] .contact-details dt, html[dir="rtl"] .contact-form label span, html[dir="rtl"] .site-footer p { letter-spacing: .035em; }
html[dir="rtl"] .site-nav a::after,
html[dir="rtl"] .loader__bar span,
html[dir="rtl"] .hero__scroll span,
html[dir="rtl"] .skill-bar span { transform-origin: right; }
html[dir="rtl"] .button::before { transform: translateX(102%); }
html[dir="rtl"] .button:hover::before { transform: translateX(0); }
html[dir="rtl"] .hero__background { animation-direction: alternate-reverse; }
html[dir="rtl"] .project-card--development .project-card__media::after { animation-direction: reverse; }
html[dir="rtl"] .hero__side-label { right: auto; left: 18px; }
html[dir="rtl"] .hero__scroll { right: 42px; left: auto; }
html[dir="rtl"] .footer-meta { text-align: left; }
@media (max-width: 900px) {
  html[dir="rtl"] .hero__scroll { right: 17px; left: auto; }
  html[dir="rtl"] .footer-meta { text-align: right; }
}
@media (max-width: 540px) {
  .language-switch span { display: none; }
  .language-switch { width: 34px; justify-content: center; padding: 0; }
}
