/* The home page only; privacy.html keeps style.css alone. */
body.home {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(201, 112, 79, .16), transparent 70%),
    var(--paper);
}
body.home main { max-width: 880px; padding-top: 24px; }

.hero {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(42, 49, 87, .45);
  aspect-ratio: 16 / 9;
  background: var(--clay);
}
.hero { position: relative; isolation: isolate; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lantern-glow, .specks { position: absolute; inset: 0; pointer-events: none; }
.lantern-glow {
  inset: auto; left: 42.7%; top: 37%; width: 22%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .55) 0%, rgba(255, 190, 110, .18) 38%, transparent 68%);
  mix-blend-mode: screen;
  opacity: .55;
}
.specks span {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); border-radius: 50%;
  background: radial-gradient(circle, #FFF6D8 0%, #FFD58A 45%, transparent 72%);
  box-shadow: 0 0 calc(var(--s) * 2) rgba(255, 210, 130, .8);
  opacity: 0;
}

.who { text-align: center; margin-top: -58px; position: relative; }
.avatar {
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--paper); padding: 12px;
  border: 4px solid var(--card);
  box-shadow: 0 8px 22px -10px rgba(42, 49, 87, .5);
}
.who h1 { font-size: 30px; margin: 14px 0 2px; }
.who h1 span { font-family: "Noto Naskh Arabic", serif; font-weight: 400; }
.handle { margin: 0; color: var(--olive); font-weight: 600; letter-spacing: .02em; }

.bio { text-align: center; margin: 22px auto 30px; max-width: 620px; }
.bio [lang="ar"] { font-size: 21px; line-height: 1.85; margin: 0 0 10px; }
.bio .en { margin: 0; color: var(--night); opacity: .85; }

.links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.link {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--night);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.link svg { width: 30px; height: 30px; flex: none; fill: var(--night); }
.link .label { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.link b { font-size: 18px; }
.link small { color: var(--olive); font-size: 14px; }
.link .arrow { margin-inline-start: auto; color: var(--clay); font-size: 20px; }
.link:hover, .link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--clay);
  box-shadow: 0 12px 24px -16px rgba(42, 49, 87, .55);
  outline: none;
}
.link.first { background: var(--clay); border-color: var(--clay); color: #fff; }
.link.first svg { fill: #fff; }
.link.first small, .link.first .arrow { color: #FBE9DF; }

.app {
  margin-top: 34px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  font-size: 15px;
  color: var(--night);
}
.app p { margin: 0; }
body.home footer { text-align: center; }
body.home footer p { margin: 4px 0; }

.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

@media (max-width: 820px) {
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body.home main { padding: 16px 16px 48px; }
  .hero { border-radius: 18px; }
  .who { margin-top: -44px; }
  .avatar { width: 92px; height: 92px; padding: 9px; }
  .who h1 { font-size: 24px; }
  .bio [lang="ar"] { font-size: 19px; }
  .links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .who, .bio, .link, .app { animation: rise .5s ease both; }
  .bio { animation-delay: .08s; }
  .link:nth-child(1) { animation-delay: .14s; }
  .link:nth-child(2) { animation-delay: .19s; }
  .link:nth-child(3) { animation-delay: .24s; }
  .link:nth-child(4) { animation-delay: .29s; }
  .link:nth-child(5) { animation-delay: .34s; }
  .link:nth-child(6) { animation-delay: .39s; }
  .app { animation-delay: .44s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero img { animation: drift 28s ease-in-out infinite alternate; transform-origin: 40% 45%; }
  .lantern-glow { animation: breathe 4.5s ease-in-out infinite; }
  .specks span { animation: float var(--d) linear var(--delay) infinite; }
  .avatar { animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) .15s both; }
  .link:hover svg, .link:focus-visible svg { animation: nod .5s ease; }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -.5%); } }
@keyframes breathe { 0%, 100% { opacity: .4; } 50% { opacity: .75; } }
@keyframes float {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: .95; }
  50% { transform: translate(var(--w), -2.6rem) scale(1); }
  85% { opacity: .8; }
  100% { opacity: 0; transform: translate(calc(var(--w) * -1), -5.2rem) scale(.7); }
}
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes nod { 30% { transform: rotate(-10deg) scale(1.08); } 70% { transform: rotate(6deg); } }
