/* ========== fonts (self-hosted) ========== */
@font-face {
  font-family: "Proforma";
  src: url("../fonts/Proforma-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proforma";
  src: url("../fonts/Proforma-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Proforma";
  src: url("../fonts/Proforma-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proforma";
  src: url("../fonts/Proforma-Bold-Italic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "GE Dinar Two";
  src: url("../fonts/GE-Dinar-Two-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GE Dinar Two";
  src: url("../fonts/GE-Dinar-Two-Light-Italic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "GE Dinar Two";
  src: url("../fonts/GE-Dinar-Two-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GE Dinar Two";
  src: url("../fonts/GE-Dinar-Two-Medium-Italic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* digits always Proforma (Arabic + Latin) */
@font-face {
  font-family: "ProformaDigits";
  src: url("../fonts/Proforma-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669;
}

@font-face {
  font-family: "ProformaDigits";
  src: url("../fonts/Proforma-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669;
}

/* ========== theme / Base ========== */
@property --4-x-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}

@property --4-y-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 80%;
}

@property --5-x-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 80%;
}

@property --5-y-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}

:root {
  --4-x-position: 20%;
  --4-y-position: 80%;
  --5-x-position: 80%;
  --5-y-position: 20%;
  --accent: #172850;
  --accent-ink: #0f1a34;
  --ornament: #8c6f47;
  --text: #111;
  --glass-brd: rgba(255, 255, 255, 0.35);
  --logo-w-desktop: clamp(200px, 32vw, 420px);
  --logo-w-mobile: clamp(160px, 52vw, 320px);
  --phi: 1.618;
  --bronze: #c09a66;
}

html[lang="ar"] body {
  font-family:
    "ProformaDigits",
    "GE Dinar Two",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

html[lang="en"] body {
  font-family:
    "ProformaDigits",
    "Proforma",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  overflow: auto;
  min-height: 100dvh;
  scroll-snap-type: y mandatory;
}

/* show/hide per locale (single source of truth) */
[data-i18n][data-show="ar"] [data-en],
[data-i18n][data-show="en"] [data-ar] {
  display: none !important;
}

/* ========== animated bg ========== */
@keyframes bgFloat {
  0%,
  100% {
  }

  25% {
    --4-x-position: 15%;
    --4-y-position: 15%;
    --5-x-position: 85%;
    --5-y-position: 80%;
  }

  50% {
    --4-x-position: 80%;
    --4-y-position: 15%;
    --5-x-position: 15%;
    --5-y-position: 85%;
  }
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #c09a66;
  background-image:
    radial-gradient(
      100% 100% at var(--4-x-position) var(--4-y-position),
      #cdb085 0%,
      rgba(205, 176, 133, 0) 60%
    ),
    radial-gradient(
      100% 100% at var(--5-x-position) var(--5-y-position),
      #d9c4a4 0%,
      rgba(217, 196, 164, 0) 60%
    );
  background-repeat: no-repeat;
  animation: bgFloat 24s ease-in-out infinite;
  will-change: background-position;
}

.page {
  width: min(92vw, 1100px);
  margin: 0 auto;
}

section[role="region"] {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem;
  padding-top: calc(4rem + env(safe-area-inset-top));
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  scroll-snap-align: center;
  text-align: center;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.35s,
    opacity 0.35s,
    box-shadow 0.35s;
  transform: translateZ(0);
}

.section-active {
  transform: translateY(0) scale(1.015);
}

/* ========== ornaments (corner-pinned, subtle, behind content) ========== */
.ornaments {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ornaments img {
  position: absolute;
  opacity: 0.07;
  mix-blend-mode: multiply;
  filter: saturate(0.9) brightness(0.98);
}

.ornaments .orn-l {
  top: 0;
  left: 0;
  width: min(28vw, 360px);
  transform: translate(-6%, -6%) rotate(-2deg);
}

.ornaments .orn-r {
  right: 0;
  bottom: 0;
  width: min(30vw, 420px);
  transform: translate(6%, 6%) rotate(3deg);
}

.container,
#site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .ornaments .orn-l {
    width: 44vw;
    transform: translate(-8%, -8%) rotate(-2deg);
  }

  .ornaments .orn-r {
    width: 48vw;
    transform: translate(8%, 8%) rotate(3deg);
  }

  .ornaments img {
    opacity: 0.06;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ornaments img {
    transform: none;
  }
}

/* ========== language switch (diamond, glass) ========== */
.lang-switch {
  position: fixed;
  inset-inline-end: clamp(12px, 4vw, 24px);
  inset-block-start: clamp(12px, 4vw, 24px);
  z-index: 50;
}

.lang-switch button {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  transform: rotate(45deg);
  border-radius: 14px;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.12)
  );
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--accent);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.18s,
    box-shadow 0.25s,
    border-color 0.25s;
}

.lang-switch button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 28% 28%,
    rgba(255, 255, 255, 0.28),
    transparent 62%
  );
  mix-blend-mode: screen;
  border-radius: 16px;
  filter: blur(4px);
  pointer-events: none;
}

.lang-switch i {
  transform: rotate(-45deg);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--accent);
}

.lang-switch button:hover {
  transform: rotate(45deg) translateY(-1px);
  box-shadow:
    0 16px 34px rgba(23, 40, 80, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.lang-switch button:active {
  transform: rotate(45deg) translateY(0);
}

.lang-switch button:focus-visible {
  box-shadow:
    0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (max-width: 420px) {
  .lang-switch button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .lang-switch i {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch button,
  .lang-switch button:hover,
  .lang-switch button:active {
    transition: none;
    transform: rotate(45deg);
  }
}

/* ========== hero ========== */
.hero .logo--horizontal {
  width: var(--logo-w-desktop);
  height: auto;
  display: block;
}

.hero .logo--stacked {
  width: var(--logo-w-mobile);
  height: auto;
  display: none;
}

@media (max-width: 640px) {
  .hero .logo--horizontal {
    display: none;
  }

  .hero .logo--stacked {
    display: block;
  }
}

.hero .slogan {
  width: calc(var(--logo-w-desktop) / var(--phi));
  height: auto;
  opacity: 0;
  transform: translateY(10px);
}

@media (max-width: 640px) {
  .hero .slogan {
    width: calc(var(--logo-w-mobile) / var(--phi));
  }
}

.meta-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin-top: clamp(0.6rem, 2.5vh, 1.2rem);
  opacity: 0;
  transform: translateY(10px);
  will-change: transform;
}

@media (max-width: 640px) {
  .meta-pills {
    flex-wrap: wrap;
    row-gap: 0.55rem;
    margin-top: clamp(0.9rem, 3vh, 1.4rem);
  }
}

.pill,
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.26),
    rgba(255, 255, 255, 0.12)
  );
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--accent-ink);
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.16s;
}

.pill-link:hover {
  transform: translateY(-1px);
}

.pill i,
.pill-link i {
  font-size: 1rem;
  opacity: 0.9;
}

.ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(0.7rem, 3vh, 1.5rem);
  opacity: 0;
  transform: translateY(10px);
  will-change: transform;
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1rem);
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.25s,
    color 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 40, 80, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
  border: 1px solid rgba(23, 40, 80, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* hero reveals */
@keyframes defocusReveal {
  0% {
    filter: blur(26px) saturate(0.85) brightness(0.95);
    opacity: 0;
    transform: scale(1.08);
  }

  40% {
    opacity: 1;
  }

  100% {
    filter: blur(0) saturate(1) brightness(1);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeRise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .logo--horizontal,
.hero .logo--stacked {
  filter: blur(26px) saturate(0.85) brightness(0.95);
  opacity: 0;
  transform: scale(1.08);
  backface-visibility: hidden;
}

body.is-revealed .hero .logo--horizontal {
  animation: defocusReveal 1600ms cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

body.is-revealed .hero .logo--stacked {
  animation: defocusReveal 1800ms cubic-bezier(0.16, 0.84, 0.44, 1) both 200ms;
}

body.is-revealed .hero .slogan {
  animation: fadeRise 820ms ease-out 1200ms both;
}

body.is-revealed .meta-pills {
  animation: fadeRise 820ms ease-out 1450ms both;
}

body.is-revealed .ctas {
  animation: fadeRise 820ms ease-out 1700ms both;
}

/* ========== about ========== */
#about .about-card {
  max-width: min(900px, 92vw);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
  );
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  line-height: 1.85;
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  color: var(--accent-ink);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s,
    transform 0.6s;
  text-align: justify;
}

body.about-visible #about .about-card {
  opacity: 1;
  transform: translateY(0);
}

/* ========== why ========== */
#why {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100svh;
  padding-block: clamp(3rem, 6vh, 5rem);
  scroll-snap-align: center;
}

#why.section-active {
  transform: none !important;
}

#why .wrap {
  width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.4vw, 22px);
  margin: 0 auto;
}

#why header,
#why .ayah,
#why .why-text {
  margin: 0;
  max-width: min(900px, 92vw);
}

.why-head {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--accent-ink);
  margin-bottom: 0.3rem;
}

.why-sub {
  opacity: 0.9;
  margin-bottom: clamp(8px, 1.8vw, 12px);
}

.why-text {
  text-align: justify;
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.12)
  );
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  line-height: 1.95;
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  color: var(--accent-ink);
}

/* verse block */
.ayah {
  text-align: center;
  padding: 0;
  max-width: min(900px, 92vw);
  margin-inline: auto;
  margin-top: clamp(1rem, 2.5vh, 1.6rem);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}

.ayah-text-ar {
  font-family: "Amiri", serif;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.9;
  letter-spacing: 0.2px;
  color: var(--accent-ink);
}

.ayah-text-en {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.8;
  color: var(--accent-ink);
  margin-top: 0.35rem;
}

.ayah-source {
  display: inline-block;
  position: relative;
  padding: 0.35rem 0.9rem;
  margin-top: 0.65rem;
  border: 1px solid color-mix(in oklab, var(--ornament) 80%, white 10%);
  border-radius: 999px;
  background: none;
  box-shadow: none;
  color: color-mix(in oklab, var(--ornament) 85%, black 5%);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  width: auto;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  transition:
    border-color 0.25s,
    color 0.25s;
}

.ayah-source:hover {
  border-color: color-mix(in oklab, var(--ornament) 95%, white 3%);
  color: var(--ornament);
}

.ayah-ornament {
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
  opacity: 0.24;
  transition: opacity 0.25s;
}

#why.section-active .ayah-ornament {
  opacity: 0.3;
}

.ayah-ornament svg {
  width: clamp(110px, 20vw, 180px);
  height: auto;
}

.ayah-ornament path {
  fill: none;
  stroke: color-mix(in oklab, var(--ornament) 88%, white 12%);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== audience ========== */
#audience {
  text-align: center;
  padding-block: clamp(2rem, 6vh, 4rem);
}

#audience .section-head {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent-ink);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.4rem, 6vh, 3rem) 1.6rem;
  justify-items: center;
  align-items: start;
}

@media (min-width: 600px) {
  .audience-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 2.2rem 2rem;
  }

  .aud-item--long {
    grid-column: 1 / -1;
    justify-self: center;
    order: 99;
  }
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 2.4rem 2.2rem;
  }

  .aud-item {
    order: 0;
  }

  .aud-item--long {
    order: 5;
    grid-column: 2 / span 2;
    justify-self: center;
  }
}

/* diamonds */
.diamond {
  width: clamp(90px, 10vw, 120px);
  height: clamp(90px, 10vw, 120px);
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(23, 40, 80, 0.18);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.diamond:hover {
  background: color-mix(in oklab, var(--ornament) 92%, white 8%);
  box-shadow: 0 14px 28px color-mix(in oklab, var(--ornament) 40%, black 0%);
  transform: rotate(45deg) scale(1.06);
}

.diamond-label {
  transform: rotate(-45deg);
  display: block;
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  padding-inline: 0.6rem;
  text-wrap: balance;
  text-align: center;
}

/* audience reveal */
.aud-item.inview {
  opacity: 1;
  transform: translateY(0);
}

.aud-item:nth-child(1) {
  transition-delay: 0.05s;
}

.aud-item:nth-child(2) {
  transition-delay: 0.1s;
}

.aud-item:nth-child(3) {
  transition-delay: 0.15s;
}

.aud-item:nth-child(4) {
  transition-delay: 0.2s;
}

.aud-item:nth-child(5) {
  transition-delay: 0.25s;
}

.aud-item:nth-child(6) {
  transition-delay: 0.05s;
}

.aud-item:nth-child(7) {
  transition-delay: 0.1s;
}

.aud-item:nth-child(8) {
  transition-delay: 0.15s;
}

.aud-item:nth-child(9) {
  transition-delay: 0.2s;
}

.aud-item:nth-child(10) {
  transition-delay: 0.25s;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aud-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .diamond,
  .diamond:hover {
    transform: rotate(45deg) !important;
    transition: none !important;
  }

  .bg {
    animation: none !important;
  }

  .hero .logo--horizontal,
  .hero .logo--stacked {
    filter: none !important;
    transform: none !important;
  }

  .hero .slogan,
  .meta-pills,
  .ctas,
  #about .about-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .section-active {
    transform: none !important;
  }
}

/* ========== objectives ========== */
#objectives {
  text-align: center;
  padding-block: clamp(2rem, 6vh, 4rem);
}

#objectives .section-head {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent-ink);
  font-weight: 600;
}

.obj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.4rem);
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
  justify-items: stretch;
}

@media (min-width: 700px) {
  .obj-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (min-width: 1024px) {
  .obj-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

.obj-card {
  text-align: start;
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 18px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.12)
  );
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--accent-ink);
  line-height: 1.85;
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  opacity: 1;
  transform: none;
}

body.io-ready #objectives .obj-card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.io-ready #objectives .obj-card.inview {
  opacity: 1;
  transform: none;
}

.obj-card:hover {
  box-shadow: 0 14px 32px rgba(23, 40, 80, 0.18);
}

.obj-title {
  margin: 0 0 0.4rem 0;
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--accent-ink);
}

/* ========== key features ========== */
#features {
  text-align: center;
  padding-block: clamp(2rem, 6vh, 4rem);
}

#features .section-head {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent-ink);
  font-weight: 600;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.4rem);
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
  justify-items: stretch;
}

@media (min-width: 700px) {
  .feat-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (min-width: 1024px) {
  .feat-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

.feat-card {
  text-align: start;
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 18px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.12)
  );
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--accent-ink);
  line-height: 1.85;
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  opacity: 1;
  transform: none;
}

body.io-ready #features .feat-card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s;
}

body.io-ready #features .feat-card.inview {
  opacity: 1;
  transform: none;
}

.feat-card:hover {
  box-shadow: 0 14px 32px rgba(23, 40, 80, 0.18);
}

.feat-title {
  margin: 0 0 0.4rem 0;
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--accent-ink);
}

/* feature bullets (LTR + RTL once) */
.feat-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.feat-list li {
  position: relative;
  margin: 0.35rem 0;
  line-height: 1.7;
  padding-left: 1.2rem;
}

.feat-list li::marker {
  content: "" !important;
}

.feat-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.85em;
  transform: translateY(-50%);
  font-size: 0.75em;
  line-height: 1;
  color: var(--ornament);
}

[data-ar] .feat-list {
  direction: rtl;
}

[data-ar] .feat-list li {
  padding-left: 0 !important;
  padding-right: 1.2rem !important;
}

[data-ar] .feat-list li::before {
  left: auto !important;
  right: 0 !important;
  top: 0.85em !important;
  transform: translateY(-50%) !important;
}

/* ========== theatre ========== */
#theatre {
  text-align: center;
  padding-block: clamp(2rem, 6vh, 4rem);
}

#theatre .section-head {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent-ink);
  font-weight: 600;
}

.th-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.4rem);
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
  justify-items: stretch;
}

@media (min-width: 900px) {
  .th-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

.th-card {
  text-align: start;
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 18px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.12)
  );
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--accent-ink);
  line-height: 1.85;
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  opacity: 1;
  transform: none;
}

body.io-ready #theatre .th-card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s;
}

body.io-ready #theatre .th-card.inview {
  opacity: 1;
  transform: none;
}

.th-card:hover {
  box-shadow: 0 14px 32px rgba(23, 40, 80, 0.18);
}

.th-title {
  margin: 0 0 0.4rem 0;
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--accent-ink);
}

/* reuse bullets */
.th-card .feat-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.th-card .feat-list li {
  position: relative;
  margin: 0.35rem 0;
  line-height: 1.7;
  padding-left: 1.2rem;
}

.th-card .feat-list li::marker {
  content: "" !important;
}

.th-card .feat-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.85em;
  transform: translateY(-50%);
  font-size: 0.75em;
  line-height: 1;
  color: var(--ornament);
}

[data-ar] .th-card .feat-list {
  direction: rtl;
}

[data-ar] .th-card .feat-list li {
  padding-left: 0 !important;
  padding-right: 1.2rem !important;
}

[data-ar] .th-card .feat-list li::before {
  left: auto !important;
  right: 0 !important;
  top: 0.85em !important;
  transform: translateY(-50%) !important;
}
 
/* ========== footer (full-bleed, transparent top) ========== */
#site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: #fff;
  background: linear-gradient(
    to top,
    #172850 0%,
    rgba(23, 40, 80, 0.94) 55%,
    rgba(23, 40, 80, 0) 100%
  );
  padding-bottom: clamp(2rem, 6vh, 3.5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.footer-guard {
  height: clamp(160px, 20vh, 260px);
}

.footer-wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2rem);
}

@media (min-width: 980px) {
  .footer-wrap {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-links {
    grid-column: 2;
    display: block;
    min-width: 0;
  }
}

/* links */
.footer-links .link-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.footer-links a:hover {
  color: color-mix(in oklab, var(--ornament) 85%, white 15%);
  text-decoration: underline;
}

/* socials */
.social-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.group-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
  color: #fff;
}

.socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.2s;
}

.socials a:hover {
  background: var(--bronze);
  color: #fff;
  transform: translateY(-1px);
}

.socials a:active {
  transform: translateY(0);
}

.socials a:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* brand block */
.brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.2rem;
  align-items: start;
}

.qitaf-logo {
  width: clamp(100px, 18vw, 160px);
  height: auto;
  filter: brightness(1) contrast(1.02);
}

.brand-text {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.org-badge {
  display: inline-block !important;
  width: auto !important;
  align-self: start !important;
  justify-self: start !important;
  padding: 0.28rem 0.7rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
}

.brand-name {
  margin: 0 0 0.35rem 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #fff;
}

.brand-copy {
  margin: 0;
  color: color-mix(in oklab, #ffffff 92%, #172850 8%);
  line-height: 1.85;
  font-size: clamp(0.95rem, 1.8vw, 1.02rem);
}

/* footer legal */
.legal {
  width: min(1100px, 92vw);
  margin: clamp(1.2rem, 3vh, 1.8rem) auto 0;
  text-align: center;
  color: color-mix(in oklab, #ffffff 85%, #172850 15%);
}

.legal small {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.legal .year {
  font-family:
    "Proforma",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

/* footer mobile order + spacing */
#site-footer .footer-wrap {
  padding-inline: max(
    16px,
    env(safe-area-inset-left),
    env(safe-area-inset-right)
  );
}

@media (max-width: 979.98px) {
  #site-footer .footer-wrap {
    padding-inline: max(
      24px,
      env(safe-area-inset-left),
      env(safe-area-inset-right)
    );
    row-gap: clamp(1.2rem, 3vw, 1.8rem);
  }

  .brand-row {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 0.7rem;
    justify-items: start;
  }

  .brand-text {
    display: contents;
  }

  .org-badge {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 0.5rem 0;
  }

  .qitaf-logo {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    margin: 0;
  }

  .brand-name {
    grid-column: 1;
    grid-row: 3;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
  }

  .brand-copy {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
    line-height: 1.7;
  }

  .footer-brand {
    padding-block: 1rem;
    border-bottom: 1px solid color-mix(in oklab, #ffffff 20%, #172850 80%);
    margin-block: 1rem;
  }
}

@media (min-width: 980px) {
  .footer-wrap {
    grid-template-columns: 1.2fr 0.8fr;
    column-gap: clamp(2rem, 4vw, 3rem);
  }

  .brand-row {
    grid-template-columns: auto 1fr;
    column-gap: clamp(1.2rem, 2vw, 1.6rem);
    align-items: start;
  }

  .qitaf-logo {
    align-self: start;
    margin-top: 0.2rem;
  }

  .brand-text {
    align-content: start;
  }

  .brand-name {
    margin: 0 0 0.35rem 0;
    display: block;
  }
}
