/* =========================================================
   Eng. Yousef Zomot — personal site
   Brand: Business Up navy + orange
   ========================================================= */
:root {
  --navy-900: #071528;
  --navy-800: #0b1f3a;
  --navy-700: #12305a;
  --navy-600: #1b4278;
  --orange: #ff9417;
  --orange-2: #ffb347;
  --gold: #f5c04a;

  --bg: #f6f8fc;
  --bg-alt: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --text: #0e1c33;
  --muted: #56657e;
  --border: rgba(14, 28, 51, .1);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .25);
  --shadow-lg: 0 30px 60px -25px rgba(11, 31, 58, .45);
  --header-bg: rgba(255, 255, 255, .75);
  --accent: var(--orange);
  --accent-ink: #b35c00;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #061224;
  --bg-alt: #0a1a31;
  --surface: #0f2342;
  --surface-2: #132a4e;
  --text: #e8eef8;
  --muted: #9fb0c9;
  --border: rgba(255, 255, 255, .09);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .8);
  --header-bg: rgba(6, 18, 36, .72);
  --accent-ink: var(--orange-2);
}

html[lang="en"] { --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.75; font-size: 1.02rem; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
html[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--orange); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--gold)); }
[dir="rtl"] .progress span { transform-origin: right; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn--primary { background: linear-gradient(135deg, var(--orange), #ff7a00); color: #1a0f00; box-shadow: 0 10px 25px -10px rgba(255, 148, 23, .8); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55), transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--accent-ink); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: .55em 1.15em; font-size: .92rem; }
.btn--block { width: 100%; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); font: inherit; font-weight: 700; font-size: .85rem;
  transition: transform .2s var(--ease), border-color .2s, background .3s;
}
.icon-btn:hover { border-color: var(--orange); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }
#themeToggle svg { transition: transform .5s var(--ease); }
#themeToggle:hover svg { transform: rotate(40deg); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.header.scrolled { background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: var(--border); box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: Inter, sans-serif; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); color: #fff; position: relative;
  box-shadow: inset 0 -3px 0 var(--orange);
}
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s var(--ease); border-radius: 2px; }
.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; gap: 8px; align-items: center; }
.menu-btn { display: none; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 30px) 0 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1200px 600px at 80% -10%, rgba(255,148,23,.12), transparent 60%), var(--bg); }
[data-theme="dark"] .hero__bg { background: radial-gradient(1100px 600px at 80% -10%, rgba(255,148,23,.14), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(27,66,120,.6), transparent 60%), var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 16s ease-in-out infinite; }
.b1 { width: 380px; height: 380px; background: var(--orange); top: 10%; inset-inline-end: -120px; opacity: .25; }
.b2 { width: 460px; height: 460px; background: #3a7bd5; bottom: -160px; inset-inline-start: -140px; opacity: .22; animation-delay: -5s; }
.b3 { width: 240px; height: 240px; background: var(--gold); top: 55%; inset-inline-end: 30%; opacity: .16; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-40px) scale(1.08); } 66% { transform: translate(-25px,20px) scale(.95); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); opacity: .6; }

.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,148,23,.12); color: var(--accent-ink); font-weight: 600; font-size: .9rem; border: 1px solid rgba(255,148,23,.35); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,148,23,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,148,23,0); } 100% { box-shadow: 0 0 0 0 rgba(255,148,23,0); } }
.hero__title { font-size: clamp(2.3rem, 6.2vw, 4.4rem); font-weight: 700; margin: 18px 0 8px; letter-spacing: -.5px; }
.hero__title span { background: linear-gradient(100deg, var(--text) 30%, var(--orange) 50%, var(--text) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero__role { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600; margin-bottom: 18px; min-height: 2.2em; }
.typed { color: var(--accent-ink); }
.caret { display: inline-block; width: 3px; height: 1.1em; background: var(--orange); vertical-align: -.15em; margin-inline-start: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero__social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), background .25s, color .25s; }
.hero__social a:hover { transform: translateY(-3px); background: var(--orange); color: #111; }
.hero__social svg { width: 20px; height: 20px; fill: currentColor; }

.hero__visual { display: flex; justify-content: center; }
.portrait { position: relative; width: min(400px, 100%); aspect-ratio: 420 / 480; }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); }
.portrait__ring { position: absolute; inset: -14px; border-radius: 40px; background: conic-gradient(from 0deg, var(--orange), transparent 30%, #3a7bd5 55%, transparent 75%, var(--orange)); animation: spin 10s linear infinite; filter: blur(2px); opacity: .85; }
.portrait__ring::after { content: ""; position: absolute; inset: 6px; border-radius: 36px; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
@supports not (aspect-ratio: 1) { .portrait { height: 460px; } }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 600; font-size: .92rem;
  animation: bob 5s ease-in-out infinite;
}
.float-card strong { font-size: 1.7rem; color: var(--accent-ink); font-family: Inter, sans-serif; }
.float-card svg { width: 26px; height: 26px; fill: var(--orange); }
.fc1 { bottom: 8%; inset-inline-start: -8%; }
.fc2 { top: 10%; inset-inline-end: -6%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; opacity: .7; }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- stats ---------- */
.stats { padding: 0 0 40px; margin-top: -30px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat { background: var(--surface); padding: 26px 18px; text-align: center; }
.stat strong { display: block; font-family: Inter, sans-serif; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: var(--accent-ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .93rem; }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #e8eef8; --muted: #a9b9d2; --surface: rgba(255,255,255,.05); --border: rgba(255,255,255,.1); --accent-ink: var(--orange-2); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-weight: 600; color: var(--accent-ink); font-size: .92rem; letter-spacing: .3px; margin-bottom: 10px; position: relative; padding-inline: 26px; }
.eyebrow::before, .eyebrow::after { content: ""; position: absolute; top: 50%; width: 18px; height: 2px; background: var(--orange); }
.eyebrow::before { inset-inline-start: 0; } .eyebrow::after { inset-inline-end: 0; }
.about__text .eyebrow, .contact__text .eyebrow { padding-inline-end: 0; }
.about__text .eyebrow::after, .contact__text .eyebrow::after { display: none; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 28px; width: 100%; box-shadow: var(--shadow-lg); aspect-ratio: 470 / 455; object-fit: cover; }
.about__media::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; border: 2px dashed rgba(255,148,23,.55); border-radius: 30px; z-index: -1; }
[dir="rtl"] .about__media::before { inset: 24px 24px -18px -18px; }
.about__quote { position: absolute; bottom: -26px; inset-inline-end: -20px; max-width: 75%; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; padding: 16px 20px; border-radius: 18px; box-shadow: var(--shadow-lg); border-inline-start: 4px solid var(--orange); }
.about__quote p { margin: 0; font-weight: 600; }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--text); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 34px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks.two { grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: .94rem; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,148,23,.14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(255,148,23,.4); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); color: var(--orange); transition: transform .4s var(--ease); }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- programs ---------- */
.programs { display: grid; gap: 34px; }
.program { display: grid; grid-template-columns: 340px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.program__media { position: relative; overflow: hidden; background: var(--navy-800); }
.program__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.program:hover .program__media img { transform: scale(1.05); }
.ribbon { position: absolute; top: 18px; inset-inline-start: 18px; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #1a0f00; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .88rem; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); }
.ribbon--alt { font-family: Inter, sans-serif; }
.program__body { padding: 32px 34px; }
.tag { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--accent-ink); background: rgba(255,148,23,.1); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.program h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.meta { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 18px 0; }
.meta li { flex: 1 1 110px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; text-align: center; }
.meta b { display: block; font-family: Inter, sans-serif; font-size: 1.5rem; color: var(--accent-ink); line-height: 1.2; }
.meta span { font-size: .85rem; color: var(--muted); }
.axes { border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; margin-bottom: 14px; background: var(--surface-2); }
.axes summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.axes summary::-webkit-details-marker { display: none; }
.axes summary::after { content: "+"; font-size: 1.3rem; color: var(--orange); transition: transform .3s var(--ease); }
.axes[open] summary::after { transform: rotate(45deg); }
.axes .checks { margin: 0 0 16px; }
.audience { font-size: .95rem; color: var(--muted); }
.audience strong { color: var(--text); }
.program__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.flow span { padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: .9rem; color: #0b1020; }
.flow span:nth-of-type(1) { background: #ffd166; }
.flow span:nth-of-type(2) { background: #8fd3ff; }
.flow span:nth-of-type(3) { background: #c9a7ff; }
.flow span:nth-of-type(4) { background: #7ee2a8; }
.flow i { width: 22px; height: 2px; background: var(--muted); position: relative; }
.flow i::after { content: ""; position: absolute; inset-inline-end: -1px; top: -4px; border: 5px solid transparent; border-inline-start: 7px solid var(--muted); }

/* ---------- insights ---------- */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.insight { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; backdrop-filter: blur(6px); }
.insight h3 { font-size: 1.3rem; }
.insight em { font-style: normal; color: var(--orange); display: block; }
.insight .note { margin: auto 0 0; padding: 14px 16px; border: 1px solid rgba(255,148,23,.55); border-radius: 14px; font-weight: 600; font-size: .95rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.kpis div { background: #f6f7f9; color: #0e1c33; border-radius: 14px; padding: 14px; position: relative; }
.kpis b { position: absolute; top: -8px; inset-inline-end: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #111; font-size: .85rem; font-family: Inter, sans-serif; }
.kpis strong { display: block; }
.kpis small { color: #4b5a72; font-size: .82rem; line-height: 1.5; display: block; }
.roles { display: grid; gap: 12px; margin-bottom: 18px; }
.role { border-radius: 16px; padding: 14px 18px; }
.role ul { margin: 6px 0 0; padding-inline-start: 20px; }
.role li::marker { color: var(--orange); }
.role--you { background: #f6f7f9; color: #0e1c33; border: 2px solid var(--orange); }
.role--ai { background: rgba(58,123,213,.18); border: 2px solid rgba(110,165,240,.6); }
.role--ai li::marker { color: #6ea5f0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #111; font-weight: 800; font-family: Inter, sans-serif; }
.steps small { color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery__item { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--surface); break-inside: avoid; box-shadow: var(--shadow); position: relative; }
.gallery__item img { width: 100%; transition: transform .6s var(--ease), filter .4s; }
.gallery__item::after { content: "⤢"; position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transform: scale(.7); transition: .3s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { opacity: 1; transform: scale(1); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4,10,22,.92); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: min(92vw, 900px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: zoomIn .35s var(--ease); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__nav { top: 50%; translate: 0 -50%; font-size: 2rem; }
.prev { left: 16px; } .next { right: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact__text p { color: var(--muted); }
.contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.social-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.social-card svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; fill: #fff; flex: none; }
.social-card:nth-child(1) svg { background: #0a66c2; }
.social-card:nth-child(2) svg { background: #1877f2; }
.social-card span { display: grid; line-height: 1.35; }
.social-card small { color: var(--muted); }
.share-box { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 30px; box-shadow: var(--shadow-lg); text-align: center; position: relative; overflow: hidden; }
.share-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--orange), var(--gold), #3a7bd5); }
.share-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.sh { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; transition: transform .25s var(--ease); }
.sh:hover { transform: translateY(-3px) scale(1.06); }
.sh svg { width: 22px; height: 22px; fill: currentColor; }
.sh-wa { background: #25d366; } .sh-in { background: #0a66c2; } .sh-fb { background: #1877f2; } .sh-x { background: #111; } .sh-tg { background: #229ed9; }
.sh-copy { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.sh-copy svg { fill: none; stroke: currentColor; stroke-width: 2; }
[data-theme="dark"] .sh-x { background: #000; outline: 1px solid rgba(255,255,255,.2); }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #b8c6dc; padding: 26px 0; font-size: .92rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.to-top { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.2rem; transition: background .2s, transform .2s; }
.to-top:hover { background: var(--orange); color: #111; transform: translateY(-3px); }

/* ---------- install bar / toast ---------- */
.install { position: fixed; z-index: 150; bottom: 16px; left: 50%; translate: -50% 0; width: min(520px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); animation: slideUp .5s var(--ease); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.install[hidden] { display: none; }
.install img { border-radius: 10px; }
.install div { flex: 1; display: grid; line-height: 1.35; }
.install small { color: var(--muted); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } }
.toast { position: fixed; z-index: 400; bottom: 24px; left: 50%; translate: -50% 0; background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .35s var(--ease); border: 1px solid rgba(255,255,255,.1); }
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* theme switch ripple */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards, .insights { grid-template-columns: 1fr 1fr; }
  .insights .insight:last-child { grid-column: span 2; }
  .program { grid-template-columns: 260px 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav__links {
    position: fixed; top: var(--header-h); inset-inline: 12px; flex-direction: column; gap: 2px; padding: 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: .3s var(--ease);
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { display: block; padding: 12px 14px; }
  .nav__links a::after { display: none; }
  .nav__links a.active { background: rgba(255,148,23,.1); }
  .header { background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .brand__name { display: none; }

  .hero { padding-top: calc(var(--header-h) + 24px); min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__text { order: 2; }
  .hero__visual { order: 1; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__social { justify-content: center; }
  .portrait { width: min(290px, 78%); }
  .fc1 { inset-inline-start: -8%; } .fc2 { inset-inline-end: -8%; }
  .scroll-hint { display: none; }
  .stats { margin-top: 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .program { grid-template-columns: 1fr; }
  .program__media { max-height: 300px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards, .insights { grid-template-columns: 1fr; }
  .insights .insight:last-child { grid-column: auto; }
  .checks.two { grid-template-columns: 1fr; }
  .contact__links { grid-template-columns: 1fr; }
  .program__body { padding: 24px 20px; }
  .float-card { padding: 8px 12px; font-size: .8rem; }
  .float-card strong { font-size: 1.3rem; }
  .fc1 { inset-inline-start: -12%; } .fc2 { inset-inline-end: -14%; }
  .footer__inner { flex-direction: column; text-align: center; }
  .about__quote { inset-inline-end: 0; max-width: 90%; }
  .lightbox__nav { top: auto; bottom: 20px; translate: none; }
  .nav__actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .share-box { padding: 26px 18px; }
  .share-row { gap: 7px; }
  .sh { width: 41px; height: 41px; border-radius: 12px; }
}
@media (display-mode: standalone) {
  .header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
