/* ==========================================================================
   KHLOUD ALHARIRI — Monochrome luxury
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --card: #131315;
  --card-2: #17171a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f2ee;
  --text-2: #b8b5af;
  --text-3: #7f7c77;
  --accent: #c9c0ae;
  --accent-rgb: 201, 192, 174;

  --display: 'Cormorant Garamond', 'Amiri', Georgia, serif;
  --body: 'Jost', 'Tajawal', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

html[lang='ar'] {
  --display: 'Amiri', 'Cormorant Garamond', Georgia, serif;
  --body: 'Tajawal', 'Jost', 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ reset */

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #2b2b2f var(--bg);
  scrollbar-width: thin;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* living background — slow-drifting platinum aurora behind everything */
body::before {
  content: '';
  position: fixed;
  inset: -22%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 30% at 16% 24%, rgba(var(--accent-rgb), 0.055), transparent 70%),
    radial-gradient(30% 26% at 84% 66%, rgba(255, 255, 255, 0.04), transparent 70%),
    radial-gradient(26% 24% at 55% 95%, rgba(var(--accent-rgb), 0.04), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  to { transform: translate3d(3.5%, -2.5%, 0) scale(1.07) rotate(1.2deg); }
}

html[lang='ar'] body { font-weight: 400; }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #0b0b0c; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262a; border-radius: 8px; border: 2px solid var(--bg); }

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

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap.narrow { max-width: 860px; }

body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------- progress bar */

.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 80;
  pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: var(--tx-origin, left);
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.35));
}
html[dir='rtl'] .progress i { --tx-origin: right; }

/* ------------------------------------------------------------------ grain */

.grain {
  position: fixed; inset: 0; z-index: 95;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grainShift 1.4s steps(4) infinite;
}
@keyframes grainShift {
  0% { background-position: 0 0; }
  25% { background-position: -60px 40px; }
  50% { background-position: 40px -50px; }
  75% { background-position: -30px -30px; }
  100% { background-position: 50px 60px; }
}

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1320px, 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang='ar'] .brand { letter-spacing: 0; font-size: 1.25rem; font-weight: 700; }
.brand-logo {
  height: 30px; width: auto; display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
  transition: opacity 0.35s;
}
.brand:hover .brand-logo { opacity: 0.85; }
.brand-text { padding-top: 2px; }
@media (max-width: 560px) { .brand-text { display: none; } .brand-logo { height: 34px; } }

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
html[lang='ar'] .nav-links a { letter-spacing: 0; font-size: 0.95rem; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: var(--tx-origin, left);
  transition: transform 0.45s var(--ease);
}
html[dir='rtl'] .nav-links a::after { --tx-origin: right; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-btn {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  transition: all 0.35s;
}
.lang-btn:hover { background: var(--text); border-color: var(--text); color: #0b0b0c; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 8px; width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ------------------------------------------------------------ menu overlay */

.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 8, 9, 0.92);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 9vw 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }

.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.9rem, 6.5vw, 3.4rem);
  font-weight: 500;
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s, padding 0.4s var(--ease);
}
.menu-overlay.open .menu-links a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i) * 70ms + 120ms), calc(var(--i) * 70ms + 120ms), 0s, 0s;
}
.menu-links a:hover { color: var(--accent); padding-inline-start: 14px; }
.ml-num { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent); }

.menu-foot {
  display: flex; flex-wrap: wrap; gap: 26px;
  margin-top: 7vh;
}
.menu-foot a {
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); transition: color 0.3s;
}
.menu-foot a:hover { color: var(--accent); }

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

.hero { position: relative; min-height: 100svh; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; }
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.58) contrast(1.06) grayscale(0.18);
  will-change: transform;
}
canvas.hero-media { filter: none; }
.hero-media.bw { filter: brightness(0.5) contrast(1.08) grayscale(1); }

.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 8%, transparent 34%, rgba(10, 10, 11, 0.5) 78%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.62) 0%, rgba(10, 10, 11, 0.18) 34%, rgba(10, 10, 11, 0.35) 68%, var(--bg) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 20px) 6vw 90px;
  will-change: transform, opacity;
}

/* breathing platinum halo behind the name */
.hero-content::before {
  content: '';
  position: absolute;
  width: min(920px, 130vw);
  height: min(520px, 72vh);
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), 0.09), transparent 68%);
  z-index: -1;
  animation: halo 7.5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes halo {
  to { opacity: 0.55; transform: translate(-50%, -49%) scale(1.09); }
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-kicker { animation: heroFade 1.1s var(--ease) 0.1s both; }
.hero-cta    { animation: heroFade 1.1s var(--ease) 0.55s both; }
.hero-scroll { animation: heroFade 1.3s var(--ease) 0.95s both; }

.hero-kicker {
  display: flex; align-items: center; gap: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-2);
}
html[lang='ar'] .hero-kicker { letter-spacing: 0.02em; font-size: 1rem; }
.hero-kicker::before, .hero-kicker::after {
  content: ''; width: 44px; height: 1px;
  background: rgba(var(--accent-rgb), 0.55);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 11.5vw, 9.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  margin-top: 30px;
  text-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}
html[lang='ar'] .hero-title {
  letter-spacing: 0; text-transform: none;
  font-weight: 400; line-height: 1.32;
  font-size: clamp(3rem, 10.5vw, 8.6rem);
}

.hero-cta { margin-top: 52px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 34px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.45s var(--ease), color 0.45s, border-color 0.45s, transform 0.45s var(--ease);
}
html[lang='ar'] .btn-ghost { letter-spacing: 0.02em; font-size: 0.95rem; }
.btn-ghost svg { width: 15px; height: 15px; transition: transform 0.45s var(--ease); }
.btn-ghost:hover {
  background: var(--accent); border-color: var(--accent);
  color: #0d0d0e; transform: translateY(-2px);
}
.btn-ghost:hover svg { transform: translateY(3px); }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hs-txt {
  font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text-3);
}
html[lang='ar'] .hs-txt { letter-spacing: 0.06em; font-size: 0.78rem; }
.hs-line {
  width: 1px; height: 62px;
  background: rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden;
}
.hs-line i {
  position: absolute; left: 0; top: -45%;
  width: 100%; height: 45%;
  background: var(--accent);
  animation: hsDrop 2.3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes hsDrop { 0% { top: -45%; } 65%, 100% { top: 110%; } }

/* ---------------------------------------------------------------- marquee */

.marquee {
  direction: ltr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 3.2rem; padding-inline-end: 3.2rem; }
.marquee-group span {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
html[lang='ar'] .marquee-group span { letter-spacing: 0; font-size: 1.35rem; }
.marquee-group em { font-style: normal; color: rgba(var(--accent-rgb), 0.75); font-size: 0.85rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.sec { padding: clamp(64px, 7.5vw, 104px) 0; position: relative; scroll-margin-top: 66px; }
.sec.about { padding-top: clamp(72px, 8.5vw, 118px); }

.sec-head { margin-bottom: clamp(30px, 4vw, 50px); }
.sec-head.center { text-align: center; }
.sec-head.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}

.sec-label {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
html[lang='ar'] .sec-label { letter-spacing: 0.04em; font-size: 0.92rem; }
.sec-label i {
  font-style: normal;
  color: var(--text-3);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.sec-label::after {
  content: ''; width: 52px; height: 1px;
  background: rgba(var(--accent-rgb), 0.4);
}
.sec-label.center { justify-content: center; display: flex; }
.sec-label.center::before {
  content: ''; width: 52px; height: 1px;
  background: rgba(var(--accent-rgb), 0.4);
}

/* hairlines draw themselves in as the label reveals */
.js .sec-label::after, .js .sec-label.center::before {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease) 0.35s;
}
.js .sec-label::after { transform-origin: var(--tx-origin, left); }
.js .sec-label.center::before { transform-origin: var(--tx-origin-alt, right); }
html[dir='rtl'] .js .sec-label::after { --tx-origin: right; }
html[dir='rtl'] .js .sec-label.center::before { --tx-origin-alt: left; }
.js .sec-label.in::after, .js .sec-label.in.center::before { transform: scaleX(1); }

.sec-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  font-weight: 500;
  line-height: 1.14;
  margin-top: 14px;
  max-width: 24ch;
}
html[lang='ar'] .sec-title { font-weight: 400; line-height: 1.5; }
.sec-head.center .sec-title {
  margin-inline: auto;
  max-width: none;              /* let it breathe on one line */
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  text-wrap: balance;           /* if a phone must wrap, wrap evenly */
}

/* ------------------------------------------------------------------ about */

.portrait {
  width: min(380px, 78vw);
  margin: 0 auto;
  position: relative;
}
.portrait::after {
  content: '';
  position: absolute; inset: 8% -14% -10% -14%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(var(--accent-rgb), 0.15), transparent 70%);
  z-index: -1;
  filter: blur(10px);
  animation: portraitGlow 6s ease-in-out infinite alternate;
}
@keyframes portraitGlow {
  from { opacity: 0.65; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1.05); }
}
.portrait-ring {
  position: relative;
  padding: 16px;
  border-radius: 999px 999px 34px 34px;
}
.portrait-ring::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(180deg,
    rgba(var(--accent-rgb), 0.95),
    rgba(255, 255, 255, 0.12) 42%,
    rgba(var(--accent-rgb), 0.28) 100%);
  background-size: 100% 260%;
  background-position: 0% 0%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: ringSheen 7s ease-in-out infinite alternate;
}
@keyframes ringSheen {
  to { background-position: 0% 100%; }
}
.portrait-ring img,
.portrait-ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 24px 24px;
  filter: grayscale(0.12) contrast(1.03);
}
.portrait-ph {
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, #1d1d20, #101013);
}
.portrait-ph span {
  font-family: var(--display);
  font-size: 5rem;
  color: rgba(var(--accent-rgb), 0.4);
}

.about-id { text-align: center; margin-top: 32px; }

.quote-mark {
  font-family: var(--display);
  font-size: 5.6rem;
  line-height: 0.4;
  height: 0.42em;
  color: rgba(var(--accent-rgb), 0.55);
}
.quote-mark.big {
  font-size: clamp(6rem, 13vw, 9rem);
  text-align: center;
  margin: 22px 0 2px;
  color: rgba(var(--accent-rgb), 0.4);
}

.about-name {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600;
  margin-top: 26px;
}
html[lang='ar'] .about-name { font-weight: 700; }

.about-role {
  margin-top: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}
html[lang='ar'] .about-role { letter-spacing: 0.03em; font-size: 1rem; }

.about-bio {
  max-width: 760px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--text-2);
  font-size: 1.06rem;
  line-height: 1.95;
}
.about-bio p + p { margin-top: 1.2em; }

/* ------------------------------------------------------------- experience */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.exp-card {
  position: relative;
  padding: 36px 32px 40px;
  background: linear-gradient(180deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.55s var(--ease), border-color 0.4s, box-shadow 0.55s var(--ease);
}
.exp-card::before {
  content: '';
  position: absolute; top: 0; inset-inline-start: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0);
  transform-origin: var(--tx-origin, left);
  transition: transform 0.7s var(--ease);
}
html[dir='rtl'] .exp-card::before { --tx-origin: right; }
.exp-card::after {
  content: '';
  position: absolute; top: 0;
  left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  transform: skewX(-18deg);
  transition: left 1s var(--ease);
  pointer-events: none;
}
.exp-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-2);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.85);
}
.exp-card:hover::before { transform: scaleX(1); }
.exp-card:hover::after { left: 125%; }

.exp-num {
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.42);
  display: block;
}
.exp-card h3 {
  margin-top: 22px;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
html[lang='ar'] .exp-card h3 { font-weight: 700; }
.exp-card p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.85;
}

/* ----------------------------------------------------------- achievements */

.ach-nav { display: flex; gap: 12px; }
.arr {
  width: 54px; height: 54px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.arr svg { width: 21px; height: 21px; }
html[dir='rtl'] .arr svg { transform: scaleX(-1); }
.arr:hover {
  background: var(--accent); border-color: var(--accent);
  color: #0d0d0e; transform: scale(1.06);
}

.ach-scroller {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px calc((100vw - min(1200px, 92vw)) / 2) 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.ach-scroller::-webkit-scrollbar { display: none; }
.ach-scroller.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ach-scroller.dragging .ach-card { pointer-events: none; }
.ach-spacer { flex: 0 0 1px; }

.ach-card {
  flex: 0 0 min(410px, 84vw);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.55s var(--ease), border-color 0.4s;
}
.ach-card:hover { transform: translateY(-7px); border-color: var(--line-2); }

.ach-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.ach-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.ach-card:hover .ach-media img { transform: scale(1.07); }

.ach-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(var(--accent-rgb), 0.08), transparent),
    linear-gradient(160deg, #1a1a1d, #0f0f11);
}
.ach-ph span { font-size: 2.2rem; color: rgba(var(--accent-rgb), 0.4); }

.chip {
  position: absolute; top: 16px; inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 8px;
  background: rgba(12, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
html[dir='rtl'] .chip { padding: 7px 8px 7px 18px; }
.chip i {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #131313;
  display: grid; place-items: center;
  font-style: normal;
  font-size: 0.62rem;
}

.ach-body { padding: 28px 28px 32px; }
.ach-body h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}
html[lang='ar'] .ach-body h3 { font-weight: 700; line-height: 1.5; }
.ach-meta {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
html[lang='ar'] .ach-meta { letter-spacing: 0.02em; font-size: 0.88rem; }
.ach-desc {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------------- vision */

.vision { text-align: center; }
.vision .sec-label { margin-inline: auto; }

.vision-title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 10px;
  background: linear-gradient(180deg, var(--text) 30%, rgba(244, 242, 238, 0.5));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-bottom: 0.15em;
}
html[lang='ar'] .vision-title { font-weight: 400; line-height: 1.55; }

.vision-body {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.95;
}
.vision-body p + p { margin-top: 1.2em; }

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

.contact-main { text-align: center; margin-top: -10px; }

.contact-big {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  font-weight: 500;
  direction: ltr;
  padding-bottom: 12px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: bottom center;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.contact-big:hover { background-size: 100% 1px; color: var(--accent); }

.contact-phone {
  display: block;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.contact-phone:hover { color: var(--accent); }

.socials {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.social-pill {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 10px 26px 10px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
html[dir='rtl'] .social-pill { padding: 10px 11px 10px 26px; }
.sp-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: border-color 0.4s;
}
.sp-ic svg { width: 16px; height: 16px; }
.social-pill:hover {
  background: var(--text); border-color: var(--text);
  color: #0d0d0e;
  transform: translateY(-4px);
}
.social-pill:hover .sp-ic { border-color: rgba(0, 0, 0, 0.25); }

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

.footer { border-top: 1px solid var(--line); padding: 38px 0 44px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.f-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.35s;
}
.f-brand:hover { opacity: 0.85; }
html[lang='ar'] .f-brand { letter-spacing: 0; font-size: 1.1rem; }
.f-logo { height: 46px; width: auto; display: block; }
.f-copy { color: var(--text-3); font-size: 0.84rem; }
@media (max-width: 640px) { .f-brand { align-items: center; } }

/* ---------------------------------------------------------------- reveals */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal='zoom'] { transform: scale(0.94) translateY(26px); }
.js [data-reveal].in { opacity: 1; transform: none; }

.js [data-split] { opacity: 0; }
.js [data-split].split-ready { opacity: 1; }
[data-split] .w { display: inline-block; }
.js [data-split] .c {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(5px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease),
    filter 0.7s var(--ease);
  transition-delay: calc(var(--ci, 0) * 26ms);
}
.js [data-split].in .c { opacity: 1; transform: none; filter: none; }
html[lang='ar'] .js [data-split] .c { transition-delay: calc(var(--ci, 0) * 70ms); }

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

@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero-title { letter-spacing: 0.03em; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav-inner { height: 66px; }
  .lang-btn { padding: 7px 14px; }
  .sec { padding: 56px 0; }
  .portrait { width: min(320px, 84vw); }
  .ach-card { flex-basis: 86vw; }
  .ach-scroller { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-kicker::before, .hero-kicker::after { width: 26px; }
  .contact-big { font-size: clamp(1.15rem, 6vw, 1.6rem); }
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal], .js [data-split], .js [data-split] .c {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .grain { animation: none; }
}
