:root {
  --navy: #071428;
  --blue: #1a5cff;
  --cyan: #00c2e0;
  --lime: #8fd400;
  --ink: #0a1628;
  --muted: #5a6b82;
  --paper: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.72);
  --line: rgba(10, 22, 40, 0.08);
  --shadow: 0 10px 28px rgba(7, 20, 40, 0.06);
  --radius: 14px;
  --header-h: 64px;
  --font-fa: "Vazirmatn", sans-serif;
  --font-en: "IBM Plex Sans", sans-serif;
  --font-display: "Syne", "Vazirmatn", sans-serif;
  --bg: var(--paper);
  --text: var(--ink);
  --panel: #ffffff;
  --soft: #eef3f9;
  --primary: var(--blue);
  --secondary: var(--navy);
  --accent: var(--cyan);
  --accent-2: var(--lime);
  --text-muted: var(--muted);
  --border: var(--line);
  --surface-solid: #ffffff;
  --surface-soft: var(--soft);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(7, 20, 40, 0.04);
  --shadow-md: 0 10px 28px rgba(7, 20, 40, 0.06);
  --shadow-lg: 0 18px 40px rgba(7, 20, 40, 0.08);
  --container: 1240px;
}

[data-theme="dark"] {
  --bg: #071018;
  --text: #e8eef8;
  --panel: #0e1a2b;
  --soft: #122033;
  --muted: #8ea0b8;
  --line: rgba(232, 238, 248, 0.1);
  --surface: rgba(12, 24, 41, 0.82);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --surface-solid: #0e1a2b;
  --surface-soft: #122033;
  --text-muted: var(--muted);
  --border: var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  min-height: 100vh;
  font-family: var(--font-fa);
  background: var(--bg);
  color: var(--text);
  transition: color 0.2s ease, background 0.2s ease;
}

html[lang="en"] body { font-family: var(--font-en); }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#theme-wipe {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}

html[dir="rtl"] #theme-wipe { transform-origin: right center; }

#theme-wipe.is-wiping {
  animation: themeWipe 0.85s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes themeWipe {
  0% { opacity: 1; transform: scaleX(0); }
  45% { opacity: 1; transform: scaleX(1); }
  55% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); transform-origin: right center; }
}

html[dir="rtl"] #theme-wipe.is-wiping {
  animation-name: themeWipeRtl;
}

@keyframes themeWipeRtl {
  0% { opacity: 1; transform: scaleX(0); transform-origin: right center; }
  45% { opacity: 1; transform: scaleX(1); transform-origin: right center; }
  55% { opacity: 1; transform: scaleX(1); transform-origin: left center; }
  100% { opacity: 0; transform: scaleX(0); transform-origin: left center; }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 28px 0;
  pointer-events: none;
  background: transparent;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-inline: 14px;
}

.header-frame {
  position: relative;
  pointer-events: auto;
  overflow: visible;
  width: min(50vw, 620px);
  max-width: calc(100% - 0px);
  transition:
    width 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Persian / RTL: dock to the LEFT over the slider */
html[dir="rtl"] .site-header:not(.is-scrolled) .header-frame {
  margin-right: auto;
  margin-left: 0;
  animation: headerInFromLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* English / LTR: dock to the RIGHT over the slider */
html[dir="ltr"] .site-header:not(.is-scrolled) .header-frame {
  margin-left: auto;
  margin-right: 0;
  animation: headerInFromRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headerInFromLeft {
  from {
    opacity: 0;
    transform: translate3d(-48px, -24px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes headerInFromRight {
  from {
    opacity: 0;
    transform: translate3d(48px, -24px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.site-header.is-scrolled .header-frame {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
  animation: none;
}


.header-shell {
  position: relative;
  height: var(--header-h);
  padding: 0 12px 0 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 92, 255, 0.14);
  box-shadow:
    0 14px 36px rgba(7, 20, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(150%);
  overflow: visible;
  isolation: isolate;
  transition:
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.45s ease,
    box-shadow 0.45s ease;
}

.header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(420px 80px at 0% 50%, rgba(0, 194, 224, 0.12), transparent 60%),
    radial-gradient(420px 80px at 100% 50%, rgba(26, 92, 255, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.header-shimmer,
.header-scan {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.header-shimmer {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(0, 194, 224, 0.18) 52%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: headerShimmer 5.5s ease-in-out infinite;
}

@keyframes headerShimmer {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.header-scan {
  background: linear-gradient(90deg, transparent, rgba(143, 212, 0, 0.18), transparent);
  width: 28%;
  animation: headerScan 4.8s linear infinite;
  opacity: 0.55;
}

@keyframes headerScan {
  from { transform: translateX(-140%); }
  to { transform: translateX(420%); }
}

html[dir="rtl"] .header-shimmer { animation-name: headerShimmerRtl; }
html[dir="rtl"] .header-scan { animation-name: headerScanRtl; }

@keyframes headerShimmerRtl {
  0%, 55% { transform: translateX(120%); }
  75%, 100% { transform: translateX(-120%); }
}

@keyframes headerScanRtl {
  from { transform: translateX(140%); }
  to { transform: translateX(-420%); }
}

[data-theme="dark"] .header-shell {
  background: rgba(10, 18, 32, 0.88);
  border-color: rgba(0, 194, 224, 0.2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header.is-scrolled .header-shell {
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(7, 20, 40, 0.14);
}

/* Compact (top): icon-only nav to fit half width */
.site-header:not(.is-scrolled) .nav-label {
  max-width: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  transform: translateY(4px);
}

.site-header.is-scrolled .nav-label {
  max-width: 120px;
  opacity: 1;
  transform: translateY(0);
}

.nav-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    transform 0.35s ease;
}

.site-header:not(.is-scrolled) .nav-link {
  padding: 0 9px;
}

.site-header.is-scrolled .nav-link {
  padding: 0 12px;
}

.site-header:not(.is-scrolled) .brand-mark {
  width: 40px;
  height: 40px;
}

.site-header:not(.is-scrolled) .brand-mark img {
  width: 26px;
  height: 26px;
}

.site-header:not(.is-scrolled) .brand-text strong {
  font-size: 1.05rem;
}


.brand,
.main-nav,
.header-tools {
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-start: 2px;
  transition: transform 0.25s ease;
}

.brand:hover { transform: scale(1.03); }

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: width 0.35s ease, height 0.35s ease;
}

.brand-ring {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: conic-gradient(from 180deg, var(--cyan), var(--blue), var(--lime), var(--cyan));
  animation: brandSpin 6s linear infinite;
}

.brand-ring::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: 9px;
  background: var(--panel);
}

@keyframes brandSpin { to { transform: rotate(360deg); } }

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, var(--ink), var(--blue) 55%, var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandShine 3.5s ease-in-out infinite;
}

@keyframes brandShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

[data-theme="dark"] .brand-text strong {
  background: linear-gradient(90deg, #fff, var(--cyan), var(--lime));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.main-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  height: 44px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.05);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 0 auto;
}

[data-theme="dark"] .nav-rail { background: rgba(255, 255, 255, 0.05); }

.nav-liquid {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(0, 194, 224, 0.28), rgba(26, 92, 255, 0.22), rgba(143, 212, 0, 0.2));
  box-shadow: 0 0 18px rgba(26, 92, 255, 0.2);
  transition:
    left 0.42s cubic-bezier(0.34, 1.3, 0.64, 1),
    width 0.42s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.nav-liquid.is-ready { opacity: 1; }

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
  animation: navIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav-link:nth-child(2) { animation-delay: 0.04s; }
.nav-link:nth-child(3) { animation-delay: 0.08s; }
.nav-link:nth-child(4) { animation-delay: 0.12s; }
.nav-link:nth-child(5) { animation-delay: 0.16s; }
.nav-link:nth-child(6) { animation-delay: 0.2s; }
.nav-link:nth-child(7) { animation-delay: 0.24s; }
.nav-link:nth-child(8) { animation-delay: 0.28s; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-link:hover,
.nav-link.is-active { color: var(--text); }

.nav-ico-wrap {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover .nav-ico-wrap {
  transform: translateY(-1px) rotate(-12deg) scale(1.15);
}

.nav-link.is-active .nav-ico-wrap {
  transform: scale(1.1);
  animation: iconPulse 1.8s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 6px rgba(0, 194, 224, 0.55)); }
}

.nav-ico {
  width: 15px;
  height: 15px;
  color: var(--blue);
  transition: color 0.2s ease;
}

.nav-link:hover .nav-ico,
.nav-link.is-active .nav-ico { color: #0a4de0; }

[data-theme="dark"] .nav-ico { color: var(--cyan); }
[data-theme="dark"] .nav-link:hover .nav-ico,
[data-theme="dark"] .nav-link.is-active .nav-ico { color: var(--lime); }

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  z-index: 6;
}

.tools-cluster {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.05);
  border: 1px solid var(--line);
}

[data-theme="dark"] .tools-cluster { background: rgba(255, 255, 255, 0.05); }

.tools-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 2px;
}

.tool-hover { position: relative; z-index: 5; }

.tool-hover::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 100%;
  height: 16px;
  z-index: 19;
}

.tool-btn {
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.tool-btn:hover {
  background: var(--panel);
  transform: translateY(-2px) scale(1.04);
  color: var(--blue);
}

.tool-chip {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(26, 92, 255, 0.14), rgba(0, 194, 224, 0.18));
  color: var(--blue);
}

[data-theme="dark"] .tool-chip { color: var(--cyan); }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.tool-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(7, 20, 40, 0.18);
  display: grid;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: top right;
  transition: 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
  z-index: 40;
}

html[dir="rtl"] .tool-panel { transform-origin: top left; }

.tool-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  inset-inline-end: 18px;
  width: 10px;
  height: 10px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.tool-hover:hover .tool-panel,
.tool-hover:focus-within .tool-panel,
.tool-hover.is-open .tool-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.tool-panel-title {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 4px 10px 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-panel a,
.tool-panel button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tool-panel a:hover,
.tool-panel button:hover,
.tool-panel a.active {
  background: linear-gradient(90deg, rgba(26, 92, 255, 0.1), rgba(0, 194, 224, 0.1));
  transform: translateX(-2px);
}

html[dir="ltr"] .tool-panel a:hover,
html[dir="ltr"] .tool-panel button:hover {
  transform: translateX(2px);
}

.flag-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--soft);
  color: var(--blue);
}

.theme-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.theme-swatch.light { background: linear-gradient(135deg, #f4f7fb, #dce7ff); }
.theme-swatch.dark { background: linear-gradient(135deg, #071428, #1a5cff); }

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


.site-main { min-height: 55vh; }

.flash-stack {
  max-width: 1280px;
  margin: 110px auto 0;
  padding: 0 22px;
  display: grid;
  gap: 8px;
}

.flash-stack:has(+ .page-banner),
.flash-stack:has(+ .membership-hero) {
  margin-top: calc(var(--header-h) + 16px);
  margin-bottom: 8px;
}

.flash-stack:has(+ .page-banner) + .page-banner {
  padding-top: 28px;
}

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.flash-success { border-color: rgba(143, 212, 0, 0.5); }
.flash-error { border-color: rgba(255, 80, 80, 0.45); }

.hero-plane {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(0, 194, 224, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 25%, rgba(26, 92, 255, 0.35), transparent 50%),
    linear-gradient(155deg, #04101f 0%, #0a1f3d 45%, #062a36 100%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
}

.hero-content {
  padding: clamp(110px, 14vw, 150px) 22px clamp(70px, 10vw, 120px);
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--lime);
  margin-bottom: 18px;
}

.hero-content h1,
.page-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 36rem; }

.hero-visual {
  padding: 40px 22px 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual img {
  width: min(420px, 90%);
  border-radius: 28px 28px 80px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: rotate(-3deg);
}

.btn-primary {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), #b7f04a);
  color: #071428;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(143, 212, 0, 0.35);
  transition: transform 0.2s ease;
}

.btn-primary:hover { transform: translateY(-2px); }

.band { padding: 72px 0; }
.band.alt { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.band-inner { max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.band-inner.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2,
.page-banner-title,
.band h2 {
  font-family: var(--font-display);
}

/* —— Page banner (below header) —— */
.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 90% at 100% 0%, rgba(0, 194, 224, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 80% at 0% 100%, rgba(26, 92, 255, 0.14), transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--soft) 55%, transparent), transparent 70%);
}

.page-banner-bg::after {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -40%;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  opacity: 0.55;
  animation: bannerOrb 14s ease-in-out infinite alternate;
}

@keyframes bannerOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 22px) scale(1.06); }
}

.page-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  list-style: none;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.breadcrumb-item:not(:last-child)::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-inline: 10px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.55;
  flex-shrink: 0;
}

html[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
  transform: rotate(135deg);
}

.breadcrumb-item a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover { color: var(--cyan); }

.breadcrumb-item.is-current span {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52vw, 28rem);
}

.page-banner-title {
  margin-bottom: 12px;
  max-width: 18ch;
  animation: bannerIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-banner-desc {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  animation: bannerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.page-banner-meta {
  margin-top: 12px;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 600;
  animation: bannerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-banner-bg::after,
  .page-banner-title,
  .page-banner-desc,
  .page-banner-meta,
  .reveal-up {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.orbit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.orbit-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.orbit-item:hover { transform: translateY(-4px) rotate(-0.4deg); }
.orbit-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
}

.news-strip,
.team-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-tile,
.team-card,
.media-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-tile img,
.team-card img,
.media-item img,
.media-item video,
.detail-cover,
.about-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.news-tile,
.team-card { padding-bottom: 16px; }
.news-tile h3,
.team-card h3,
.news-tile p,
.team-card p,
.media-item figcaption { padding: 0 16px; }
.news-tile h3,
.team-card h3 { margin: 14px 0 8px; }
.news-tile p,
.team-card p,
.role { color: var(--muted); }

.empty-note,
.page-empty {
  color: var(--muted);
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.page-empty {
  max-width: 1280px;
  margin: 28px auto;
  width: calc(100% - 44px);
}

.about-grid,
.detail-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.prose { white-space: pre-wrap; line-height: 1.9; color: var(--muted); }

/* —— Detail pages (service / program / news) —— */
.detail-page { padding-bottom: 8px; }

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 22px 0;
}

.detail-hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: clamp(220px, 38vw, 420px);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.detail-hero-frame.tall {
  min-height: clamp(260px, 42vw, 480px);
}

.detail-hero-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.detail-hero-frame:hover img { transform: scale(1.06); }

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(7, 20, 40, 0.45)),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(0, 194, 224, 0.18), transparent 55%);
  pointer-events: none;
}

.detail-hero-badge {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #071428;
  background: linear-gradient(90deg, var(--lime), #b7f04a);
  border-radius: 999px;
}

.detail-main { padding-top: 48px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding-block-start: 4px;
}

.detail-aside-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 14ch;
}

.detail-aside-summary,
.detail-aside-meta {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.detail-aside-meta {
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-aside .home-link { margin-top: 20px; }

.detail-prose {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
  max-width: 48rem;
}

.detail-prose::first-letter {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 700;
  color: var(--cyan);
}

.detail-related { padding-top: 40px; }

.detail-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-media-item {
  display: grid;
  gap: 12px;
}

.detail-media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.detail-media-frame img,
.detail-media-frame video {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.detail-media-item:hover .detail-media-frame img {
  transform: scale(1.05);
}

.detail-media-item figcaption strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.detail-media-item figcaption p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.news-article {
  max-width: 760px;
  margin: 0 auto;
}

.news-article-head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.news-article-date {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.92rem;
}

.news-article-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 40rem;
}

.news-article-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.news-detail .detail-hero {
  max-width: 980px;
}

.mv {
  margin-top: 22px;
  padding: 18px;
  border-inline-start: 3px solid var(--cyan);
  background: var(--soft);
  border-radius: 0 16px 16px 0;
}

html[dir="rtl"] .mv { border-radius: 16px 0 0 16px; }

/* —— About page —— */
.about-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.about-story { padding-top: 56px; }

.about-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about-story-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 16ch;
}

.about-media-frame {
  position: relative;
  border-radius: 28px 28px 72px 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

html[dir="rtl"] .about-media-frame {
  border-radius: 28px 28px 28px 72px;
}

.about-media-frame .about-image {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.about-media-frame:hover .about-image { transform: scale(1.06); }

.about-media-glow {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 55%;
  height: 45%;
  background: radial-gradient(circle, rgba(143, 212, 0, 0.45), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.about-media-placeholder {
  aspect-ratio: 4/5;
  border-radius: 28px 28px 72px 28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--navy) 88%, #1a5cff), #0a2a4a);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

html[dir="rtl"] .about-media-placeholder {
  border-radius: 28px 28px 28px 72px;
}

.about-mv-band { padding-top: 40px; padding-bottom: 56px; }

.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-mv {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 0;
  border-block-start: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--cyan), var(--lime)) 1;
  background: transparent;
}

.about-mv-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--lime) 80%, var(--muted));
  margin-bottom: 14px;
}

.about-mv h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.about-mv p {
  color: var(--muted);
  line-height: 1.85;
}

.about-team-head { margin-bottom: 32px; }
.about-team-head h2 { margin: 0; }

.about-team-grid { gap: 22px; }

.about-team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding-bottom: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(7, 20, 40, 0.16);
}

.about-team-photo {
  position: relative;
  overflow: hidden;
}

.about-team-photo img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.about-team-card:hover .about-team-photo img { transform: scale(1.05); }

.about-team-fallback {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy), #143a6b);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
}

.about-team-body {
  padding: 16px 16px 20px;
}

.about-team-body h3 { margin: 0 0 6px; padding: 0; }
.about-team-body .role,
.about-team-body p { padding: 0; }
.about-team-body .role {
  margin-bottom: 10px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.92rem;
}

/* —— Home page —— */
.section-lead {
  margin-top: 8px;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.7;
}

.section-head.center {
  justify-content: center;
  text-align: center;
}

.section-head.center .section-lead { margin-inline: auto; }

.section-head.tight {
  margin-top: 40px;
  margin-bottom: 16px;
}

.section-head.tight h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 700;
  color: var(--blue);
}

.home-link::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

html[dir="rtl"] .home-link::after { transform: rotate(135deg); }

.home-link:hover::after {
  transform: translateX(3px) rotate(-45deg);
}

html[dir="rtl"] .home-link:hover::after {
  transform: translateX(-3px) rotate(135deg);
}

.home-link.light { color: var(--lime); margin-top: 18px; }

.home-about { padding-top: 64px; }

.home-about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.home-about-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 14ch;
}

.home-about-text {
  color: var(--muted);
  line-height: 1.85;
  max-width: 38rem;
}

.home-about-note {
  margin-top: 14px;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--lime);
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
}

.home-about-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.home-about-mv span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.home-about-mv p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.home-about-media {
  display: grid;
  place-items: center;
  min-height: min(420px, 70vw);
}

.home-about-logo {
  position: relative;
  width: min(320px, 72vw);
  height: min(320px, 72vw);
  display: grid;
  place-items: center;
}

.home-about-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 40px rgba(7, 20, 40, 0.18));
  animation: homeLogoFloat 5.5s ease-in-out infinite;
}

.home-about-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  background:
    radial-gradient(circle at 35% 30%, rgba(0, 194, 224, 0.14), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(26, 92, 255, 0.12), transparent 50%);
  animation: homeLogoPulse 6s ease-in-out infinite;
}

.home-about-logo-ring.delay {
  inset: 10%;
  border-color: color-mix(in srgb, var(--lime) 40%, transparent);
  animation-delay: -2s;
  background: transparent;
}

@keyframes homeLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes homeLogoPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-about-logo img,
  .home-about-logo-ring {
    animation: none;
  }
}

.home-explore-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-explore-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-block-end: 1px solid var(--line);
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-explore-item:hover {
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  transform: translateX(-4px);
}

html[dir="ltr"] .home-explore-item:hover { transform: translateX(4px); }

.home-explore-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(26, 92, 255, 0.12), rgba(0, 194, 224, 0.1));
  color: var(--blue);
}

.home-explore-ico .nav-ico { width: 20px; height: 20px; }

.home-explore-copy {
  display: grid;
  gap: 4px;
}

.home-explore-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.home-explore-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-explore-arrow {
  width: 0.45em;
  height: 0.45em;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  transform: rotate(-45deg);
  opacity: 0.6;
}

html[dir="rtl"] .home-explore-arrow { transform: rotate(135deg); }

.home-programs { margin-top: 8px; }

.home-program-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-program-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.25s ease;
}

.home-program-item:hover { transform: translateY(-3px); }

.home-program-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.home-program-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.home-program-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
}

.home-gallery-item img,
.home-gallery-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.home-gallery-item:hover img,
.home-gallery-item:hover video { transform: scale(1.06); }

.home-gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(7, 20, 40, 0.72));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.home-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.home-cta-panel {
  padding: 32px 28px;
  border-radius: 0;
  border-block-start: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--cyan), var(--lime)) 1;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(0, 194, 224, 0.1), transparent 55%),
    color-mix(in srgb, var(--panel) 88%, transparent);
}

.home-cta-panel.contact {
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(143, 212, 0, 0.12), transparent 55%),
    linear-gradient(160deg, #071428 0%, #0c1f3a 100%);
  color: #e8eef8;
  border-image: linear-gradient(90deg, var(--lime), var(--cyan)) 1;
}

.home-cta-panel h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 12px;
  max-width: 14ch;
}

.home-cta-panel p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}

.home-cta-panel.contact p,
.home-cta-panel.contact .about-kicker { color: rgba(232, 238, 248, 0.72); }

.home-cta-panel .btn-primary { margin-top: 18px; }

.home-contact-meta {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 6px;
  color: var(--lime);
  font-weight: 600;
  font-size: 0.95rem;
}

.home-trust {
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 60% at 0% 50%, rgba(26, 92, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(0, 194, 224, 0.08), transparent 60%);
}

.trust-marquee {
  margin: 8px 0 36px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.trust-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: partnerSlide 36s linear infinite;
}

.trust-marquee:hover .trust-track { animation-play-state: paused; }

html[dir="rtl"] .trust-track { animation-name: partnerSlideRtl; }

.trust-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 140px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-logo:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--line));
}

.trust-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(0.25);
  transition: filter 0.3s ease;
}

.trust-logo:hover img { filter: none; }

.trust-logo strong {
  font-size: 0.82rem;
  text-align: center;
  max-width: 12ch;
  line-height: 1.3;
}

.trust-fallback {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), #143a6b);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-block-start: 2px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.trust-card-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
}

.trust-card-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.trust-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 8px;
}

.trust-card a {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.88rem;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}

.site-footer {
  margin-top: 48px;
}

.partners-rail {
  padding: 18px 0 14px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 120% at 50% 0%, rgba(0, 194, 224, 0.08), transparent 60%),
    color-mix(in srgb, var(--soft) 55%, transparent);
}

.partners-rail-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.partners-rail-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}

.partners-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px 8px;
  animation: partnerSlide 28s linear infinite;
}

.partners-viewport:hover .partners-track {
  animation-play-state: paused;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(7, 20, 40, 0.05);
}

.partner-chip img,
.partner-fallback {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  flex-shrink: 0;
}

.partner-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  padding: 0;
}

.partner-chip strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: nowrap;
}

@keyframes partnerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

html[dir="rtl"] .partners-track {
  animation-name: partnerSlideRtl;
}

@keyframes partnerSlideRtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.footer-bar {
  background:
    linear-gradient(120deg, rgba(0, 194, 224, 0.12), transparent 35%),
    linear-gradient(160deg, #071428 0%, #0c1f3a 100%);
  color: #e8eef8;
  border-top: 1px solid rgba(0, 194, 224, 0.2);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 22px 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1.4fr) minmax(220px, 1fr);
  gap: 18px 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 194, 224, 0.25));
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.footer-brand p {
  margin-top: 2px;
  color: rgba(232, 238, 248, 0.62);
  font-size: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(232, 238, 248, 0.78);
  font-size: 0.8rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 194, 224, 0.28);
  transform: translateY(-1px);
}

.footer-bar .newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bar .newsletter input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.footer-bar .newsletter input::placeholder {
  color: rgba(232, 238, 248, 0.42);
}

.footer-bar .newsletter button {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: linear-gradient(90deg, var(--lime), #b7f04a);
  color: #071428;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.footer-bar .newsletter button:hover {
  transform: translateY(-1px);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 22px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 248, 0.55);
  font-size: 0.8rem;
  text-align: center;
}


@media (max-width: 1100px) {
  .nav-label { font-size: 0.72rem; }
  .nav-link { padding: 0 8px; }
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 12px 0;
  }
  .site-header.is-scrolled {
    padding-top: 10px;
    padding-inline: 10px;
  }
  .header-frame {
    width: min(92vw, 420px) !important;
  }
  .site-header.is-scrolled .header-frame {
    width: min(100%, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html[dir="rtl"] .site-header:not(.is-scrolled) .header-frame {
    margin-right: auto !important;
    margin-left: 0 !important;
  }
  html[dir="ltr"] .site-header:not(.is-scrolled) .header-frame {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  .header-shell {
    height: 56px;
    grid-template-columns: 1fr auto;
    border-radius: 16px;
  }
  .site-header .nav-label,
  .site-header:not(.is-scrolled) .nav-label,
  .site-header.is-scrolled .nav-label {
    max-width: none;
    opacity: 1;
    overflow: visible;
    transform: none;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
  }
  .header-shimmer,
  .header-scan,
  .nav-liquid { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    z-index: 30;
  }
  .main-nav.is-open { display: block; }
  .nav-rail {
    width: 100%;
    max-width: none;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
    padding: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: visible;
  }
  .nav-link {
    height: 42px;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 12px !important;
    border-radius: 12px;
    animation: none;
  }
  .menu-toggle { display: inline-flex; }
  .hero-plane,
  .band-inner.split,
  .about-grid,
  .about-story-grid,
  .about-mv-grid,
  .home-about-grid,
  .home-about-mv,
  .home-explore-list,
  .home-program-row,
  .home-gallery-grid,
  .home-cta-grid,
  .trust-grid,
  .detail-grid,
  .detail-layout,
  .detail-media-grid,
  .contact-grid,
  .orbit-list,
  .news-strip,
  .team-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
  .detail-aside { position: static; }
  .detail-hero { padding-inline: 16px; }
  .detail-hero-frame,
  .detail-hero-frame.tall { min-height: 220px; border-radius: 20px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px 12px;
  }
  .footer-links { justify-content: flex-start; }
  .footer-bar .newsletter { grid-template-columns: 1fr; }
  .footer-bar .newsletter button { height: 40px; }
  .hero-visual { display: none; }
  .hero-bg { clip-path: none; }
  .hero-content { padding-top: 100px; }
  .page-banner { padding: calc(var(--header-h) + 24px) 0 28px; }
  .page-banner-title { max-width: none; }
}
