/* =========================================================
   Ahmed Mohamed — personal site
   ========================================================= */

:root {
  --bg: #08090b;
  --bg-soft: #0c0e11;
  --bg-panel: #0f1114;
  --fg: #edeae3;
  --fg-dim: #a6a29b;
  --fg-mute: #74716b;
  --gold: #cfae72;
  --gold-bright: #e8cd97;
  --line: rgba(237, 234, 227, 0.10);
  --line-strong: rgba(237, 234, 227, 0.20);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(207, 174, 114, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- helpers ---------- */

.latin {
  font-family: var(--font-en);
  direction: ltr;
  unicode-bidi: isolate;
}

.muted { color: var(--fg-mute); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  height: 72px;
  background: rgba(8, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  flex: none;
}

.brand-mark svg { width: 17px; height: 17px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-ar {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.26em;
  color: var(--fg-mute);
  direction: ltr;
  text-align: right;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 0.9375rem;
  color: var(--fg-dim);
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.32s var(--ease);
}

.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }

.nav .nav-cta {
  color: var(--gold);
  border: 1px solid rgba(207, 174, 114, 0.34);
  border-radius: 999px;
  padding: 7px 18px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav .nav-cta::after { display: none; }

.nav .nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #12100b;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(120px, 17vh, 190px) var(--gutter) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  width: min(1100px, 120vw);
  height: min(1100px, 120vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(207, 174, 114, 0.10) 0%, rgba(207, 174, 114, 0.03) 38%, transparent 66%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--gold);
  border: 1px solid rgba(207, 174, 114, 0.22);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(207, 174, 114, 0.05);
}

.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(207, 174, 114, 0.6);
  animation: ping 2.8s ease-out infinite;
  flex: none;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(207, 174, 114, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(207, 174, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 174, 114, 0); }
}

.hero-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.name-ar {
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  background: linear-gradient(175deg, #ffffff 12%, #d9d3c6 62%, #a9a49a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.name-en {
  font-family: var(--font-en);
  direction: ltr;
  text-align: right;
  font-size: clamp(0.7rem, 1.35vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold);
  padding-inline-start: 4px;
}

.hero-line {
  max-width: 33ch;
  margin: clamp(22px, 3.4vw, 34px) 0 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.85;
  color: var(--fg-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.6vw, 38px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.3s var(--ease); }

.btn-primary {
  background: var(--gold);
  color: #100e09;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-primary:hover svg { transform: translateX(-5px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: clamp(16px, 3vw, 44px);
  margin: clamp(34px, 5vw, 54px) 0 0;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-family: var(--font-ar);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-mute);
  margin-bottom: 5px;
}

.hero-facts dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* hero visual */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 320px;
}

.viz-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 174, 114, 0.18) 0%, transparent 68%);
  filter: blur(14px);
}

.hand {
  position: relative;
  width: min(100%, 340px);
  height: auto;
  color: var(--gold);
  filter: drop-shadow(0 0 22px rgba(207, 174, 114, 0.35));
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hand-bones path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw 2.4s var(--ease) forwards;
  opacity: 0.55;
}

.hand-bones path:nth-child(2) { animation-delay: 0.1s; }
.hand-bones path:nth-child(3) { animation-delay: 0.2s; }
.hand-bones path:nth-child(4) { animation-delay: 0.3s; }
.hand-bones path:nth-child(5) { animation-delay: 0.4s; }
.hand-bones path:nth-child(6) { animation-delay: 0.55s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hand-joints circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: joint 4s ease-in-out infinite;
}

@keyframes joint {
  0%, 100% { opacity: 0.55; transform: scale(0.86); }
  50%      { opacity: 1;    transform: scale(1.12); }
}

.viz-caption {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
  direction: ltr;
}

/* marquee */

.marquee {
  position: relative;
  z-index: 2;
  margin-top: clamp(56px, 9vw, 104px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  direction: ltr;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
  animation: slide 42s linear infinite;
}

.marquee-track span:nth-child(even) { color: var(--gold); opacity: 0.6; }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(62px, 8.5vw, 106px) var(--gutter);
  border-top: 1px solid var(--line);
}

.section:first-of-type { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: clamp(12px, 2vw, 22px);
  row-gap: 6px;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.sec-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  padding-top: 0.5em;
  direction: ltr;
  text-align: right;
}

.section-head h2,
.contact-inner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.sec-sub {
  display: block;
  grid-column: 2;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  direction: ltr;
  text-align: right;
}

/* about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.about-body p {
  margin: 0 0 1.35em;
  color: var(--fg-dim);
  max-width: 60ch;
}

.about-body .lede {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.7;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.6em;
}

.about-body p:last-child { margin-bottom: 0; }

.about-side {
  display: grid;
  gap: clamp(22px, 3vw, 30px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.side-label {
  display: block;
  font-family: var(--font-ar);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-mute);
  margin-bottom: 8px;
  text-align: right;
}

.side-value {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  font-size: 0.8125rem;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.tag-list li:hover { border-color: rgba(207, 174, 114, 0.4); color: var(--gold); }

/* ---------- ishara ---------- */

.section-feature {
  position: relative;
  max-width: none;
  padding-inline: var(--gutter);
}

.section-feature > .section-head,
.section-feature > .feature-intro,
.section-feature > .pipeline,
.section-feature > .limits {
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: 0;
}

.section-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 84% 8%, rgba(207, 174, 114, 0.10), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 170px, #000 calc(100% - 170px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 170px, #000 calc(100% - 170px), transparent);
  pointer-events: none;
}

.section-feature > * { position: relative; }

.feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 22px);
  margin-bottom: clamp(34px, 4.5vw, 54px);
}

.feature-lede {
  margin: 0;
  font-size: clamp(1.35rem, 2.9vw, 2.05rem);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

.feature-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fg-mute);
  line-height: 1.7;
}

.feature-note::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  flex: none;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.pipe-step {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 32px);
  transition: background 0.35s var(--ease);
}

.pipe-step:hover { background: var(--bg-panel); }

.pipe-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  direction: ltr;
  text-align: right;
}

.pipe-step h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pipe-step p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--fg-dim);
}

.limits {
  margin-top: clamp(28px, 4vw, 40px);
  padding-block: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}

.limits-h {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.005em;
}

.limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(20px, 3vw, 40px);
}

.limits li {
  position: relative;
  font-size: 0.875rem;
  color: var(--fg-dim);
  padding-inline-start: 18px;
  line-height: 1.7;
}

.limits li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--fg-mute);
}

/* ---------- channel ---------- */

.channel-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(207, 174, 114, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.channel-card:hover { border-color: rgba(207, 174, 114, 0.28); }

.channel-main {
  display: flex;
  gap: clamp(16px, 2.4vw, 26px);
  align-items: flex-start;
}

.yt-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(207, 174, 114, 0.28);
  background: rgba(207, 174, 114, 0.07);
  color: var(--gold);
}

.yt-badge svg { width: 26px; height: 26px; }

.channel-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.channel-copy p {
  margin: 0 0 16px;
  color: var(--fg-dim);
  font-size: 0.9375rem;
  max-width: 52ch;
}

.channel-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px !important;
}

.channel-topics span {
  font-size: 0.75rem;
  color: var(--fg-mute);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
}

.channel-side {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(20px, 3vw, 32px);
  display: grid;
  align-content: start;
  gap: 4px;
}

.channel-side .side-label:not(:first-child) { margin-top: 16px; }

.handle {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: var(--fg);
  text-align: right;
  word-break: break-word;
}

/* ---------- skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill {
  background: var(--bg);
  padding: clamp(22px, 2.8vw, 34px) clamp(18px, 2.4vw, 30px);
  transition: background 0.35s var(--ease);
}

.skill:hover { background: var(--bg-soft); }

.skill-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  margin-bottom: 14px;
  direction: ltr;
  text-align: right;
}

.skill h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.skill p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--fg-dim);
}

.tool-tags {
  font-family: var(--font-mono);
  font-size: 0.8125rem !important;
  letter-spacing: 0.02em;
  text-align: right;
  line-height: 1.9 !important;
  color: var(--fg-mute) !important;
}

/* ---------- contact ---------- */

.section-contact { border-top: 1px solid var(--line); }

.contact-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: clamp(12px, 2vw, 22px);
}

.contact-inner .sec-index { padding-top: 0.45em; }

.contact-inner h2 { grid-column: 2; }

.contact-lede {
  grid-column: 2;
  margin: 18px 0 clamp(30px, 4vw, 44px);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--fg-dim);
  max-width: 46ch;
}

.contact-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.contact-link {
  display: grid;
  gap: 2px;
  padding: clamp(20px, 2.8vw, 30px);
  background: var(--bg);
  transition: background 0.3s var(--ease);
}

.contact-link:hover { background: var(--bg-panel); }

.contact-link .side-label { margin-bottom: 6px; }

.contact-value {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--fg);
  text-align: right;
  word-break: break-word;
  transition: color 0.25s var(--ease);
}

.contact-link:hover .contact-value { color: var(--gold); }

/* ---------- footer ---------- */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--gutter) 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--fg-mute);
}

.footer-name { font-weight: 500; color: var(--fg-dim); }

.footer-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 0; margin-bottom: 8px; }
  .hand { width: min(70%, 260px); }
  .viz-caption { display: none; }
  .name-en { text-align: right; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .channel-card { grid-template-columns: 1fr; }
  .channel-side {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding-inline-start: 0;
    padding-top: 20px;
  }
  .feature-intro { grid-template-columns: 1fr; align-items: start; }
  .feature-note { border-inline-start: 0; padding-inline-start: 0; }
}

@media (max-width: 720px) {
  .topbar { height: 64px; }
  .nav { display: none; }
  .hero { padding-top: 104px; }
  .name-ar { font-size: clamp(2.7rem, 13vw, 4rem); }
  .name-en { letter-spacing: 0.3em; font-size: 0.6875rem; }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }
  .hero-facts > div:last-child { grid-column: 1 / -1; }
  .pipeline,
  .skills-grid,
  .contact-links { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; }
  .limits ul { grid-template-columns: 1fr; }
  .channel-main { flex-direction: column; }
  .section-head { grid-template-columns: 1fr; }
  .sec-sub { grid-column: 1; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-inner h2,
  .contact-lede { grid-column: 1; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { gap: 10px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hand-bones path { stroke-dashoffset: 0; }
}
