/* Hero — headline on one side, portrait in a phone frame on the other. */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(64px, 10vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 88px); align-items: center; }

.hero-status { display: inline-flex; align-items: center; gap: 10px; color: var(--spruce); font-weight: 600; font-size: var(--step--1); margin-bottom: 22px; }
.hero-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--spruce); box-shadow: 0 0 0 0 color-mix(in srgb, var(--spruce) 50%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-greeting { font-size: var(--step-1); color: var(--muted); margin-bottom: 10px; }
.hero-title {
  font-size: var(--step-4); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.02em; max-width: 14ch; text-wrap: balance;
}
:lang(ar) .hero-title { letter-spacing: 0; line-height: 1.25; }
.hero-subtitle { margin-top: 18px; font-size: var(--step-1); font-family: var(--font-display); font-weight: 500; color: var(--spruce); }
.hero-bio { margin-top: 18px; max-width: 52ch; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cv { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; }
.hero-cv .icon { width: 20px; height: 20px; }

/* The phone. Bezel, a notch, the photo as the screen. */
.hero-phone {
  margin: 0; justify-self: center; width: min(100%, 320px);
  aspect-ratio: 9 / 18.5; padding: 12px;
  background: var(--ink); border-radius: 46px;
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--ink) 55%, transparent);
  position: relative; rotate: -3deg;
}
[dir="rtl"] .hero-phone { rotate: 3deg; }
.hero-phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0;
  width: 30%; height: 22px; border-radius: 999px; background: var(--ink); z-index: 1;
}
.phone-screen { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: var(--spruce-soft); display: grid; place-items: center; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-monogram { font-family: var(--font-display); font-size: 6rem; font-weight: 700; color: var(--spruce); }

/* The one orchestrated moment: text settles, then the phone tilts into place. */
@media (prefers-reduced-motion: no-preference) {
  .hero[data-ready="1"] .hero-text > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero[data-ready="1"] .hero-text > *:nth-child(2) { animation-delay: .06s; }
  .hero[data-ready="1"] .hero-text > *:nth-child(3) { animation-delay: .12s; }
  .hero[data-ready="1"] .hero-text > *:nth-child(4) { animation-delay: .18s; }
  .hero[data-ready="1"] .hero-text > *:nth-child(n+5) { animation-delay: .24s; }
  .hero[data-ready="1"] .hero-phone { animation: tilt-in .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes tilt-in { from { opacity: 0; rotate: 0deg; transform: translateY(24px); } }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { width: min(52vw, 210px); }
}
