/* Layout concept: a dark navy "executive" canvas with gold brand accents (from the AS
   monogram) and a teal signal colour; real portrait and designed lecture imagery carry
   the page, glass cards with gold icon tiles hold the services. Single deliberate dark look. */
:root {
  --bg: #070C1A;
  --bg-2: #0B1328;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(226, 185, 91, 0.35);
  --text: #F5F7FB;
  --muted: #A9B4CC;
  --gold: #E2B95B;
  --gold-hi: #F7DC97;
  --gold-lo: #B8862F;
  --teal: #2DD4BF;
  --ink-on-gold: #0A1124;
  --grad-gold: linear-gradient(135deg, #F7DC97 0%, #E2B95B 50%, #B8862F 100%);

  --head: "Plus Jakarta Sans", "Tajawal", system-ui, sans-serif;
  --body: "Inter", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 2.4vw, 1.875rem);
  --step-4: clamp(1.9rem, 3.6vw, 2.75rem);
  --step-5: clamp(2.3rem, 5.4vw, 4rem);

  --r: 20px;
  --max: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
html[lang="ar"] { --head: "Tajawal", system-ui, sans-serif; --body: "Tajawal", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: var(--step-0); line-height: 1.65;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(45, 82, 170, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(226, 185, 91, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
html[lang="ar"] body { font-size: 1.0625rem; line-height: 1.85; }
body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 30; height: env(safe-area-inset-top, 0px); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: -0.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 700; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--ink-on-gold); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(7, 12, 26, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-inline-end: auto; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1; letter-spacing: 0.01em; }
html[lang="ar"] .brand-name { font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.brand-name small { display: block; font-family: var(--body); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.04em; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--gold-hi); }
.nav .lang { border: 1px solid var(--line); margin-inline-start: 6px; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; cursor: pointer; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--grad-gold); color: var(--ink-on-gold); text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 12px; border: 0; font-family: var(--body); font-size: 1rem; cursor: pointer; line-height: 1.2;
  box-shadow: 0 10px 30px rgba(226, 185, 91, 0.22); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--ink-on-gold); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(226, 185, 91, 0.32); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.nav .btn { padding: 10px 18px; margin-inline-start: 8px; color: var(--ink-on-gold); }
html[dir="rtl"] .flip { transform: scaleX(-1); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); gap: 2px;
    padding: 12px var(--gutter-r) 20px var(--gutter-l);
  }
  .nav a { padding: 12px; }
  .nav .lang, .nav .btn { margin-inline-start: 0; margin-top: 8px; justify-content: center; }
}

/* Generic sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.tight { padding-top: 12px; }
.section-head { display: grid; gap: 14px; max-width: 48rem; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.kicker .icon { width: 1.1em; height: 1.1em; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 42rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(45, 212, 191, 0.08); border: 1px solid rgba(45, 212, 191, 0.3); color: #9EEFE3; font-size: 0.9rem; font-weight: 500; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .2); }
.hero h1 .gold-text { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.stat { padding: 16px 14px; display: grid; gap: 6px; align-content: start; }
.stat .icon { color: var(--gold); width: 22px; height: 22px; }
.stat b { font-family: var(--head); font-size: var(--step-3); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-visual { order: -1; } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.orb {
  position: relative; width: min(440px, 88vw); aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2A3F7E 0%, #12204A 55%, #0A1430 100%);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 14px rgba(226, 185, 91, 0.08), 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 120px rgba(45, 120, 255, 0.18);
  overflow: hidden;
}
.orb img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 82%; height: auto; }
.orb-wrap { position: relative; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(11, 19, 40, 0.86); border: 1px solid var(--line-gold); backdrop-filter: blur(8px);
  font-size: 0.88rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.chip .tile { width: 32px; height: 32px; }
.chip small { display: block; color: var(--muted); font-weight: 400; font-size: 0.75rem; }
.chip.c1 { top: 8%; inset-inline-start: -6%; }
.chip.c2 { top: 46%; inset-inline-end: -8%; }
.chip.c3 { bottom: 6%; inset-inline-start: 0; }
@media (max-width: 560px) { .chip { font-size: 0.78rem; padding: 8px 10px; } .chip .tile { width: 26px; height: 26px; } .chip.c1 { inset-inline-start: -2%; } .chip.c2 { inset-inline-end: -2%; } }
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: float 6s ease-in-out infinite; }
  .chip.c2 { animation-delay: -2s; } .chip.c3 { animation-delay: -4s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

/* Icon tile */
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: linear-gradient(145deg, rgba(247, 220, 151, 0.18), rgba(184, 134, 47, 0.08)); border: 1px solid var(--line-gold); color: var(--gold-hi); }
.tile svg { width: 55%; height: 55%; }
.tile.teal { background: rgba(45, 212, 191, 0.1); border-color: rgba(45, 212, 191, 0.35); color: var(--teal); }

/* Logos strip */
.trust { padding-block: 8px 24px; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 34px; }
.trust p { color: var(--muted); font-size: 0.9rem; width: 100%; text-align: center; }
.trust span { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: #C9D3EA; opacity: .85; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { padding: 28px; display: grid; gap: 14px; align-content: start; position: relative; transition: border-color .2s, transform .2s, background .2s; min-width: 0; }
.service:hover { border-color: var(--line-gold); transform: translateY(-3px); background: var(--surface-2); }
.service h3 a { color: var(--text); text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.service p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.checks .icon { color: var(--teal); margin-top: 3px; width: 18px; height: 18px; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font-weight: 600; }
.more .icon { width: 18px; height: 18px; }
@media (max-width: 760px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Feature split with image */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature.rev > :first-child { order: 2; }
.shot { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: var(--bg-2); }
.shot img { width: 100%; height: auto; }
.feature-text { display: grid; gap: 18px; min-width: 0; }
.feature-text p { color: var(--muted); }
@media (max-width: 900px) { .feature, .feature.rev { grid-template-columns: minmax(0, 1fr); } .feature.rev > :first-child { order: 0; } }

/* Certifications */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.badge { flex: 1 1 200px; max-width: 260px; padding: 22px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.badge b { font-family: var(--head); font-size: 1.35rem; }
.badge span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* Metric chips */
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 18px; display: grid; gap: 4px; }
.metric b { font-family: var(--head); font-size: var(--step-4); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); font-size: 0.85rem; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.project { padding: 24px; display: grid; gap: 12px; align-content: start; }
.project .top { display: flex; gap: 12px; align-items: center; }
.project .sector { color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.project p { color: var(--muted); font-size: 0.95rem; }
.project .ctx { font-size: 0.82rem; color: #8FA0C4; display: flex; gap: 6px; align-items: center; }
.project .ctx .icon { width: 15px; height: 15px; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post { padding: 26px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.post:hover { border-color: var(--line-gold); transform: translateY(-3px); color: var(--text); }
.post time { color: var(--gold); font-size: 0.85rem; }
.post p { color: var(--muted); font-size: 0.95rem; }

/* Page head */
.page-head { padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 44px); }
.page-head .wrap { display: grid; gap: 16px; }
.crumbs { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }

/* Prose */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #D3DAEA; }
.prose ul { padding-inline-start: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.7em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.prose strong { color: var(--text); }

/* Two-column */
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.aside { padding: 26px; display: grid; gap: 16px; position: sticky; top: 100px; }
.aside h2 { font-size: var(--step-1); }
.aside .checks li { color: #D3DAEA; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; display: grid; gap: 8px; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-gold); color: var(--ink-on-gold); font-family: var(--head); font-weight: 800; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 50rem; }
.faq details { padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Experience (about) */
.roles { display: grid; gap: 18px; }
.role { padding: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
.role .org { color: var(--gold); font-weight: 600; }
.role .place { color: var(--muted); font-size: 0.88rem; display: inline-flex; gap: 6px; align-items: center; }
.role .place .icon { width: 15px; height: 15px; }
.role ul { margin: 12px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; background: rgba(45, 212, 191, 0.08); border: 1px solid rgba(45, 212, 191, 0.25); color: #9EEFE3; }
@media (max-width: 560px) { .role { grid-template-columns: minmax(0, 1fr); } }

.about-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%;
  background: radial-gradient(circle at 50% 30%, #2A3F7E, #0E1834 70%); border: 1px solid var(--line-gold); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.frame img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 96%; height: auto; }
@media (max-width: 900px) { .about-hero { grid-template-columns: minmax(0, 1fr); } .frame { max-width: 420px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
form { display: grid; gap: 16px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: rgba(7, 12, 26, 0.6); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; width: 100%;
}
.field select option { background: var(--bg-2); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.form-note { color: var(--muted); font-size: 0.88rem; }
.form-status { font-weight: 600; color: var(--teal); }
.channels { display: grid; gap: 12px; }
.channel { padding: 18px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.channel > div { display: grid; gap: 2px; min-width: 0; }
.channel span { color: var(--muted); font-size: 0.85rem; }
.channel .value { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 600; word-break: break-word; }
.copy { font: inherit; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* CTA */
.cta-panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px);
  background: radial-gradient(600px 300px at 90% 0%, rgba(45, 212, 191, 0.16), transparent 60%), linear-gradient(135deg, #14214A, #0B1430);
  border: 1px solid var(--line-gold); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-panel h2 { font-size: var(--step-3); max-width: 34rem; }
.cta-panel p { color: var(--muted); margin-top: 10px; max-width: 34rem; }
.cta-panel .mark { position: absolute; inset-inline-end: -40px; bottom: -60px; width: 240px; opacity: .08; pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); font-size: 0.92rem; margin-top: 40px; }
.site-footer .wrap { padding-block: 52px 30px; display: grid; gap: 30px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.foot-grid h2 { font-size: 1rem; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--gold-hi); }
.foot-grid p { color: var(--muted); }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.foot-brand svg { width: 48px; height: 48px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.socials a:hover { border-color: var(--line-gold); color: var(--gold-hi); }
.socials .icon { width: 20px; height: 20px; }
.fine { color: #7F8BA6; font-size: 0.8rem; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

.notfound { min-height: 50vh; display: grid; align-content: center; gap: 18px; }
@media print { .site-header, .site-footer { display: none; } }
@media (max-width: 560px) {
  .brand svg { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .brand-name small { display: none; }
  .hero-visual { min-height: 0; }
}
@media (max-width: 560px) { .chip.c2 { top: 64%; } .chip.c3 { bottom: 2%; } }

/* ---------------------------------------------------------------- motion layer */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #1E3A8A; top: -160px; inset-inline-end: -120px; }
.aurora i:nth-child(2) { width: 420px; height: 420px; background: rgba(226, 185, 91, .35); top: 40%; inset-inline-start: -180px; opacity: .25; }
.aurora i:nth-child(3) { width: 380px; height: 380px; background: rgba(45, 212, 191, .4); bottom: -160px; inset-inline-end: 20%; opacity: .18; }

.progress { position: fixed; top: env(safe-area-inset-top, 0px); inset-inline-start: 0; height: 3px; width: 0; z-index: 40; background: var(--grad-gold); box-shadow: 0 0 12px rgba(226,185,91,.6); }
.site-header { transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(7, 12, 26, 0.92); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.site-header .wrap { transition: min-height .3s; }
.site-header.scrolled .wrap { min-height: 64px; }

.to-top { position: fixed; inset-inline-end: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-gold); background: rgba(11,19,40,.9); color: var(--gold-hi);
  display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; transform: rotate(-90deg); }

/* card spotlight */
.card { position: relative; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 185, 91, .12), transparent 60%); }
.card:hover::before { opacity: 1; }
.badge, .project, .post, .metric, .role, .channel, .stat { transition: transform .25s, border-color .25s; }
.badge:hover, .project:hover, .metric:hover, .role:hover, .channel:hover, .stat:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.tile { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover .tile { transform: rotate(-8deg) scale(1.08); }

/* buttons shine */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); }
.btn:hover::after { left: 130%; transition: left .7s ease; }
.btn .icon { transition: transform .25s; }
.btn:hover .icon.flip, .more:hover .icon { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .icon.flip, html[dir="rtl"] .more:hover .icon.flip { transform: scaleX(-1) translateX(4px); }

/* orb ring */
.orb-wrap::before { content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, #F7DC97 75%, #E2B95B 85%, transparent 95%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.orb-wrap::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(226,185,91,.18), transparent 65%); }

/* rotator */
.rotator { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.rotator .rot { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; min-height: 1.6em; }
.rotator .rot.swap { animation: swapIn .5s ease both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* marquee */
.trust .marquee { width: 100%; overflow: hidden; direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.trust .track { display: flex; gap: 56px; width: max-content; }
.trust .track span { white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.trust .track span::after { content: "◆"; color: var(--gold); font-size: .7rem; opacity: .7; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all .25s; }
.filter:hover { color: var(--text); border-color: var(--line-gold); }
.filter.on { background: var(--grad-gold); color: var(--ink-on-gold); border-color: transparent; }
.project.out { display: none; }
.project.pop { animation: pop .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* papers */
.paper { padding: clamp(24px, 4vw, 40px); }
.paper-head { display: flex; gap: 16px; align-items: flex-start; }
.paper-head > div { display: grid; gap: 8px; min-width: 0; }

/* scroll reveal: only armed by script, elements in view at load stay visible */
.reveal-on .rv { opacity: 0; transform: translateY(28px); }
.reveal-on .rv.in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }

@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: drift1 22s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation: drift2 26s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { animation: drift1 30s ease-in-out infinite alternate-reverse; }
  @keyframes drift1 { to { transform: translate(-120px, 140px) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(160px, -100px) scale(.9); } }
  .orb-wrap::before { animation: spin 8s linear infinite; }
  .orb-wrap::after { animation: breathe 5s ease-in-out infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes breathe { 50% { opacity: .5; transform: scale(.95); } }
  .gold-text { background-size: 200% auto; animation: shimmer 6s linear infinite; }
  @keyframes shimmer { to { background-position: 200% center; } }
  .hero-text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
  .hero-text > :nth-child(6) { animation-delay: .4s; }
  .hero-visual { animation: zoomIn 1s cubic-bezier(.2,.7,.2,1) both .1s; }
  @keyframes rise { from { opacity: .001; transform: translateY(22px); } }
  @keyframes zoomIn { from { opacity: .001; transform: scale(.92); } }
  .pill i { animation: ping 2s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.5); } 100% { box-shadow: 0 0 0 10px rgba(45,212,191,0); } }
  .trust .track { animation: marquee 32s linear infinite; }
  .trust .marquee:hover .track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .cta-panel .mark { animation: spin 40s linear infinite; }
  .page-head h1, .page-head .lede, .page-head .kicker { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .page-head .lede { animation-delay: .1s; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on .rv { opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}
.hero { overflow-x: clip; } html, body { overflow-x: clip; }
.projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .projects { grid-template-columns: minmax(0, 1fr); } }
.orb.photo img, .frame.photo img { position: absolute; inset: 0; left: 0; bottom: auto; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.frame.photo { aspect-ratio: 1; }
.form-status.error { color: #FCA5A5; }
@media (max-width: 980px) and (min-width: 761px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
