:root {
  color-scheme: dark;

  --bg: #050505;
  --surface-1: #0a0a0a;
  --surface-2: #101010;
  --surface-3: #151515;

  --text-1: #ffffff;
  --text-2: #afafaf;
  --text-3: #777777;

  --gold: #c6a15b;
  --gold-bright: #efdfb4;
  --gold-deep: #8f6f3c;
  --gold-soft: rgba(198, 161, 91, 0.14);
  --gold-line: rgba(198, 161, 91, 0.4);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --card-bg: rgba(255, 255, 255, 0.025);

  --radius: 20px;
  --radius-sm: 14px;

  --font-ar: "IBM Plex Sans Arabic", "Tajawal", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-en: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 14px 34px rgba(0, 0, 0, 0.45);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

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

::selection {
  background: var(--gold);
  color: #0a0a0a;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1e1e1e;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
}

.bg-glow--top {
  top: -22vw;
  inset-inline-start: 50%;
  width: 92vw;
  height: 92vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(198, 161, 91, 0.16) 0%, rgba(198, 161, 91, 0) 62%);
}

.bg-glow--bottom {
  bottom: -30vw;
  inset-inline-start: 50%;
  width: 110vw;
  height: 80vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(198, 161, 91, 0.07) 0%, rgba(198, 161, 91, 0) 60%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 0%, transparent 75%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ornament {
  position: fixed;
  z-index: -1;
  color: var(--gold);
  opacity: 0.14;
  display: none;
}

@media (min-width: 1200px) {
  .ornament {
    display: block;
  }
  .ornament:first-of-type {
    top: 22vh;
    inset-inline-start: 7vw;
  }
  .ornament--code {
    bottom: 16vh;
    inset-inline-end: 8vw;
    opacity: 0.11;
  }
}

.container {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(20px, 6vw, 28px);
}

.site {
  position: relative;
}

.section {
  padding-block-start: clamp(56px, 10vw, 88px);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-block-end: 28px;
}

.section-index {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.section-head__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-eyebrow {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 5.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero {
  padding-block-start: clamp(64px, 14vw, 108px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-wrap {
  margin-block-end: 30px;
}

.logo-frame {
  position: relative;
  width: clamp(118px, 34vw, 148px);
  height: clamp(118px, 34vw, 148px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0c0c0c 0%, #070707 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 50px rgba(0, 0, 0, 0.55);
}

.logo-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  opacity: 0.6;
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.22) 0%, rgba(198, 161, 91, 0) 68%);
  z-index: -1;
  animation: breathe 6s ease-in-out infinite;
}

.logo-frame picture {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: 58%;
  max-height: 58%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 22px;
  width: 100%;
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.eyebrow-text {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.name {
  margin: 0;
  font-size: clamp(2.35rem, 8.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.name--accent {
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.english-name {
  margin: 8px 0 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(0.68rem, 2.4vw, 0.78rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-3);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-block-start: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.5);
  animation: ping 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.titles {
  margin: clamp(22px, 5vw, 30px) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(1.02rem, 3.4vw, 1.22rem);
  font-weight: 500;
  color: var(--text-1);
}

.title-sep {
  color: var(--gold);
  font-size: 0.55rem;
  transform: translateY(-1px);
}

.titles-en {
  margin: 10px 0 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.bio {
  margin: clamp(24px, 5.5vw, 32px) auto 0;
  max-width: 560px;
  font-size: clamp(0.95rem, 2.8vw, 1.03rem);
  line-height: 2.05;
  color: var(--text-2);
  font-weight: 400;
}

.philosophy {
  margin-block-start: clamp(26px, 5vw, 34px);
}

.philosophy__ar {
  margin: 0;
  font-size: clamp(0.92rem, 2.8vw, 1rem);
  font-weight: 500;
  color: var(--text-1);
}

.philosophy__en {
  margin: 8px 0 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__cta {
  margin-block-start: clamp(30px, 6vw, 38px);
  width: 100%;
  display: flex;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 16px;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
  will-change: transform;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: #f5f1e8;
  color: #0a0a0a;
  border-color: rgba(198, 161, 91, 0.35);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(198, 161, 91, 0.35),
    0 0 26px rgba(198, 161, 91, 0.12);
}

.btn--primary:active {
  transform: translateY(0) scale(0.985);
}

.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line);
  background: rgba(198, 161, 91, 0.05);
}

.btn--ghost:active {
  transform: translateY(0) scale(0.985);
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  min-height: 92px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  will-change: transform;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

.link-card__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-card:hover .link-card__icon {
  color: var(--gold);
  border-color: var(--gold-line);
}

.link-card__icon .icon {
  width: 22px;
  height: 22px;
}

.link-card__icon--wa {
  color: var(--gold);
}

.link-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.link-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 700;
}

.link-card__tag {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.3;
}

.link-card__handle {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-3);
  direction: ltr;
  text-align: left;
}

.link-card__desc {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-block-start: 2px;
}

.link-card__arrow {
  flex: 0 0 auto;
  color: var(--text-3);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.link-card__arrow .icon {
  width: 18px;
  height: 18px;
}

.link-card:hover .link-card__arrow {
  color: var(--gold);
  transform: translateX(-4px);
}

.expert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .expert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.expert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
  will-change: transform;
}

.expert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.expert-card__num {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 8px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.expert-card:hover .expert-card__num {
  color: var(--gold);
  border-color: var(--gold-line);
}

.expert-card__icon {
  color: var(--text-2);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(198, 161, 91, 0.06);
  border: 1px solid rgba(198, 161, 91, 0.16);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.expert-card:hover .expert-card__icon {
  color: var(--gold);
  border-color: var(--gold-line);
}

.expert-card__icon .icon {
  width: 21px;
  height: 21px;
}

.expert-card__title {
  margin: 6px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.expert-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-2);
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 5vw, 32px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(198, 161, 91, 0.05) 0%, rgba(255, 255, 255, 0.02) 45%),
    rgba(10, 10, 10, 0.6);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.brand-card::after {
  content: "";
  position: absolute;
  top: -70px;
  inset-inline-end: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.brand-card__mark {
  color: var(--gold);
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(198, 161, 91, 0.08);
  border: 1px solid var(--gold-line);
  flex: 0 0 auto;
}

.brand-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.brand-card__name {
  margin: 0;
  font-size: clamp(1.35rem, 4.6vw, 1.6rem);
  font-weight: 700;
}

.brand-card__en {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  direction: ltr;
  text-align: left;
}

.brand-card__desc {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 46ch;
}

.brand-card__handle {
  margin: 10px 0 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-1);
  direction: ltr;
  text-align: left;
}

.brand-card__cta {
  position: relative;
  z-index: 1;
  display: flex;
}

.brand-card__cta .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .brand-card {
    flex-direction: row;
    align-items: center;
  }
  .brand-card__cta {
    flex: 0 0 auto;
  }
  .brand-card__cta .btn {
    width: auto;
  }
}
.craft {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 36px);
  text-align: center;
  overflow: hidden;
}

.craft::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.craft__tiles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-block-end: 34px;
}

.craft__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.craft__tile:first-child {
  color: var(--gold);
}

.craft__tile:last-child {
  color: var(--text-1);
}

.craft__label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: var(--text-2);
}

.craft__seal {
  color: var(--gold);
  opacity: 0.85;
  display: grid;
  place-items: center;
  animation: sealSpin 26s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .craft__seal {
    animation: none;
  }
}

.craft__title {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  letter-spacing: 0.16em;
  color: var(--text-1);
  direction: ltr;
}

.craft__times {
  color: var(--gold);
}

.craft__statement {
  margin: 18px 0 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 42ch;
  margin-inline: auto;
}

.contact-panel {
  position: relative;
  padding: clamp(30px, 6vw, 48px) clamp(22px, 6vw, 40px);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(198, 161, 91, 0.08) 0%, transparent 70%),
    rgba(10, 10, 10, 0.55);
  border: 1px solid var(--border-strong);
  text-align: center;
}

.contact-panel__line {
  width: 54px;
  height: 1px;
  margin: 0 auto 26px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-panel__title {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 5.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.4;
}

.contact-panel__text {
  margin: 14px auto 0;
  max-width: 46ch;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--text-2);
}

.contact-panel__actions {
  margin-block-start: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 560px) {
  .contact-panel__actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.site-footer {
  padding-block: clamp(56px, 10vw, 84px) clamp(40px, 8vw, 56px);
  text-align: center;
  margin-block-start: clamp(56px, 10vw, 88px);
  border-top: 1px solid var(--border);
}

.footer__name {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-1);
  direction: ltr;
}

.footer__role {
  margin: 10px 0 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  direction: ltr;
}

.footer__line {
  width: 44px;
  height: 1px;
  margin: 26px auto;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.footer__copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer__signature {
  margin: 14px 0 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--text-3);
  direction: ltr;
}

.fab {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  inset-inline-end: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f1e8;
  color: #0a0a0a;
  border: 1px solid rgba(198, 161, 91, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.fab.fab--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(198, 161, 91, 0.18);
}

@media (min-width: 1024px) {
  .fab {
    display: none;
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(198, 161, 91, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 161, 91, 0);
  }
}

@keyframes sealSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .logo-frame::after,
  .status-dot,
  .craft__seal {
    animation: none;
  }

  .logo-frame::after {
    opacity: 0.85;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.js .hero__inner > * {
  opacity: 0;
  animation: heroRise 0.8s var(--ease) forwards;
}

.js .hero__inner > :nth-child(1) { animation-delay: 0.05s; }
.js .hero__inner > :nth-child(2) { animation-delay: 0.16s; }
.js .hero__inner > :nth-child(3) { animation-delay: 0.24s; }
.js .hero__inner > :nth-child(4) { animation-delay: 0.32s; }
.js .hero__inner > :nth-child(5) { animation-delay: 0.4s; }
.js .hero__inner > :nth-child(6) { animation-delay: 0.48s; }
.js .hero__inner > :nth-child(7) { animation-delay: 0.56s; }
.js .hero__inner > :nth-child(8) { animation-delay: 0.64s; }
.js .hero__inner > :nth-child(9) { animation-delay: 0.72s; }
.js .hero__inner > :nth-child(10) { animation-delay: 0.8s; }

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ PROJECTS ============ */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.project-card__media {
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card__browser {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.project-card__dots {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}

.project-card__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.project-card__url {
  flex: 1;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  direction: ltr;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card__url--pending {
  color: var(--text-2);
  font-family: var(--font-ar);
  direction: rtl;
  letter-spacing: 0;
  font-size: 0.72rem;
}

.project-card__monogram {
  margin: 18px auto 8px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold);
  background: rgba(198, 161, 91, 0.07);
  border: 1px solid var(--gold-line);
}

.project-card__monogram--muted {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
}

.project-card__body {
  padding: 2px 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-card__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.project-card__en {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  direction: ltr;
}

.project-card__desc {
  margin: 10px 0 0;
  font-size: 0.87rem;
  line-height: 1.9;
  color: var(--text-2);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-block-start: 12px;
}

.project-tag {
  font-size: 0.67rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

.project-card__link {
  margin: 4px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-1);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.project-card__link .icon {
  width: 16px;
  height: 16px;
}

a.project-card__link:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line);
  color: var(--gold);
  background: rgba(198, 161, 91, 0.05);
}

.project-card__link--pending {
  color: var(--text-3);
  border-style: dashed;
  cursor: default;
}

/* ============ SUB-PAGE (PROJECTS) ============ */

.page-top {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-block-start: 34px;
}

.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.back-link .icon {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  transform: translateX(3px);
}

.page-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-sub {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.9;
  max-width: 46ch;
}
