/* =========================================================
   TIIP Community — Model page components
   Extends the shared "Sakīnah" design system (style.css).
   Only the model page's custom interactive pieces live here.
   ========================================================= */

/* ---------------------------------------------------------
   Scroll progress + section dots
--------------------------------------------------------- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 100%; height: 3px;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-text);
  pointer-events: none;
}

.dots-nav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 14px;
}
.dots-nav a {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(90, 101, 121, 0.3);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.dots-nav a:hover { background: var(--emerald-500); }
.dots-nav a.active {
  background: var(--gold-500);
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(46, 132, 126, 0.18);
}
.dots-nav a span {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%) translateX(6px);
  padding: 4px 12px; border-radius: 8px; white-space: nowrap;
  background: #fff; border: 1px solid var(--cream-200); box-shadow: var(--shadow-sm);
  color: var(--ink-700); font-size: 0.74rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dots-nav a:hover span { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 1160px) { .dots-nav { display: none; } }

/* ---------------------------------------------------------
   Hero (uses .hero base from style.css)
--------------------------------------------------------- */
.hero-model { min-height: 92svh; display: flex; align-items: center; }
.hero-model .container { width: 100%; }
#constellation { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }

.hero-model h1 .shimmer {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 45%, var(--emerald-300) 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-model .hero-ar {
  position: absolute; top: 50%; right: -2%; transform: translateY(-56%);
  font-family: var(--font-ar); font-size: clamp(9rem, 21vw, 19rem);
  color: transparent; -webkit-text-stroke: 1px rgba(91, 166, 159, 0.2);
  user-select: none; pointer-events: none; line-height: 1; z-index: 0;
}
.hero-model .stats { margin-top: 54px; max-width: 860px; }
.hero-model .stat { text-align: left; }
.hero-model .stat .num i { font-style: normal; font-size: 0.55em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(234, 240, 250, 0.55); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700;
}
.scroll-cue .wheel { width: 24px; height: 38px; border-radius: 13px; border: 1.5px solid rgba(234, 240, 250, 0.4); position: relative; }
.scroll-cue .wheel::before {
  content: ""; position: absolute; left: 50%; top: 7px; margin-left: -1.5px;
  width: 3px; height: 7px; border-radius: 3px; background: var(--gold-400);
  animation: wheelDrop 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes wheelDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------------------------------------------------------
   Epistemology cards
--------------------------------------------------------- */
.epi-card .ar { font-family: var(--font-ar); font-size: 2.2rem; color: var(--gold-600); line-height: 1.2; margin-bottom: 8px; }
.epi-card .trans { font-size: 0.82rem; color: var(--emerald-700); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 10px; }
.epi-card .idx {
  position: absolute; top: 16px; right: 22px;
  font-family: var(--font-head); font-size: 2.4rem; line-height: 1;
  color: var(--cream-200); font-weight: 600;
}

/* Grading scale */
.grading {
  margin-top: 44px;
  background: #fff; border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 44px);
}
.grading-scale { position: relative; height: 8px; border-radius: 8px; margin: 38px 8px 14px; background: linear-gradient(90deg, var(--gold-500), var(--emerald-500)); }
.grading-scale .stop {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  transform: translate(-50%, -50%); border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.grading-scale .stop.qati { left: 0%; background: var(--gold-500); }
.grading-scale .stop.zanni { left: 100%; background: var(--emerald-500); }
.grading-labels { display: flex; justify-content: space-between; gap: 20px; }
.grading-labels > div { max-width: 46%; }
.grading-labels b { display: block; color: var(--ink-950); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.grading-labels span { font-size: 0.88rem; color: var(--ink-500); }
.grading-labels > div:last-child { text-align: right; }

/* Assumptions — listed grid */
.assump-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
@media (max-width: 760px) { .assump-grid { grid-template-columns: 1fr; } }
.assump {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-xs);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.assump:hover { transform: translateX(4px); border-color: var(--emerald-300); box-shadow: var(--shadow-sm); }
.assump .n {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300));
  color: var(--gold-700); font-weight: 800; font-size: 0.82rem;
  display: grid; place-items: center; font-family: var(--font-head);
}
.assump b { display: block; color: var(--ink-950); font-size: 0.98rem; margin-bottom: 2px; }
.assump span { font-size: 0.86rem; color: var(--ink-500); }

/* ---------------------------------------------------------
   The spherical psyche model
--------------------------------------------------------- */
.psyche-wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
@media (max-width: 980px) { .psyche-wrap { grid-template-columns: 1fr; } }

.model-fig { display: flex; flex-direction: column; align-items: center; width: min(560px, 100%); margin: 0 auto; }

/* Fitrah arc */
.fitrah-band { width: 100%; background: none; border: 0; padding: 0; cursor: pointer; transition: filter 0.3s ease, transform 0.3s ease; }
.fitrah-band svg { width: 100%; height: auto; display: block; overflow: visible; }
.fitrah-band .band { fill: none; stroke: url(#arcGrad); stroke-width: 40; stroke-linecap: round; opacity: 0.92; transition: opacity 0.3s ease; }
.fitrah-band .arc-ar { font-family: var(--font-ar); font-size: 30px; fill: #fff; }
.fitrah-band .arc-en { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; fill: var(--ink-500); }
.fitrah-band:hover { transform: translateY(-2px); }
.fitrah-band.active { filter: drop-shadow(0 10px 24px rgba(46, 132, 126, 0.45)); }
.fitrah-band:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; border-radius: 14px; }

.fig-connector {
  width: 2px; height: 24px; margin: 6px 0 2px;
  background: repeating-linear-gradient(180deg, var(--emerald-400) 0 4px, transparent 4px 9px);
}

/* Sphere */
.psy-square { position: relative; width: 100%; aspect-ratio: 1; }
.psy-square svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.psy-square .sphere-fill { fill: url(#sphereGrad); }
.psy-square .graticule { fill: none; stroke: rgba(58, 88, 156, 0.22); stroke-width: 0.7; }
.psy-square .graticule.eq { stroke-width: 1; stroke: rgba(58, 88, 156, 0.3); }
.psy-square .ring-outer { fill: none; stroke: rgba(46, 132, 126, 0.55); stroke-width: 1.2; stroke-dasharray: 3 6; }
.psy-square .arc-ij { font-family: var(--font-body); font-size: 6.2px; font-weight: 700; letter-spacing: 0.4em; fill: var(--gold-600); text-transform: uppercase; }
.psy-square .spoke {
  fill: none; stroke: rgba(40, 67, 127, 0.55); stroke-width: 1.1;
  stroke-dasharray: 4 7;
  animation: flow 2.6s linear infinite;
}
.psy-square .edge {
  fill: none; stroke: rgba(46, 132, 126, 0.6); stroke-width: 1;
  stroke-dasharray: 3 8;
  animation: flowBack 3.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes flowBack { to { stroke-dashoffset: 22; } }

/* Element nodes */
.psy-node {
  position: absolute;
  width: 106px; height: 106px; margin: -53px 0 0 -53px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--cream-200);
  color: var(--ink-700); cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}
.psy-node .ar { font-family: var(--font-ar); font-size: 1.4rem; color: var(--gold-600); line-height: 1.1; }
.psy-node .en { font-size: 0.76rem; font-weight: 800; color: var(--emerald-800); font-family: var(--font-head); }
.psy-node .sub { font-size: 0.6rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; }
.psy-node:hover { transform: scale(1.08); border-color: var(--emerald-400); }
.psy-node:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.psy-node.active {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold), 0 0 0 6px rgba(46, 132, 126, 0.16);
  transform: scale(1.1);
}

.psy-node.core {
  width: 148px; height: 148px; margin: -74px 0 0 -74px;
  left: 50%; top: 50%;
  background: var(--grad-emerald); border-color: transparent;
  box-shadow: var(--shadow-glow), inset 0 2px 12px rgba(255, 255, 255, 0.18);
}
.psy-node.core .ar { color: var(--gold-300); font-size: 1.9rem; }
.psy-node.core .en { color: #fff; }
.psy-node.core .sub { color: rgba(234, 240, 250, 0.75); }
.psy-node.core::before {
  content: ""; position: absolute; inset: -13px; border-radius: 50%;
  border: 1px solid rgba(46, 132, 126, 0.5);
  animation: coreBreath 4.5s ease-in-out infinite;
}
@keyframes coreBreath {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.09); opacity: 0.25; }
}

/* qalb center, four elements on the sphere's poles/equator */
.psy-node[data-key="ruh"]   { left: 50%; top: 18%; }
.psy-node[data-key="ihsas"] { left: 82%; top: 50%; }
.psy-node[data-key="nafs"]  { left: 50%; top: 82%; }
.psy-node[data-key="aql"]   { left: 18%; top: 50%; }

/* Ijtimāʿī pill on the outer layer */
.ij-pill {
  position: absolute; left: 50%; top: 97%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(46, 132, 126, 0.55);
  color: var(--ink-700); cursor: pointer;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  z-index: 3; white-space: nowrap;
}
.ij-pill .ar-s { font-family: var(--font-ar); font-size: 1.05rem; color: var(--gold-600); text-transform: none; }
.ij-pill:hover { transform: translate(-50%, -50%) scale(1.06); border-color: var(--gold-500); }
.ij-pill.active { box-shadow: var(--shadow-gold), 0 0 0 5px rgba(46, 132, 126, 0.16); border-color: var(--gold-500); }
.ij-pill:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

@media (max-width: 560px) {
  .psy-node { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .psy-node .ar { font-size: 1.1rem; }
  .psy-node .en { font-size: 0.66rem; }
  .psy-node .sub { display: none; }
  .psy-node.core { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .psy-node.core .ar { font-size: 1.45rem; }
  .fitrah-band .arc-ar { font-size: 34px; }
}

/* Detail card */
.psy-detail {
  background: #fff; border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(26px, 3.6vw, 40px);
  min-height: 380px; display: flex; flex-direction: column;
}
.psy-detail .head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.psy-detail .big-ar { font-family: var(--font-ar); font-size: 3rem; color: var(--gold-600); line-height: 1; }
.psy-detail h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 14px 0 4px; color: var(--emerald-800); }
.psy-detail .role { color: var(--emerald-700); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.psy-detail .body { color: var(--ink-500); font-size: 1rem; }
.psy-detail .heal { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--cream-300); font-size: 0.94rem; color: var(--ink-700); }
.psy-detail .heal b { color: var(--gold-700); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; display: block; margin-bottom: 5px; }
.psy-detail .fade-zone { transition: opacity 0.24s ease, transform 0.24s ease; display: flex; flex-direction: column; flex: 1; }
.psy-detail.switching .fade-zone { opacity: 0; transform: translateY(10px); }

.psy-hint { margin-top: 16px; text-align: center; color: var(--ink-400); font-size: 0.84rem; }
.psy-hint kbd { font-family: inherit; border: 1px solid var(--cream-300); border-radius: 6px; padding: 1px 7px; font-size: 0.74rem; color: var(--ink-500); background: #fff; }

/* Drives — explanation right under the diagram */
.drives-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 940px) { .drives-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .drives-grid { grid-template-columns: 1fr; } }
.drive {
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-xs);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--gold-400);
}
.drive:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.drive .glyph { font-size: 1.5rem; margin-bottom: 10px; display: block; }
.drive b { display: block; color: var(--ink-950); font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 2px; }
.drive .ar-s { color: var(--gold-600); font-family: var(--font-ar); font-size: 0.98rem; }
.drive p { color: var(--ink-500); font-size: 0.88rem; margin: 8px 0 0; }
.drive.down { border-top-color: var(--plum-700); }
.drive.down:hover { border-color: rgba(91, 42, 78, 0.4); }

/* ---------------------------------------------------------
   Goals of treatment (from the TIIP figure)
--------------------------------------------------------- */
.goals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .goals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .goals-grid { grid-template-columns: 1fr; } }
.goal {
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-xs); text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.goal:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--emerald-300); }
.goal .g-el { font-family: var(--font-head); font-weight: 700; color: var(--emerald-800); font-size: 1.14rem; }
.goal .g-el .ar-s { font-family: var(--font-ar); color: var(--gold-600); font-size: 1.05rem; margin-left: 4px; }
.goal .g-arrow { color: var(--gold-500); font-size: 1.1rem; margin: 10px 0; line-height: 1; }
.goal .g-how {
  display: inline-block; padding: 0.4em 1em; border-radius: 999px;
  background: var(--emerald-50); color: var(--emerald-700);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.goal .g-how-sub { font-size: 0.78rem; color: var(--ink-400); margin-top: 6px; }
.goal .g-out { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--cream-300); width: 100%; }
.goal .g-out .ar { font-family: var(--font-ar); font-size: 1.5rem; color: var(--gold-600); display: block; line-height: 1.4; }
.goal .g-out b { color: var(--ink-950); font-size: 0.95rem; display: block; margin-top: 2px; }
.goal .g-out span { font-size: 0.8rem; color: var(--ink-500); }

.qalb-salim-band {
  margin-top: 22px; position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-hero); color: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap; text-align: center;
}
.qalb-salim-band::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(420px 300px at 15% 110%, rgba(46, 132, 126, 0.35), transparent 60%), radial-gradient(420px 300px at 88% -10%, rgba(106, 131, 184, 0.3), transparent 60%);
}
.qalb-salim-band .ar { font-family: var(--font-ar); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold-300); line-height: 1.3; }
.qalb-salim-band .txt { text-align: left; max-width: 460px; }
.qalb-salim-band .txt b { display: block; font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 4px; }
.qalb-salim-band .txt span { color: rgba(234, 240, 250, 0.82); font-size: 0.94rem; }
@media (max-width: 640px) { .qalb-salim-band .txt { text-align: center; } }

/* ---------------------------------------------------------
   Process of change — sticky stages
--------------------------------------------------------- */
.stages-wrap {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(30px, 5vw, 80px); align-items: start;
  text-align: left;
}
@media (max-width: 940px) { .stages-wrap { grid-template-columns: 1fr; } }
.stages-side { position: sticky; top: 110px; }
@media (max-width: 940px) { .stages-side { position: static; } }
.stages-side .stage-num {
  font-family: var(--font-head); font-size: clamp(6rem, 12vw, 10rem);
  line-height: 0.9; font-weight: 600; display: block;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity 0.3s ease;
}
.stages-side .stage-word {
  font-family: var(--font-ar); font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--ink-300); margin-top: 8px; display: block;
  transition: opacity 0.3s ease;
}
.stages-side.switching .stage-num, .stages-side.switching .stage-word { opacity: 0; }
.stage-meter { display: flex; gap: 8px; margin-top: 30px; max-width: 300px; }
.stage-meter i { height: 5px; flex: 1; border-radius: 5px; background: var(--cream-300); overflow: hidden; position: relative; }
.stage-meter i::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-meter i.done::before { transform: scaleX(1); }

.stage-card {
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 42px);
  margin-bottom: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0.5;
}
.stage-card.active { opacity: 1; border-color: var(--gold-400); box-shadow: var(--shadow-md); }
.stage-pair { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.stage-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--emerald-800); }
.stage-card p { color: var(--ink-500); font-size: 1rem; }
.stage-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.stage-card ul li { position: relative; padding-left: 26px; color: var(--ink-500); font-size: 0.94rem; }
.stage-card ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; border-radius: 2px; background: var(--gold-500); }
.arrow-flow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-400); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.arrow-flow::after { content: "⟶"; color: var(--gold-500); letter-spacing: 0; }

/* ---------------------------------------------------------
   Rafiq band (dark emerald feature band)
--------------------------------------------------------- */
.rafiq-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-hero); color: #eaf0fa;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: clamp(34px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; text-align: left;
}
.rafiq-band::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(500px 360px at 8% 110%, rgba(46, 132, 126, 0.3), transparent 60%), radial-gradient(460px 360px at 92% -10%, rgba(106, 131, 184, 0.28), transparent 60%);
}
@media (max-width: 860px) { .rafiq-band { grid-template-columns: 1fr; } }
.rafiq-band h2, .rafiq-band .eyebrow { color: #fff; }
.rafiq-band .eyebrow { color: var(--gold-300); }
.rafiq-band p { color: rgba(234, 240, 250, 0.82); }
.rafiq-seal { position: relative; width: clamp(180px, 24vw, 250px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; }
.rafiq-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite reverse; }
.rafiq-seal .word { text-align: center; }
.rafiq-seal .word .ar { font-family: var(--font-ar); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--gold-300); display: block; line-height: 1.2; }
.rafiq-seal .word small { color: rgba(234, 240, 250, 0.7); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.68rem; font-weight: 700; }
.rafiq-points { display: grid; gap: 10px; margin-top: 20px; }
.rafiq-points .pt { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: rgba(234, 240, 250, 0.9); }
.rafiq-points .pt::before { content: "◆"; color: var(--gold-400); font-size: 0.6rem; margin-top: 0.55em; }

/* ---------------------------------------------------------
   Case study stepper
--------------------------------------------------------- */
.case-shell {
  background: #fff; border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 48px);
  text-align: left;
}
.case-steps { display: flex; gap: 8px; margin-bottom: 34px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.case-steps::-webkit-scrollbar { display: none; }
.case-step-btn {
  flex: 1; min-width: 132px;
  border: 1px solid var(--cream-200); border-radius: 14px;
  background: var(--cream-50); cursor: pointer;
  padding: 13px 14px; text-align: left;
  color: var(--ink-500); font-family: var(--font-body);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.case-step-btn small { display: block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--ink-400); margin-bottom: 3px; }
.case-step-btn b { font-size: 0.88rem; font-weight: 700; }
.case-step-btn:hover { border-color: var(--emerald-400); color: var(--ink-950); transform: translateY(-2px); }
.case-step-btn.active { background: var(--emerald-50); border-color: var(--emerald-500); color: var(--emerald-900); }
.case-step-btn.active small { color: var(--emerald-700); }
.case-step-btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.case-panel { display: none; animation: caseIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.case-panel.active { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 860px) { .case-panel.active { grid-template-columns: 1fr; } }
@keyframes caseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.case-panel h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--emerald-800); }
.case-panel p { color: var(--ink-500); font-size: 0.99rem; }
.case-aside {
  border: 1px dashed var(--gold-400); border-radius: var(--radius);
  padding: 22px 24px; background: var(--gold-100);
  font-size: 0.92rem; color: var(--ink-700);
}
.case-aside b { display: block; color: var(--gold-700); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.case-aside ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-700); }
.case-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 14px; }
.case-nav .count { color: var(--ink-400); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.1em; }
.case-nav .btn-ghost { border-color: var(--cream-300); color: var(--ink-700); background: #fff; }
.case-nav .btn-ghost:hover { color: var(--emerald-800); border-color: var(--emerald-400); background: #fff; }

/* ---------------------------------------------------------
   Ijtimai strip
--------------------------------------------------------- */
.ijtimai { text-align: center; max-width: 760px; margin: 0 auto; }
.ijtimai .big-ar { font-family: var(--font-ar); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold-600); display: block; margin-bottom: 14px; line-height: 1.4; }
.ijtimai p { color: var(--ink-500); }

@media (prefers-reduced-motion: reduce) {
  .progress-bar, .psy-square .spoke, .psy-square .edge, .fitrah-band, .psy-node.core::before, .hero-model h1 .shimmer, .scroll-cue .wheel::before { animation: none !important; }
}
