/* Dr. Karina Rauashde — personal CV site
   Apple-inspired: system type (SF Pro / SF Arabic), white and #f5f5f7 bands, one black band,
   big rounded tiles, blue actions, a warm gold accent taken from her portrait. Light theme only. */

@view-transition { navigation: auto; }

:root {
  --white: #fff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --bronze: #9a5f24;
  --gold-text: linear-gradient(100deg, #b98446 0%, #e9c58f 45%, #c9955a 100%);
  --dark: #000;
  --dark-2: #1d1d1f;
  --on-dark: #f5f5f7;
  --muted-dark: #a1a1a6;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 18px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --track: -.022em;       /* body tracking, as on SF Pro Text 17px */
  --track-display: -.015em;
  color-scheme: light;
}
html[lang="ar"] {
  --font: "SF Arabic", -apple-system, BlinkMacSystemFont, "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", sans-serif;
  --font-display: var(--font);
  --track: 0;
  --track-display: 0;
}
html[lang="ru"] { --track: -.012em; --track-display: -.01em; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 64px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: var(--track);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: break-word; margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #f2e2cc; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(980px, 100% - 44px); margin-inline: auto; }
@media (min-width: 1068px) { .wrap { width: min(1180px, 100% - 88px); } }
.wrap.narrow { width: min(760px, 100% - 44px); }

.ico { width: 22px; height: 22px; flex: none; }
.chev { width: .72em; height: .72em; flex: none; stroke-width: 2.6; margin-inline-start: .18em; transform: translateY(.03em); }
html[dir="rtl"] .chev { transform: scaleX(-1) translateY(.03em); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 8px; }

/* ───────── global nav ───────── */
.gnav {
  position: sticky; top: 0; z-index: 100;
  view-transition-name: gnav;
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.gnav.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.gnav-inner {
  display: flex; align-items: center; gap: 12px;
  height: var(--nav-h); width: min(1180px, 100% - 32px); margin-inline: auto;
}
@media (min-width: 1068px) { .gnav-inner { width: min(1180px, 100% - 88px); } }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; margin-inline-end: auto; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ink); color: #f1d8b2;
  font: italic 600 15px/1 Georgia, "Times New Roman", serif; letter-spacing: 0;
}
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
html[lang="ar"] .brand-name { font-size: 15.5px; letter-spacing: 0; }
@media (max-width: 399px) { .brand-name { display: none; } }

.gnav-links { display: none; gap: 30px; }
.gnav-links a {
  font-size: 13px; letter-spacing: -.005em; text-decoration: none; color: rgba(0, 0, 0, .78);
  transition: color .2s var(--ease); white-space: nowrap;
}
html[lang="ar"] .gnav-links a { font-size: 14.5px; }
.gnav-links a:hover { color: #000; }
.gnav-links a[aria-current="page"] { color: #000; font-weight: 600; }
@media (min-width: 834px) { .gnav-links { display: flex; } }

.lang { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(0, 0, 0, .05); }
.gnav .lang { margin-inline-start: 18px; }
@media (max-width: 833px) { .gnav .lang { margin-inline-start: 0; } }
.lang a {
  font: 600 11.5px/1 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; letter-spacing: .02em;
  padding: 7px 10px; border-radius: 999px; text-decoration: none; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.lang a[lang="ar"] { font-family: "SF Arabic", -apple-system, "IBM Plex Sans Arabic", sans-serif; font-size: 12.5px; letter-spacing: 0; padding-block: 6px 8px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.menu-btn { display: none; }
@media (max-width: 833px) {
  .js .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 40px; height: 40px; margin-inline-end: -10px; padding: 0;
    border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .menu-btn span { display: block; width: 17px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  display: none; flex-direction: column; gap: 28px;
  padding: 18px 40px 40px; overflow-y: auto;
  background: #fbfbfd;
}
.menu-open .menu { display: flex; }
.menu-open body { overflow: hidden; }
.menu li a, .menu-cv {
  display: block; padding: 7px 0; text-decoration: none;
  font: 600 28px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--ink);
  opacity: 0; transform: translateY(-8px);
  animation: menu-in .45s var(--ease-out) forwards; animation-delay: calc(var(--i) * 35ms + 40ms);
}
html[lang="ar"] .menu li a { letter-spacing: 0; line-height: 1.5; }
.menu li a[aria-current="page"] { color: var(--muted); }
.menu-cv { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 400; color: var(--link); }
@keyframes menu-in { to { opacity: 1; transform: none; } }

/* ───────── type & buttons ───────── */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--bronze); letter-spacing: var(--track); }
@media (min-width: 734px) { .eyebrow { font-size: 19px; } }
.headline {
  font: 600 clamp(32px, 4.6vw, 56px)/1.08 var(--font-display); letter-spacing: var(--track-display);
  text-wrap: balance;
}
html[lang="ar"] .headline { line-height: 1.32; }
.sub { font-size: clamp(19px, 1.9vw, 21px); line-height: 1.38; color: var(--muted); margin-top: 12px; text-wrap: pretty; }

.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 980px;
  font: 400 17px/1.18 var(--font); letter-spacing: var(--track);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn:active { transform: scale(.98); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #f0f0f2; border-color: #f0f0f2; }
.btn .ico { width: 18px; height: 18px; }
.link { display: inline-flex; align-items: center; color: var(--link); text-decoration: none; font-size: 17px; }
.link:hover { text-decoration: underline; }
.more { display: inline-flex; align-items: center; color: var(--link); font-size: 17px; margin-top: 14px; }

/* entrance + reveal */
.hero-in { animation: hero-in 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── home hero ───────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(40px, 7vh, 76px);
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  text-align: center;
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; bottom: -12%;
  width: min(1100px, 140vw); aspect-ratio: 1.3; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(240, 214, 178, .55), rgba(240, 214, 178, .18) 55%, rgba(240, 214, 178, 0));
}
.hero-copy { position: relative; z-index: 3; }
.hero-title {
  margin-top: 6px;
  font: 600 clamp(44px, 7.4vw, 96px)/1.04 var(--font-display); letter-spacing: var(--track-display);
  text-wrap: balance;
}
html[lang="ar"] .hero-title { line-height: 1.3; margin-top: 2px; }
.hero-sub {
  max-width: 24em; margin: 12px auto 26px;
  font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; letter-spacing: var(--track-display);
  color: var(--ink-2); text-wrap: balance;
}
html[lang="ar"] .hero-sub { line-height: 1.55; }

.hero-visual { position: relative; display: grid; place-items: center; margin-top: clamp(4px, 2vh, 20px); }
.hero .stage { width: clamp(250px, calc((100svh - 360px) * .74), 470px); }
@media (max-width: 733px) { .hero .stage { width: clamp(240px, calc((100svh - 400px) * .78), 330px); } }

/* ───────── the levitating portrait ───────── */
.stage {
  --px: 0; --py: 0;
  position: relative; width: 100%;
  padding-bottom: 9%;
  transform: perspective(1100px) rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -4deg));
  transition: transform .6s var(--ease-out);
}
.arch {
  position: absolute; inset: 11% 3% 7% 3%;
  border-radius: 999px 999px 34px 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(250, 242, 231, .7) 55%, rgba(244, 232, 215, 0) 100%);
  border: 1px solid rgba(154, 95, 36, .16);
  -webkit-mask-image: linear-gradient(#000 62%, transparent 97%);
  mask-image: linear-gradient(#000 62%, transparent 97%);
  overflow: hidden;
  transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -8px), 0);
  transition: transform .6s var(--ease-out);
}
.arch::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  animation: glow 7s ease-in-out infinite;
}
.rays {
  position: absolute; inset: -30% -70%;
  background: repeating-linear-gradient(112deg,
    rgba(255, 255, 255, 0) 0 44px, rgba(255, 255, 255, .9) 44px 70px, rgba(255, 255, 255, 0) 70px 128px);
  filter: blur(11px); opacity: .6;
  animation: rays 16s ease-in-out infinite alternate;
}
@keyframes rays { from { transform: translateX(-46px); } to { transform: translateX(46px); } }
@keyframes glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.float {
  position: relative; z-index: 2; width: 100%; height: auto;
  filter: drop-shadow(0 28px 26px rgba(95, 63, 32, .14));
  transform-origin: 50% 70%;
  animation: levitate 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes levitate {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.5deg); }
  50% { transform: translate3d(0, -26px, 0) rotate(.5deg); }
}
.float-shadow {
  position: absolute; z-index: 1; left: 50%; bottom: 1.5%;
  width: 56%; height: 6%; margin-left: -28%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 60, 32, .4), rgba(90, 60, 32, 0));
  filter: blur(5px);
  animation: shadow 6s ease-in-out infinite;
}
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(.7); opacity: .45; } }
.ripples { position: absolute; z-index: 0; left: 50%; bottom: -3%; width: 92%; margin-left: -46%; aspect-ratio: 4 / 1; }
.ripples i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(154, 95, 36, .42); opacity: 0; animation: ripple 6s ease-out infinite; }
.ripples i:nth-child(2) { animation-delay: 2s; }
.ripples i:nth-child(3) { animation-delay: 4s; }
@keyframes ripple { 0% { transform: scale(.3); opacity: 0; } 18% { opacity: .85; } 100% { transform: scale(1.08); opacity: 0; } }
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motes span {
  position: absolute; left: var(--x); bottom: var(--b);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, #f0d39f 55%, rgba(240, 211, 159, 0) 72%);
  box-shadow: 0 0 10px 2px rgba(240, 211, 159, .55);
  opacity: 0; animation: rise var(--d) linear var(--delay) infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12% { opacity: 1; } 75% { opacity: .7; }
  100% { transform: translate3d(var(--dx), -320px, 0) scale(1); opacity: 0; }
}

/* the portrait drifts back as the page scrolls (where supported) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes drift { to { transform: translateY(90px) scale(.94); opacity: .35; } }
  }
}

/* ───────── bands & sections ───────── */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section.gray { background: var(--gray); }
.sec-head { margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 820px; }
.sec-head .eyebrow + .headline { margin-top: 8px; }

.band-dark { background: var(--dark); color: var(--on-dark); padding-block: clamp(80px, 11vw, 140px); }
.band-dark .eyebrow { color: #d9ad74; }
.band-head { max-width: 860px; margin-bottom: clamp(44px, 6vw, 80px); }
.band-head .headline { margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
@media (min-width: 1068px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { border-top: 1px solid #333336; padding-top: 22px; }
.stats b {
  display: block; width: fit-content;
  font: 600 clamp(48px, 6vw, 80px)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: lining-nums;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.stats span { display: block; margin-top: 12px; color: var(--muted-dark); font-size: 17px; line-height: 1.4; max-width: 15em; }

/* ───────── home tiles ───────── */
.tiles-wrap { padding: 12px; background: var(--white); }
.tiles { display: grid; gap: 12px; }
@media (min-width: 734px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  min-height: clamp(500px, 44vw, 640px);
  border-radius: var(--r-xl); background: var(--gray);
  text-align: center; text-decoration: none; color: var(--ink);
}
.tile-copy { position: relative; z-index: 2; padding: clamp(40px, 5vw, 56px) 28px 20px; }
.tile-title { font: 600 clamp(32px, 3.6vw, 44px)/1.08 var(--font-display); letter-spacing: var(--track-display); text-wrap: balance; }
html[lang="ar"] .tile-title { line-height: 1.35; }
.tile-sub { margin: 10px auto 0; font-size: clamp(19px, 1.8vw, 21px); line-height: 1.33; max-width: 22em; color: var(--ink-2); text-wrap: balance; }
.tile-media { position: relative; flex: 1; width: 100%; min-height: 0; margin-top: 8px; }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile-media::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 34%; z-index: 1;
  background: linear-gradient(var(--gray), rgba(245, 245, 247, 0));
}
.tile:hover .tile-media img { transform: scale(1.04); }
.tile:hover .more { text-decoration: underline; }

.tile-license { background: radial-gradient(120% 90% at 50% 100%, #2a2118 0%, #0b0b0c 55%, #000 100%); color: var(--on-dark); }
.tile-license .tile-sub { color: var(--muted-dark); }
.tile-license .more { color: #2997ff; }
.lic-art { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 10px 24px 56px; }
.lic-art-seal { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #e2b57a; border: 1px solid rgba(226, 181, 122, .4); background: rgba(226, 181, 122, .08); margin-bottom: 8px; }
.lic-art-seal .ico { width: 38px; height: 38px; stroke-width: 1.4; }
.lic-art b {
  font: 600 clamp(52px, 6.4vw, 88px)/1.05 var(--font-display); letter-spacing: -.02em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
html[lang="ar"] .lic-art b { letter-spacing: 0; line-height: 1.3; }
.lic-art span:last-child { color: var(--muted-dark); font-size: 17px; }

.tile-contact {
  justify-content: center; min-height: clamp(340px, 30vw, 440px);
  background: radial-gradient(70% 120% at 50% 0%, #fff7ec 0%, #f6ead9 55%, #efdcc2 100%);
}
@media (min-width: 734px) { .tile-contact { grid-column: 1 / -1; } }
.tile-contact .ctas { margin-top: 26px; }

/* ───────── page hero (inner pages) ───────── */
.phero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); background: var(--white); overflow: hidden; }
.phero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1068px) { .phero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.phero-title { font: 600 clamp(48px, 7.4vw, 96px)/1.04 var(--font-display); letter-spacing: var(--track-display); text-wrap: balance; }
html[lang="ar"] .phero-title { line-height: 1.28; }
.phero-lead { margin-top: 18px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.24; color: var(--ink-2); max-width: 22em; text-wrap: balance; }
html[lang="ar"] .phero-lead { line-height: 1.6; }
.phero-media { display: grid; justify-items: center; }
@media (min-width: 1068px) { .phero-media { justify-items: end; } }
.photo { display: block; width: min(100%, 480px); aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: var(--gray); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.phero .stage { width: min(100%, 400px); }

/* ───────── about ───────── */
.intro-big { font: 600 clamp(26px, 3vw, 36px)/1.2 var(--font-display); letter-spacing: var(--track-display); text-wrap: pretty; }
html[lang="ar"] .intro-big { line-height: 1.55; }
.prose { margin-top: 32px; }
.prose p { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.52; color: var(--ink-2); text-wrap: pretty; }
html[lang="ar"] .prose p { line-height: 1.85; }
.prose p + p { margin-top: 1.1em; }

.features { display: grid; gap: 16px; }
@media (min-width: 834px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--white); border-radius: var(--r-xl); padding: 36px 32px 40px; }
.feature .ico { width: 38px; height: 38px; color: var(--bronze); stroke-width: 1.5; }
.feature h3 { margin-top: 22px; font: 600 24px/1.2 var(--font-display); letter-spacing: var(--track-display); }
html[lang="ar"] .feature h3 { line-height: 1.5; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 17px; }

.langs-big { display: grid; gap: 16px; }
@media (min-width: 734px) { .langs-big { grid-template-columns: repeat(3, 1fr); } }
.langs-big li { border-top: 1px solid var(--line); padding-top: 22px; }
.lb-native { display: block; font: 600 clamp(40px, 5vw, 64px)/1.3 var(--font-display); letter-spacing: -.015em; }
html[dir="ltr"] .lb-native { text-align: left; }
html[dir="rtl"] .lb-native { text-align: right; }
.lb-native[lang="ar"] { font-family: "SF Arabic", -apple-system, "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
.lb-native[lang="ru"], .lb-native[lang="en"] { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; }
.lb-label { display: block; margin-top: 8px; color: var(--muted); }

/* ───────── next page ───────── */
.next-wrap { padding-block: 0 clamp(64px, 8vw, 100px); background: var(--white); }
.section.gray + .next-wrap, .cat.gray + .next-wrap { background: var(--gray); padding-top: 0; }
.next {
  display: flex; flex-direction: column; gap: 4px; padding: 36px 0 0;
  border-top: 1px solid var(--line); text-decoration: none;
}
.next-k { color: var(--muted); font-size: 17px; }
.next-t { display: inline-flex; align-items: center; color: var(--link); font: 600 clamp(32px, 4.6vw, 56px)/1.1 var(--font-display); letter-spacing: var(--track-display); }
html[lang="ar"] .next-t { line-height: 1.4; }
.next:hover .next-t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.next-t .chev { stroke-width: 2.2; width: .6em; height: .6em; }

/* ───────── experience ───────── */
.jobs { display: grid; gap: 16px; }
.job { display: grid; gap: 18px; background: var(--white); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); }
@media (min-width: 1068px) { .job { grid-template-columns: 250px 1fr; gap: 48px; } }
.job-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
@media (min-width: 1068px) { .job-when { flex-direction: column; align-items: flex-start; padding-top: 10px; } }
.job-period { font-size: 17px; font-weight: 600; color: var(--bronze); font-variant-numeric: tabular-nums; }
.job-place { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.job-place .ico { width: 16px; height: 16px; }
.badge-now {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: #e9f7ee; color: #127a3c; font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.badge-now i { width: 8px; height: 8px; border-radius: 50%; background: #1ea852; box-shadow: 0 0 0 0 rgba(30, 168, 82, .5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 168, 82, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(30, 168, 82, 0); } }
.job-org { font: 600 clamp(26px, 2.8vw, 34px)/1.15 var(--font-display); letter-spacing: var(--track-display); text-wrap: balance; }
html[lang="ar"] .job-org { line-height: 1.45; }
.job-role { margin-top: 6px; font-size: 19px; color: var(--ink-2); }
.job-desc { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 46em; }
.job-list { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 834px) { .job-list { grid-template-columns: 1fr 1fr; column-gap: 36px; } }
.job-list li { position: relative; padding-inline-start: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.job-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); opacity: .75; }
html[lang="ar"] .job-list li::before { top: .8em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--gray); font-size: 14px; color: var(--ink-2); letter-spacing: 0; }

/* ───────── treatments ───────── */
.seg { position: sticky; top: var(--nav-h); z-index: 50; padding: 10px 0; pointer-events: none; }
.seg-inner {
  pointer-events: auto;
  display: flex; gap: 4px; width: max-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; background: rgba(232, 232, 237, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.seg-inner::-webkit-scrollbar { display: none; }
.seg a {
  flex: none; padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: 14px; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s;
}
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.phero:has(+ .seg) { padding-bottom: clamp(88px, 10vw, 128px); }
.phero + .seg { margin-top: -70px; }
.cat { scroll-margin-top: calc(var(--nav-h) + 56px); }
.cat-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.cat-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; background: linear-gradient(145deg, #faf1e6, #f0dcc2); color: var(--bronze); }
.cat-icon .ico { width: 28px; height: 28px; stroke-width: 1.5; }
.items { display: grid; gap: 14px; }
@media (min-width: 734px) { .items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1068px) { .items { grid-template-columns: repeat(3, 1fr); } }
.item { border-radius: var(--r-lg); padding: 28px 28px 30px; background: var(--gray); }
.gray .item { background: var(--white); }
.item h3 { font: 600 21px/1.25 var(--font-display); letter-spacing: var(--track-display); }
html[lang="ar"] .item h3 { line-height: 1.55; }
.item p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.item-feature { background: var(--dark) !important; color: var(--on-dark); }
@media (min-width: 734px) { .item-feature { grid-column: span 2; } }
.item-feature p { color: var(--muted-dark); }
.item-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; color: #e2b57a; letter-spacing: 0;
}
.item-badge .ico { width: 20px; height: 20px; }

/* ───────── education ───────── */
.lic {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, 480px); padding: clamp(32px, 4vw, 44px);
  border-radius: var(--r-xl); color: var(--on-dark);
  background: radial-gradient(120% 90% at 100% 0%, #3a2c1d 0%, #121212 50%, #000 100%);
  box-shadow: 0 40px 80px -40px rgba(60, 40, 20, .55);
}
.lic::after {
  content: ""; position: absolute; z-index: -1; inset: -40% -60% auto auto; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 181, 122, .16), rgba(226, 181, 122, 0));
}
.lic-top { display: flex; align-items: center; gap: 12px; }
.lic-seal { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #e2b57a; border: 1px solid rgba(226, 181, 122, .4); background: rgba(226, 181, 122, .08); }
.lic-seal .ico { width: 26px; height: 26px; stroke-width: 1.5; }
.lic-k { font-size: 14px; font-weight: 600; color: #e2b57a; letter-spacing: 0; }
.lic-date { margin-inline-start: auto; font-size: 14px; color: var(--muted-dark); }
.lic-issuer { margin-top: 44px; color: var(--muted-dark); font-size: 16px; }
.lic-name { margin-top: 6px; font: 600 clamp(26px, 2.6vw, 32px)/1.15 var(--font-display); letter-spacing: var(--track-display); color: #fff; }
html[lang="ar"] .lic-name { line-height: 1.5; }
.lic-rank {
  margin-top: 14px; width: fit-content;
  font: 600 clamp(30px, 3.4vw, 42px)/1.12 var(--font-display); letter-spacing: var(--track-display);
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .1em;
}
html[lang="ar"] .lic-rank { line-height: 1.5; }

.edu { display: grid; gap: 16px; }
@media (min-width: 734px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu-card { background: var(--white); border-radius: var(--r-xl); padding: clamp(28px, 3.4vw, 40px); }
.edu-period { font-size: 17px; font-weight: 600; color: var(--bronze); font-variant-numeric: tabular-nums; }
.edu-org { margin-top: 14px; font: 600 clamp(22px, 2.2vw, 26px)/1.22 var(--font-display); letter-spacing: var(--track-display); text-wrap: balance; }
html[lang="ar"] .edu-org { line-height: 1.55; }
.edu-prog { margin-top: 6px; font-size: 19px; color: var(--ink-2); }
.edu-place { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.edu-place .ico { width: 16px; height: 16px; }

/* ───────── contact ───────── */
.cgrid { display: grid; gap: 14px; }
@media (min-width: 734px) { .cgrid { grid-template-columns: 1fr 1fr; } }
.ccard {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 32px; border-radius: var(--r-xl); background: var(--white);
  text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
a.ccard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .28); }
.ccard .ico { width: 30px; height: 30px; color: var(--bronze); stroke-width: 1.5; margin-bottom: 18px; }
.ccard .k { color: var(--muted); font-size: 15px; }
.ccard .v { font: 600 clamp(21px, 2.2vw, 26px)/1.25 var(--font-display); letter-spacing: var(--track-display); overflow-wrap: anywhere; }
a.ccard .v { color: var(--link); }
html[dir="rtl"] .ccard .v[dir="ltr"] { text-align: right; }
.cv-card {
  display: grid; gap: 24px; align-items: center; margin-top: 14px;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--r-xl);
  background: var(--dark); color: var(--on-dark);
}
@media (min-width: 834px) { .cv-card { grid-template-columns: 1fr auto; } }
.cv-title { font: 600 clamp(28px, 3.4vw, 40px)/1.12 var(--font-display); letter-spacing: var(--track-display); }
.cv-card p { margin-top: 8px; color: var(--muted-dark); }
.cv-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (min-width: 834px) { .cv-action { align-items: center; } }
.cv-action small { color: var(--muted-dark); font-size: 13px; }

/* ───────── footer ───────── */
.foot { background: var(--gray); color: var(--muted); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; }
html[lang="ar"] .foot { font-size: 13px; line-height: 1.6; letter-spacing: 0; }
.foot .wrap { padding-block: 22px 26px; }
.foot-tag { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 2px; padding-block: 16px; color: var(--ink-2); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .chev { width: 9px; height: 9px; margin-inline: 8px; color: var(--faint); }
.foot-dir { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 734px) { .foot-dir { grid-template-columns: repeat(3, 1fr); } }
.foot-dir h2 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: 0; }
html[lang="ar"] .foot-dir h2 { font-size: 13px; }
.foot-dir li + li { margin-top: 8px; }
.foot-dir a { color: var(--ink-2); text-decoration: none; }
.foot-dir a:hover { text-decoration: underline; }
.foot-dir a[aria-current] { color: var(--ink); font-weight: 600; }
html[dir="rtl"] .foot-dir a[dir="ltr"] { unicode-bidi: isolate; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; }

/* ───────── 404 ───────── */
.nf { display: grid; min-height: 100svh; place-items: center; background: var(--gray); text-align: center; }
.nf-main { padding: 40px 22px; }
.nf .phero-lead { margin-inline: auto; }
.nf .ctas { margin-top: 32px; }

/* ───────── reduced motion: keep only a slow, gentle float ───────── */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero-in, .menu li a, .menu-cv { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rays, .arch::after, .ripples i, .badge-now i { animation: none; }
  .ripples, .motes { display: none; }
  .float { animation: levitate-soft 9s ease-in-out infinite; }
  .float-shadow { animation: shadow-soft 9s ease-in-out infinite; }
  .stage, .arch, .btn, .ccard, .tile-media img { transition: none; }
}
@keyframes levitate-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shadow-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(.9); } }

@media print {
  .gnav, .seg, .hero-visual, .phero-media, .ctas, .next-wrap, .tiles-wrap, .cv-card, .menu { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .band-dark { background: none; color: var(--ink); }
  .stats b { color: var(--ink); background: none; }
}
