/* The faculty's digital portal — one stylesheet for every page.
   Palette from the faculty's own emblem: the crescent's red as the accent,
   a deep navy for ink, paper and sky for grounds, a thread of gold. */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/cairo-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
:root {
  --brand: #9a1b2e;
  --brand-deep: #731222;
  --brand-soft: #f7e9ec;
  --navy: #1b2a41;
  --sky: #eaf0f8;
  --sky-deep: #d5e1f0;
  --paper: #f7f8fa;
  --card: #ffffff;
  --ink: #1b2430;
  --ink-2: #4c5866;
  --muted: #7d8794;
  --line: #e2e7ee;
  --gold: #c9a227;
  --gold-soft: #f8f1d9;
  --shadow: 0 16px 40px rgba(27, 42, 65, 0.12);
  --hero-a: #7a1425;
  --hero-b: #1b2a41;
  --on-brand: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #e0566a;
    --brand-deep: #c2434f;
    --brand-soft: #3a1a21;
    --navy: #dfe6f0;
    --sky: #18222e;
    --sky-deep: #223043;
    --paper: #0f151c;
    --card: #161e28;
    --ink: #e8edf3;
    --ink-2: #b7c1cc;
    --muted: #8a95a3;
    --line: #26313f;
    --gold: #d9b64a;
    --gold-soft: #33301c;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    --hero-a: #4d0f1c;
    --hero-b: #0f1a2b;
  }
}
:root[data-theme="dark"] {
  --brand: #e0566a;
  --brand-deep: #c2434f;
  --brand-soft: #3a1a21;
  --navy: #dfe6f0;
  --sky: #18222e;
  --sky-deep: #223043;
  --paper: #0f151c;
  --card: #161e28;
  --ink: #e8edf3;
  --ink-2: #b7c1cc;
  --muted: #8a95a3;
  --line: #26313f;
  --gold: #d9b64a;
  --gold-soft: #33301c;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --hero-a: #4d0f1c;
  --hero-b: #0f1a2b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html[lang="ar"] { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }
html[lang="en"] { font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.75; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; text-wrap: balance; color: var(--navy); }
p { margin: 0 0 12px; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--brand-deep); color: #fff; font-size: 0.88rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; opacity: 0.92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .tools { display: flex; gap: 6px; }
.tool { appearance: none; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff; border-radius: 999px; padding: 2px 12px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tool:hover { background: rgba(255,255,255,0.12); }
.tool svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- header */
.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; }
.brandmark { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brandmark img { height: 56px; width: auto; }
.brandmark .t1 { font-weight: 800; font-size: 1.15rem; color: var(--navy); line-height: 1.2; }
.brandmark .t2 { font-size: 0.85rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav summary { display: inline-block; padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; list-style: none; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--brand); }
.nav details { position: relative; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: '▾'; margin-inline-start: 6px; font-size: 0.8em; color: var(--muted); }
.nav .menu { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; }
.nav .menu a { display: block; padding: 8px 12px; font-weight: 600; }
.menu-btn { display: none; appearance: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--ink); }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .menu { position: static; box-shadow: none; border: 0; padding-inline-start: 14px; }
  .brandmark .t2 { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--hero-a), var(--hero-b)); color: #fff; isolation: isolate; }
/* The faculty's building behind the words: the photo (assets/hero.jpg), a
   slow drift, and a wash of the brand's colours so the text reads. */
.hero-bg { position: absolute; inset: -4%; background: url('hero.jpg') center 40% / cover no-repeat; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(122,20,37,0.88) 0%, rgba(27,42,65,0.82) 60%, rgba(27,42,65,0.7) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 30px; padding-block: 64px 70px; }
.hero .eyebrow { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
.hero p { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 56ch; margin-top: 14px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .disc { position: relative; width: 340px; height: 340px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-inline: auto; box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 0 0 14px rgba(255,255,255,0.12); }
.hero .disc img { width: 78%; height: 78%; object-fit: contain; }
.hero::after { content: ''; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,0.06); pointer-events: none; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-block: 44px 50px; } .hero p { margin-inline: auto; } .hero .cta { justify-content: center; } .hero .disc { width: 240px; height: 240px; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 10px 20px; background: var(--brand); color: #fff; border: 1.5px solid var(--brand); cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn.light:hover { background: #f3e3e6; }
.btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn.outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn .arrow { display: inline-block; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(-4px); }
html[dir="ltr"] .btn .arrow { transform: scaleX(-1); }
html[dir="ltr"] .btn:hover .arrow { transform: scaleX(-1) translateX(-4px); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { padding: 6px 14px; font-size: 0.92rem; border-radius: 8px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: 56px 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 0.95rem; }
.eyebrow svg { width: 18px; height: 18px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 6px; }
.section .lede { color: var(--ink-2); max-width: 64ch; margin-top: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }

/* platform cards, the entrances */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; text-align: center; box-shadow: 0 2px 0 rgba(27,42,65,0.04); transition: transform 160ms ease, box-shadow 160ms ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard .ring { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; border: 3px solid var(--brand); }
.pcard .ring svg { width: 44px; height: 44px; }
.pcard h3 { font-size: 1.3rem; }
.pcard p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.pcard .btn { justify-self: center; }
.badge.live { background: #e3f6ea; color: #1f7a3f; border-color: #bfe6cc; }
:root[data-theme="dark"] .badge.live { background: #163a25; color: #7fd39a; border-color: #2c5a3c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.live { background: #163a25; color: #7fd39a; border-color: #2c5a3c; } }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 1px 10px; background: var(--gold-soft); color: #8a6d1d; border: 1px solid #e3cf8f; vertical-align: middle; margin-inline-start: 6px; }
:root[data-theme="dark"] .badge { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: var(--gold); } }

/* people, one row */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: center; }
.person .photo { aspect-ratio: 4 / 5; background: var(--sky); border-bottom: 3px solid var(--brand); position: relative; }
.person .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person .photo .tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--gold); color: #1b1503; font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.person .plate { padding: 12px 12px 14px; }
.person .name { font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.person .title { color: var(--ink-2); font-size: 0.9rem; margin-top: 2px; }
.ph { display: inline-block; border: 1.5px dashed var(--gold); border-radius: 8px; padding: 0 8px; color: #8a6d1d; background: var(--gold-soft); font-weight: 600; font-size: 0.85em; }
:root[data-theme="dark"] .ph { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph { color: var(--gold); } }

/* feature tiles (platform pages), the reference's folded-corner tiles */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 20px; overflow: hidden; }
.feature::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 0; height: 0; border-top: 46px solid var(--sky-deep); border-inline-end: 46px solid transparent; }
.feature .check { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.feature .check svg { width: 18px; height: 18px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* platform page hero */
.phero { background: linear-gradient(115deg, var(--hero-a), var(--hero-b)); color: #fff; }
.phero .wrap { display: flex; align-items: center; gap: 22px; padding-block: 44px; flex-wrap: wrap; }
.phero .ring { width: 92px; height: 92px; border-radius: 50%; background: #fff; color: var(--brand-deep); display: grid; place-items: center; flex: 0 0 auto; }
.phero .ring svg { width: 46px; height: 46px; }
.phero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.phero .kicker { color: rgba(255,255,255,0.85); margin-top: 4px; }
.phero .badge { background: var(--gold); color: #1b1503; border-color: transparent; }
.crumbs { font-size: 0.9rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.aud { display: grid; gap: 10px; }
.aud div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.aud .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.soonbox { background: var(--card); border: 1.5px dashed var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; }
.soonbox strong { color: var(--navy); font-size: 1.1rem; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.contact .k { color: var(--muted); font-size: 0.85rem; }
.contact .v { font-weight: 700; color: var(--navy); }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: 56px; background: var(--navy); color: #dfe6f0; }
.footer .dev-link { color: inherit; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.footer .dev-link:hover { color: var(--accent); text-decoration: underline; }
:root[data-theme="dark"] .footer { background: #0b1118; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer { background: #0b1118; } }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-block: 40px 28px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer a { color: #dfe6f0; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: var(--gold); }
.footer .logos { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.footer .logos img { height: 52px; width: auto; background: #fff; border-radius: 10px; padding: 4px; }
.footer .copy { border-top: 1px solid rgba(255,255,255,0.12); color: #aab6c5; font-size: 0.88rem; }
.footer .copy .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 14px 84px; }
.footer .copy img { height: 16px; vertical-align: middle; margin-inline: 4px; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- floating */
.fab { position: fixed; bottom: 22px; inset-inline-start: 22px; display: flex; align-items: center; gap: 10px; z-index: 40; }
.fab a { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow); }
.fab a svg { width: 20px; height: 20px; }
.totop { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--brand); background: var(--card); color: var(--brand); display: grid; place-items: center; cursor: pointer; z-index: 40; opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- platform page blocks */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.steps .n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { font-size: 1.02rem; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.needs { margin-top: 18px; }
.needs ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--ink-2); }
.needs li::marker { color: var(--brand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
.shot figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.roadmap li { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.roadmap .n { font-size: 0.82rem; font-weight: 800; color: var(--brand); letter-spacing: 0.04em; }
.faqs { display: grid; gap: 10px; margin-top: 12px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.faq[open] summary::after { content: '\2013'; }
.faq p { margin: 8px 0 4px; color: var(--ink-2); font-size: 0.95rem; }
.privacy { background: var(--sky); border-radius: 14px; padding: 16px 18px; margin-top: 12px; color: var(--ink-2); }
.privacy p { margin: 0; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; color: #fff; }
.lightbox.open { display: grid; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 18, 0.88); backdrop-filter: blur(5px); }
.lightbox-panel { position: relative; z-index: 1; width: min(1120px, 100%); height: min(88vh, 820px); display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lightbox-toolbar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; direction: ltr; }
.lightbox-tools { display: flex; align-items: center; gap: 8px; }
.lightbox-btn, .lightbox-nav { appearance: none; border: 1px solid rgba(255,255,255,0.24); background: rgba(30, 42, 57, 0.82); color: #fff; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.2); backdrop-filter: blur(8px); }
.lightbox-btn:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { font-size: 1.7rem; line-height: 1; }
.lightbox-zoom-reset { width: 54px; font-size: 0.78rem; }
.lightbox-stage { grid-column: 2; min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: rgba(0,0,0,0.2); overscroll-behavior: contain; scrollbar-width: none; }
.lightbox-stage.is-zoomed { overflow: auto; place-items: start center; }
.lightbox-stage::-webkit-scrollbar { display: none; }
.lightbox-media { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; transition: transform 120ms ease; user-select: none; }
video.lightbox-media { background: #000; }
.lightbox-nav { align-self: center; }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 28px; color: rgba(255,255,255,0.82); font-size: 0.9rem; direction: rtl; }
.lightbox-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-counter { flex: 0 0 auto; display: inline-flex; align-items: center; direction: ltr; unicode-bidi: isolate; }
.lightbox-trigger { cursor: zoom-in; }
.lightbox-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox-panel { height: 92vh; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; }
  .lightbox-tools { gap: 4px; }
  .lightbox-btn, .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-zoom-reset { width: 48px; }
  .lightbox-footer { font-size: 0.8rem; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  /* the hero: the words rise, the disc settles, then drifts */
  .hero .hero-text > * { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero .hero-text > :nth-child(2) { animation-delay: 90ms; }
  .hero .hero-text > :nth-child(3) { animation-delay: 180ms; }
  .hero .hero-text > :nth-child(4) { animation-delay: 270ms; }
  .hero .disc { animation: settle 900ms cubic-bezier(.2,.7,.2,1) both, drift 7s ease-in-out 1s infinite; }
  .hero-bg { animation: kenburns 28s ease-in-out infinite alternate; }
  .phero .hero-text > * { animation: rise 600ms cubic-bezier(.2,.7,.2,1) both; }
  .phero .ring { animation: settle 700ms cubic-bezier(.2,.7,.2,1) both; }
  /* everything marked to reveal waits for the scroll */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease var(--d, 0ms), transform 600ms cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .pcard .ring { transition: transform 200ms ease, box-shadow 200ms ease; }
  .pcard:hover .ring { transform: scale(1.06); box-shadow: 0 0 0 8px var(--brand-soft); }
  .person .photo img { transition: transform 400ms ease; }
  .person:hover .photo img { transform: scale(1.04); }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
