:root {
  --red: #b41125;
  --red-dark: #7a0614;
  --red-soft: #fff0f2;
  --ink: #1e1f24;
  --muted: #6f737c;
  --line: #e7e8ec;
  --paper: #ffffff;
  --fog: #f5f6f8;
  --charcoal: #343841;
  --shadow: 0 24px 70px rgba(30, 31, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.cace-booting body {
  opacity: 0;
}

html.cace-ready body,
html:not(.cace-booting) body {
  opacity: 1;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cairo", "Inter", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  transition: opacity 0.18s ease;
}

body.star-cursor,
body.star-cursor a,
body.star-cursor button {
  cursor: none;
}

body[dir="ltr"] {
  font-family: "Inter", "Cairo", sans-serif;
}

.cursor-glow {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.2s ease, transform 0.08s ease;
}

.cursor-glow::before {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 58% 38%, 96% 24%, 65% 51%, 98% 76%, 58% 63%, 50% 100%, 42% 63%, 2% 76%, 35% 51%, 4% 24%, 42% 38%);
  background: linear-gradient(135deg, #ffeff2 0%, #d71931 34%, #a40016 64%, #69000c 100%);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 18px rgba(180, 17, 37, 0.7));
  animation: starFloat 2.8s ease-in-out infinite;
}

.cursor-glow::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 17, 37, 0.4), transparent 68%);
  filter: blur(5px);
}

.cursor-glow.is-active {
  opacity: 1;
}

.cursor-glow.is-hovering {
  transform: translate3d(-50%, -50%, 0) scale(1.35);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  padding: 18px clamp(16px, 4vw, 56px);
}

.navbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 55px rgba(30, 31, 36, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--red);
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-panel,
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: var(--charcoal);
  font-weight: 800;
  font-size: 0.93rem;
  text-decoration: none;
  border-radius: 7px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: var(--red-soft);
  transform: translateY(-2px);
}

.lang-toggle,
.menu-toggle {
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.lang-toggle {
  min-width: 50px;
  height: 42px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 20px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 144px clamp(18px, 5vw, 76px) 34px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
  background: #111217;
}

.hero-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--image-scale, 1.03));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
  transform: scale(var(--image-scale, 1.03));
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(122, 6, 20, 0.82), rgba(30, 31, 36, 0.62), rgba(255, 255, 255, 0.1)),
    linear-gradient(0deg, rgba(30, 31, 36, 0.86), transparent 54%);
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-content {
  color: #ffffff;
  padding-bottom: 48px;
  --scroll-scale: 1;
  transform: scale(var(--scroll-scale));
  transform-origin: center bottom;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffffff;
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(180, 17, 37, 0.9);
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  width: min(920px, 100%);
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-content p:not(.eyebrow) {
  width: min(780px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(180, 17, 37, 0.32);
}

.ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #ffffff;
}

.primary-action:hover,
.ghost-action:hover {
  transform: translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats div {
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-stats strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.hero-stats span {
  color: var(--charcoal);
  font-weight: 800;
}

section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 76px);
}

.section-heading,
.mission-grid,
.unit-list,
.service-grid,
.film-section,
.join-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.film-copy h2,
.join-inner h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.45rem);
  line-height: 1.16;
}

.mission-band {
  background: linear-gradient(180deg, #ffffff, var(--fog));
}

.mission-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mission-item,
.service-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(30, 31, 36, 0.07);
}

.mission-item {
  padding: 28px;
}

.mission-item span {
  color: var(--red);
  font-weight: 900;
}

.mission-item h3,
.service-tile h3,
.unit-copy h3 {
  margin: 8px 0 8px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.mission-item p,
.unit-copy p {
  margin: 0;
  color: var(--muted);
}

.units-section {
  background: #ffffff;
}

.unit-list {
  display: grid;
  gap: 18px;
}

.unit-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.45fr) 1fr;
  gap: 26px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f9f9fa);
  box-shadow: 0 16px 52px rgba(30, 31, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.unit-card:nth-child(even) {
  grid-template-columns: 1fr minmax(270px, 0.45fr);
}

.unit-card:nth-child(even) .unit-image {
  order: 2;
}

.unit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 17, 37, 0.34);
  box-shadow: var(--shadow);
}

.unit-image {
  height: 290px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fog);
}

.unit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--image-scale, 1.02));
  transition: transform 0.45s ease;
}

.unit-card:hover .unit-image img {
  transform: scale(calc(var(--image-scale, 1.02) + 0.05));
}

.unit-copy {
  padding: clamp(12px, 3vw, 34px);
}

.unit-code {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 900;
  direction: ltr;
}

.museum-card,
.mpu-card {
  cursor: pointer;
}

.unit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #ffffff;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(180, 17, 37, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.unit-action:hover {
  transform: translateY(-2px);
  background: var(--red-dark);
}

.services-section {
  background: var(--charcoal);
  color: #ffffff;
}

.services-section .eyebrow {
  color: #ffccd3;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-tile {
  min-height: 170px;
  padding: 24px;
  color: var(--ink);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.service-tile span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--red);
  border-radius: 6px;
  font-size: 1.2rem;
}

.service-tile:hover {
  transform: translateY(-8px) rotate(-1deg);
  background: var(--red);
  color: #ffffff;
}

.service-tile:hover span {
  background: #ffffff;
  color: var(--red);
}

.news-section {
  background: linear-gradient(180deg, #ffffff, var(--fog));
}

.news-carousel {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.news-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(320px, 1.06fr) minmax(280px, 0.94fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.news-thumb {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #111217;
}

.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(12, 13, 16, 0.78));
  pointer-events: none;
}

.news-thumb span {
  position: absolute;
  z-index: 2;
  inset-inline-start: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  max-width: min(420px, 86%);
  padding: 9px 13px;
  border-radius: 7px;
  background: rgba(180, 17, 37, 0.9);
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.03);
  transition: transform 0.55s ease;
}

.news-card:hover img {
  transform: scale(1.06);
}

.news-card div {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(26px, 5vw, 56px);
}

.news-card time {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 900;
}

.news-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.7rem);
  line-height: 1.1;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-card button,
.news-read-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  text-decoration: none;
  background: var(--red);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
}

.news-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.news-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--red);
  font-size: 2.1rem;
  line-height: 1;
}

.news-dots {
  display: flex;
  gap: 7px;
}

.news-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c6c9d0;
  transition: width 0.25s ease, background 0.25s ease;
}

.news-dots span.active {
  width: 30px;
  background: var(--red);
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  padding: 10px;
  background: rgba(30, 31, 36, 0.78);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.news-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.news-modal-shell {
  position: relative;
  width: min(1440px, 100%);
  height: min(94vh, 1000px);
  margin: 2vh auto 0;
  padding: clamp(20px, 4vw, 42px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.news-modal-header {
  width: min(980px, 100%);
  margin-bottom: 24px;
}

.news-modal-header time {
  color: var(--red);
  font-weight: 900;
}

.news-modal-header h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.news-modal-header p {
  margin: 0;
  color: var(--charcoal);
  white-space: pre-line;
}

.news-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.news-modal-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(30, 31, 36, 0.08);
}

.news-modal-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.news-modal-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
}

.film-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  padding: clamp(22px, 5vw, 58px);
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(180, 17, 37, 0.22), rgba(30, 31, 36, 0.52) 64%),
    linear-gradient(180deg, rgba(30, 31, 36, 0.18), rgba(30, 31, 36, 0.58));
  pointer-events: none;
}

.video-overlay span {
  justify-self: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(180, 17, 37, 0.88);
  font-weight: 900;
  direction: ltr;
}

.video-overlay h3 {
  margin: 10px auto 4px;
  width: min(620px, 100%);
  font-size: clamp(1.6rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.video-overlay p {
  margin: 0 auto;
  width: min(560px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.join-section {
  padding-top: 0;
}

.join-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(34px, 7vw, 76px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(180, 17, 37, 0.92), rgba(52, 56, 65, 0.96)),
    url("https://cace-art.eru.edu.eg/wp-content/uploads/2025/11/IMG_1562-scaled.jpg") center/cover;
  color: #ffffff;
  overflow: hidden;
}

.join-inner .eyebrow {
  color: #ffffff;
}

.contact-copy {
  display: grid;
  align-content: center;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.contact-details a {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-details a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.contact-details span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-details strong {
  direction: ltr;
  font-size: 0.98rem;
}

.map-panel {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.95) contrast(1.03);
}

.upcoming-courses {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background: #ffffff;
}

.course-heading {
  width: min(980px, 100%);
  margin-inline: auto;
  margin-bottom: 24px;
  text-align: center;
}

.course-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.featured-course {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(167, 16, 31, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(167, 16, 31, 0.08), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #ffffff, #f5f5f6);
  box-shadow: 0 26px 70px rgba(30, 31, 36, 0.1);
}

.featured-course::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 8px;
  background: var(--red);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px clamp(24px, 4vw, 42px) 0;
}

.course-meta span,
.course-details span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(167, 16, 31, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 900;
}

.course-body {
  display: grid;
  gap: 18px;
  padding: 18px clamp(24px, 4vw, 42px) clamp(24px, 4vw, 42px);
}

.course-body h3 {
  max-width: 940px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 3.15rem);
  line-height: 1.08;
}

.course-instructor {
  margin: 0;
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 900;
}

.course-body > p:not(.course-instructor) {
  max-width: 1020px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.9;
}

.course-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-details span {
  color: var(--ink);
  border-color: var(--line);
  background: var(--fog);
}

.course-action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--red);
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(167, 16, 31, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.course-action::after {
  content: "↗";
  margin-inline-start: 10px;
  font-size: 1rem;
}

.course-action:hover {
  transform: translateY(-3px);
  background: #8f0d1b;
  box-shadow: 0 22px 44px rgba(167, 16, 31, 0.28);
}

.courses-strip {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--fog);
}

.courses-strip span {
  flex: 1 0 max-content;
  min-width: 190px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--red);
  text-align: center;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(30, 31, 36, 0.08);
  animation: floatCourse 5s ease-in-out infinite;
}

.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 10px;
  background: rgba(30, 31, 36, 0.74);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-shell {
  position: relative;
  width: min(1540px, 100%);
  height: min(96vh, 1040px);
  margin: 1vh auto 0;
  padding: clamp(20px, 4vw, 42px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.gallery-overlay.open .gallery-shell {
  transform: translateY(0) scale(1);
}

.gallery-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: inline-end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.gallery-intro {
  width: min(860px, 100%);
  margin-bottom: 28px;
}

.gallery-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.gallery-intro p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.collection-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(30, 31, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
}

.collection-grid figure:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.collection-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: contain;
  padding: 18px;
  background: #ffffff;
}

.collection-grid figcaption {
  padding: 13px 14px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7f7f8);
  color: var(--ink);
  direction: ltr;
  text-align: left;
}

.gallery-close,
.viewer-close,
.viewer-nav,
.news-controls button,
.unit-action {
  font-family: "Cairo", "Inter", sans-serif;
  font-weight: 900;
}

.gallery-close,
.viewer-close {
  font-size: 1.65rem;
}

.viewer-nav {
  font-size: 3.35rem;
}

.collection-grid figcaption strong,
.collection-grid figcaption span {
  display: block;
}

.collection-grid figcaption strong {
  font-size: 0.9rem;
}

.collection-grid figcaption span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.artwork-viewer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
  padding: clamp(14px, 3vw, 38px);
  background: rgba(12, 13, 16, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.artwork-viewer.open {
  opacity: 1;
  pointer-events: auto;
}

.artwork-viewer figure {
  width: min(1120px, 100%);
  max-height: 92vh;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.artwork-viewer img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.artwork-viewer figcaption {
  justify-self: center;
  max-width: 780px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  direction: ltr;
  text-align: center;
  font-weight: 800;
}

.artwork-viewer figcaption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.studio-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 10px;
  background: rgba(30, 31, 36, 0.78);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.studio-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.studio-shell {
  position: relative;
  width: min(1540px, 100%);
  height: min(96vh, 1040px);
  margin: 1vh auto 0;
  padding: clamp(18px, 3vw, 36px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f4f5f7 50%, #ffffff 100%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.studio-overlay.open .studio-shell {
  transform: translateY(0) scale(1);
}

.studio-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.studio-video {
  position: relative;
  min-height: min(74vh, 780px);
  overflow: hidden;
  border-radius: 8px;
  background: #090a0d;
  box-shadow: var(--shadow);
}

.studio-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.studio-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(16px, 2.4vw, 30px);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 82%, rgba(180, 17, 37, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(12, 13, 16, 0.02), rgba(12, 13, 16, 0.28));
  pointer-events: none;
}

.studio-video-overlay span {
  position: absolute;
  top: clamp(16px, 2.4vw, 30px);
  inset-inline-start: clamp(16px, 2.4vw, 30px);
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--red);
  font-weight: 900;
  direction: ltr;
}

.studio-video-overlay h2 {
  display: none;
  width: min(780px, 100%);
  margin: 0;
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: 1.05;
}

.studio-video-text {
  width: min(420px, 38%);
  padding: clamp(14px, 1.8vw, 22px);
  border-inline-start: 4px solid var(--red);
  border-radius: 8px;
  background: rgba(12, 13, 16, 0.54);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.studio-video-text h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.75rem);
  line-height: 1.16;
}

.studio-video-text p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  font-weight: 700;
}

.studio-intro {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(180, 17, 37, 0.06), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.studio-intro h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.16;
}

.studio-intro p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.studio-panel {
  position: relative;
  min-height: 240px;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(30, 31, 36, 0.07);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.studio-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(180, 17, 37, 0.08);
}

.studio-panel:hover,
.studio-panel.active {
  transform: translateY(-6px);
  background: var(--charcoal);
  color: #ffffff;
}

.studio-panel span {
  color: var(--red);
  font-weight: 900;
}

.studio-panel:hover span,
.studio-panel.active span {
  color: #ffccd3;
}

.studio-panel h3 {
  margin: 10px 0;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.studio-panel p {
  margin: 0;
  color: var(--muted);
}

.studio-panel:hover p,
.studio-panel.active p {
  color: rgba(255, 255, 255, 0.78);
}

.studio-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.studio-gallery figure {
  margin: 0;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--fog);
  box-shadow: 0 18px 52px rgba(30, 31, 36, 0.12);
}

.studio-gallery figure:nth-child(2) {
  transform: translateY(34px);
}

.studio-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.studio-gallery figure:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.04);
}

.viewer-nav,
.viewer-close {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: Arial, "Cairo", sans-serif;
  transition: transform 0.2s ease, background 0.2s ease;
}

.viewer-nav {
  width: 64px;
  height: 86px;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}

.viewer-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.viewer-nav:hover,
.viewer-close:hover {
  transform: translateY(-2px);
  background: var(--red);
}

.site-footer {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 30px clamp(18px, 5vw, 76px);
  background: var(--ink);
  color: #ffffff;
}

.site-footer img {
  width: 112px;
  height: auto;
}

.site-footer p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--red);
  border-color: var(--red);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.reveal {
  --reveal-y: 28px;
  --scroll-scale: 0.94;
  opacity: 0;
  transform: translateY(var(--reveal-y)) scale(var(--scroll-scale));
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform-origin: center;
}

.reveal.visible {
  opacity: 1;
  --reveal-y: 0px;
}

@keyframes starSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes starFloat {
  50% {
    transform: scale(1.08) rotate(4deg);
  }
}

@keyframes floatCourse {
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    display: grid;
    gap: 4px;
  }

  .nav-links a {
    justify-content: center;
  }

  .lang-toggle {
    width: 100%;
  }

  .mission-grid,
  .service-grid,
  .news-card,
  .film-section,
  .join-inner,
  .studio-hero,
  .studio-tabs,
  .studio-gallery {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .news-card,
  .news-card img {
    min-height: auto;
  }

  .news-card img {
    aspect-ratio: 1.25 / 1;
  }

  .unit-card,
  .unit-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .unit-card:nth-child(even) .unit-image {
    order: 0;
  }
}

@media (max-width: 640px) {
  body.star-cursor,
  body.star-cursor a,
  body.star-cursor button {
    cursor: auto;
  }

  .cursor-glow {
    display: none;
  }

  .site-header {
    padding: 10px;
  }

  .navbar {
    min-height: 66px;
  }

  .brand img {
    width: 45px;
    height: 45px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 118px;
  }

  .hero-stats,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .gallery-overlay {
    padding: 8px;
  }

  .gallery-shell {
    height: 94vh;
    margin-top: 0;
  }

  .studio-shell {
    height: 94vh;
    margin-top: 0;
  }

  .studio-video {
    min-height: 520px;
  }

  .studio-video iframe {
    height: 62%;
    bottom: auto;
    background: #000000;
  }

  .studio-video-overlay {
    align-items: flex-end;
    background:
      linear-gradient(180deg, transparent 0 48%, rgba(12, 13, 16, 0.18) 52%, rgba(12, 13, 16, 0.88) 100%);
  }

  .studio-video-text {
    width: 100%;
    max-width: none;
    margin-top: 300px;
    background: rgba(12, 13, 16, 0.7);
  }

  .studio-gallery figure,
  .studio-gallery figure:nth-child(2) {
    min-height: 260px;
    transform: none;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .artwork-viewer {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 6px;
    padding: 10px;
  }

  .viewer-nav {
    width: 50px;
    height: 66px;
    font-size: 3rem;
  }

  .hero-stats div {
    min-height: auto;
  }

  .unit-image {
    height: 220px;
  }
}
