/* ===========================================================
   LOOP - Infinite Learning Path
   Shared stylesheet
   Brand: orange #F26B1F · navy #16284B · white
   =========================================================== */

:root {
  --orange: #F26B1F;
  --orange-dark: #d65a13;
  --navy: #16284B;
  --navy-light: #22386a;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-navy-soft: #eef1f8;
  --border: #e5e8f0;
  --shadow: 0 10px 30px rgba(22, 40, 75, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 40, 75, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(242,107,31,.45); outline-offset: 3px; }

/* ---------- Page transition ---------- */
.page-splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #fff;
  opacity: 1; visibility: visible; transition: opacity .24s ease, visibility .24s ease;
}
.home-page .page-splash { transition: opacity .42s ease, visibility .42s ease; }
.page-splash img { width: min(210px, 52vw); border-radius: 14px; animation: splashMark .7s ease both; }
.page-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashMark { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 13px 30px; border-radius: 50px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242,107,31,.32); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: #fff; color: var(--navy); }
.btn-ghost-light:hover { background: var(--orange); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav__logo { display: flex; align-items: center; height: 100%; padding-top: 4px; }
.nav__logo img { height: 80px; width: 80px; object-fit: contain; border-radius: 10px; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-weight: 500; color: var(--navy); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .25s ease;
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--orange); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }

/* ---------- Photo helpers ---------- */
.media-frame {
  position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame--hero { aspect-ratio: 4/5; }
.media-frame--hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22,40,75,.45));
}
.hero__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
}
.hero__badge .dot { width: 40px; height: 40px; border-radius: 10px; background: var(--orange); color:#fff; display:grid; place-items:center; }
.hero__badge .dot svg { width: 22px; height: 22px; }
.hero__badge strong { display:block; color: var(--navy); font-size: .95rem; line-height: 1.1; }
.hero__badge small { color: var(--muted); font-size: .78rem; }
.split__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; }
.split__photo img { width:100%; height:100%; object-fit: cover; display:block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(242,107,31,.10), transparent 40%),
    linear-gradient(160deg, #fff 0%, var(--bg-navy-soft) 100%);
  padding: 80px 0 90px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.hero__eyebrow {
  display: inline-block; background: rgba(242,107,31,.12); color: var(--orange-dark);
  font-weight: 600; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 50px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: 1.12rem; max-width: 520px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__art {
  position: relative; aspect-ratio: 1/1; border-radius: 28px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-lg); overflow: hidden;
}
.media-frame--hero img {
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.045);
  will-change: transform;
}
.motion-ready .hero__art { animation: heroArtReveal .85s 1.08s cubic-bezier(.2,.75,.2,1) both; }
.motion-ready .media-frame--hero img { animation: heroImageSettle .9s 1.08s cubic-bezier(.2,.75,.2,1) both; }
.motion-ready .hero__badge { animation: heroBadgeIn .55s 1.58s cubic-bezier(.2,.8,.2,1) both; }
.motion-ready .hero__copy > * { animation: heroCopyIn .58s cubic-bezier(.2,.75,.2,1) both; }
.motion-ready .hero__copy > :nth-child(1) { animation-delay: 1.12s; }
.motion-ready .hero__copy > :nth-child(2) { animation-delay: 1.2s; }
.motion-ready .hero__copy > :nth-child(3) { animation-delay: 1.28s; }
.motion-ready .hero__copy > :nth-child(4) { animation-delay: 1.36s; }
.motion-ready .hero__copy > :nth-child(5) { animation-delay: 1.44s; }
@keyframes heroArtReveal {
  from { opacity: 0; clip-path: inset(0 0 100% 0 round 28px); transform: translateY(16px) scale(.975); }
  to { opacity: 1; clip-path: inset(0 round 28px); transform: none; }
}
@keyframes heroImageSettle {
  from { transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.12); }
  to { transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.045); }
}
@keyframes heroBadgeIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes heroCopyIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats .stat strong { display: block; font-size: 1.9rem; color: var(--navy); font-weight: 800; }
.hero__stats .stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Section scaffolding ---------- */
.section { padding: 78px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker {
  color: var(--orange); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem;
  display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section--navy .section-head h2 { color: #fff; }
.section--navy .section-head p { color: rgba(255,255,255,.75); }

/* ---------- Homepage study mascot ---------- */
.home-page .study-strategies .container { position: relative; }
.home-page .study-mascot {
  position: absolute; top: -8px; right: 18px; z-index: 2;
  width: 168px; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(22,40,75,.12));
}
.home-page .study-mascot svg { display: block; width: 100%; overflow: visible; }
.home-page .study-mascot .mascot-character { transform-box: fill-box; transform-origin: center bottom; }
.home-page .study-mascot .mascot-shadow { fill: rgba(22,40,75,.1); }
.home-page .study-mascot .mascot-cap__top { fill: var(--navy); stroke: #0f1e3a; stroke-width: 3; stroke-linejoin: round; }
.home-page .study-mascot .mascot-cap__band { fill: var(--navy-light); stroke: #0f1e3a; stroke-width: 3; stroke-linejoin: round; }
.home-page .study-mascot .mascot-tassel { color: var(--orange); transform-box: fill-box; transform-origin: 50% 0; }
.home-page .study-mascot .mascot-tassel path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.home-page .study-mascot .mascot-tassel circle { fill: currentColor; }
.home-page .study-mascot .mascot-page {
  fill: #fff; stroke: var(--navy); stroke-width: 4; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: 50% 100%;
}
.home-page .study-mascot .mascot-page-accent { fill: none; stroke: #dce2ee; stroke-width: 3; stroke-linecap: round; }
.home-page .study-mascot .mascot-spine { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.home-page .study-mascot .mascot-loop { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.home-page .study-mascot .mascot-eyes { fill: var(--navy); transform-box: fill-box; transform-origin: center; }
.home-page .study-mascot .mascot-smile { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.home-page .study-mascot .mascot-pencil-mark {
  fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 30; stroke-dashoffset: 30;
}
.home-page .study-mascot .mascot-pencil { transform-box: fill-box; transform-origin: center; }
.home-page .study-mascot .mascot-pencil__body { fill: var(--orange); stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.home-page .study-mascot .mascot-pencil__tip { fill: #f7c98b; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.home-page .study-mascot .mascot-pencil__eraser { fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.home-page .study-mascot.in .mascot-character { animation: mascotFloat 4.8s 1s ease-in-out infinite; }
.home-page .study-mascot.in .mascot-shadow { animation: mascotShadow 4.8s 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.home-page .study-mascot.in .mascot-page--left { animation: mascotPageLeft 6.4s 1.2s ease-in-out infinite; }
.home-page .study-mascot.in .mascot-page--right { animation: mascotPageRight 6.4s 1.2s ease-in-out infinite; }
.home-page .study-mascot.in .mascot-eyes { animation: mascotBlink 5.8s 1.7s ease-in-out infinite; }
.home-page .study-mascot.in .mascot-tassel { animation: mascotTassel 4.8s 1.1s ease-in-out infinite; }
.home-page .study-mascot.in .mascot-pencil { animation: mascotWrite 5.8s 1.5s ease-in-out infinite; }
.home-page .study-mascot.in .mascot-pencil-mark { animation: mascotWriteMark 5.8s 1.5s ease-in-out infinite; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-.6deg); } }
@keyframes mascotShadow { 0%, 100% { opacity: .9; transform: scaleX(1); } 50% { opacity: .6; transform: scaleX(.86); } }
@keyframes mascotPageLeft { 0%, 42%, 58%, 100% { transform: rotate(0); } 50% { transform: rotate(2.5deg); } }
@keyframes mascotPageRight { 0%, 42%, 58%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
@keyframes mascotBlink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.12); } }
@keyframes mascotTassel { 0%, 35%, 65%, 100% { transform: rotate(0); } 48% { transform: rotate(6deg); } 56% { transform: rotate(-4deg); } }
@keyframes mascotWrite { 0%, 20%, 64%, 100% { transform: translate(0) rotate(0); } 32% { transform: translate(-8px, 3px) rotate(-7deg); } 44% { transform: translate(-2px, 5px) rotate(4deg); } 54% { transform: translate(-9px, 4px) rotate(-5deg); } }
@keyframes mascotWriteMark { 0%, 24% { stroke-dashoffset: 30; opacity: 0; } 30% { opacity: 1; } 58%, 82% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* ---------- Feature / value cards ---------- */
.cards { display: grid; gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(242,107,31,.12); color: var(--orange);
}
.card__icon svg { width: 27px; height: 27px; }
.info-card .ic svg { width: 22px; height: 22px; }
.footer .socials svg { width: 18px; height: 18px; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .95rem; }

/* ---------- Split (story / vision) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  border-radius: var(--radius); min-height: 360px;
  background: linear-gradient(150deg, var(--navy), var(--navy-light));
  display: grid; place-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.split__media .loop-emblem { width: 48%; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.vm-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.vm-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--border); }
.vm-card h4 { color: var(--orange); font-size: 1.05rem; }
.vm-card p { margin: 0; font-size: .92rem; }

/* ---------- Courses ---------- */
.course-browser {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-width: 0; margin-bottom: 32px;
  padding: 14px; background: #f6f8fc; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 6px; border: 1px solid var(--border); background: #fff;
  font-weight: 600; color: var(--navy); cursor: pointer; transition: all .2s ease; font-family: var(--font);
}
.tab-btn span { min-width: 24px; padding: 2px 6px; border-radius: 4px; background: #edf1f8; color: var(--muted); font-size: .7rem; }
.tab-btn:hover { border-color: var(--orange); color: var(--orange); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-btn.active span { background: rgba(255,255,255,.14); color: #fff; }
.course-search { position: relative; flex: 0 1 390px; min-width: 0; }
.course-search svg { position: absolute; left: 15px; top: 50%; width: 19px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.course-search input {
  width: 100%; height: 48px; padding: 0 94px 0 44px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--navy); font: 500 .84rem var(--font); outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.course-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,107,31,.12); }
.course-search > span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .7rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.course-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; min-width: 0; }
.course-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  min-height: 94px; padding: 22px 20px 18px; font-weight: 700; color: var(--navy); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.course-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--orange); transform: scaleX(.24); transform-origin: left; transition: transform .25s ease; }
.course-card small { order: 3; width: 100%; color: var(--muted); font-weight: 500; font-size: .72rem; letter-spacing: .3px; }
.course-card small::before { content: 'SYLLABUS  '; color: var(--orange); font-size: .62rem; font-weight: 700; }
.course-card .arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff2eb; color: var(--orange); transition: transform .2s ease, background .2s ease; }
.course-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.course-card:hover::before { transform: scaleX(1); }
.course-card:hover .arrow { background: var(--orange); color: #fff; transform: translateX(2px); }
.course-card[hidden] { display: none; }
.course-empty { padding: 36px; border: 1px dashed var(--border); border-radius: var(--radius-sm); text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Faculty ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.faculty-card {
  --portrait-scale: 1; --portrait-hover-scale: 1.05; --portrait-offset-x: 0px; --portrait-offset-y: 0px; --portrait-origin: center bottom;
  min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: 0 12px 34px rgba(22,40,75,.08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.faculty-card:hover { transform: translateY(-8px); border-color: rgba(242,107,31,.45); box-shadow: 0 22px 46px rgba(22,40,75,.17); }
.faculty-card .avatar {
  position: relative; aspect-ratio: 4/3; display: flex; align-items: flex-end; justify-content: center;
  isolation: isolate; overflow: hidden;
  background-color: #172b4f;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(145deg, #101f3b 0%, #203765 72%, #2a416d 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
.faculty-card .avatar::before {
  content: ''; position: absolute; z-index: 1; width: 62%; aspect-ratio: 1; left: 50%; bottom: -12%;
  border: 3px solid rgba(242,107,31,.82); border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(242,107,31,.09), 0 0 34px rgba(242,107,31,.22);
  transform: translateX(-50%); transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.faculty-card .avatar::after {
  content: ''; position: absolute; z-index: 0; width: 82%; aspect-ratio: 1; left: 50%; bottom: -34%;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transform: translateX(-50%);
}
.faculty-card:hover .avatar::before {
  border-color: #ff8a45; box-shadow: 0 0 0 13px rgba(242,107,31,.11), 0 0 42px rgba(242,107,31,.3);
  transform: translateX(-50%) scale(1.04);
}
.faculty-card .avatar img {
  position: relative; z-index: 2; width: 94%; height: 98%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.28));
  transform: translate(var(--portrait-offset-x), var(--portrait-offset-y)) scale(var(--portrait-scale));
  transform-origin: var(--portrait-origin); transition: transform .35s ease;
}
.faculty-card:hover .avatar img {
  transform: translate(var(--portrait-offset-x), calc(var(--portrait-offset-y) - 2px)) scale(var(--portrait-hover-scale));
}
.faculty-card--yousuf { --portrait-scale: 1.18; --portrait-hover-scale: 1.23; --portrait-offset-y: 24px; }
.faculty-card--minhas { --portrait-scale: 1.05; --portrait-hover-scale: 1.1; }
.faculty-card--jaweria { --portrait-scale: 1.08; --portrait-hover-scale: 1.13; }
.faculty-card--fahad { --portrait-scale: 3.5; --portrait-hover-scale: 3.55; --portrait-offset-x: 120px; --portrait-offset-y: 24px; --portrait-origin: center; }
.faculty-card--rehan { --portrait-scale: 2.2; --portrait-hover-scale: 2.25; --portrait-offset-x: 114px; --portrait-offset-y: 32px; --portrait-origin: center; }
.faculty-card--kamran { --portrait-scale: 2.2; --portrait-hover-scale: 2.25; --portrait-offset-x: 128px; --portrait-offset-y: 28px; --portrait-origin: center; }
.faculty-card--beenish { --portrait-scale: 2.2; --portrait-hover-scale: 2.25; --portrait-offset-x: 126px; --portrait-offset-y: 36px; --portrait-origin: center; }
.faculty-card--yahya { --portrait-scale: 2.2; --portrait-hover-scale: 2.25; --portrait-offset-x: 118px; --portrait-offset-y: 28px; --portrait-origin: center; }
.faculty-card__number {
  position: absolute; z-index: 3; top: 14px; right: 16px; color: rgba(255,255,255,.58);
  font-size: .78rem; font-weight: 700; letter-spacing: 1px;
}
.faculty-card__body { position: relative; padding: 21px 22px 22px; text-align: left; }
.faculty-card__body::before { content: ''; position: absolute; top: 0; left: 22px; width: 42px; height: 3px; background: var(--orange); }
.testi-card .who .badge { overflow: hidden; }
.testi-card .who .badge img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card h4 { margin: 4px 0 7px; font-size: 1.15rem; }
.faculty-card__body span { color: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.faculty-card__body p { margin: 0; font-size: .78rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.testi-card .quote { font-size: 2.4rem; color: var(--orange); line-height: 1; font-weight: 800; }
.testi-card p { color: var(--ink); font-style: italic; }
.testi-card .who { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testi-card .who .badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background:
    radial-gradient(circle at 50% 50%, rgba(242,107,31,.12) 0 63%, transparent 64%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(230,236,245,.9));
  border: 1px solid rgba(22,40,75,.08);
  box-shadow: 0 10px 22px rgba(22,40,75,.12);
}
.testi-card .who strong { color: var(--navy); display: block; }
.testi-card .who small { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 24px; padding: 56px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(242,107,31,.4), transparent 70%); border-radius: 50%;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem,3vw,2.4rem); }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 70px 0; text-align: center;
}
.page-banner h1 { display: inline-block; position: relative; color: #fff; font-size: clamp(2rem,4vw,3rem); font-weight: 800; }
.page-banner h1::after {
  content: ''; display: block; width: 52px; height: 3px; margin: 14px auto 0;
  border-radius: 3px; background: var(--orange); transform-origin: center;
}
.page-banner .crumb { color: rgba(255,255,255,.7); font-size: .9rem; }
.page-banner .crumb a:hover { color: var(--orange); }
.motion-ready .page-banner h1 { animation: bannerTitleIn .58s 1.12s cubic-bezier(.2,.75,.2,1) both; }
.motion-ready .page-banner h1::after { animation: bannerLineIn .5s 1.36s cubic-bezier(.2,.75,.2,1) both; }
.motion-ready .page-banner .crumb { animation: bannerCrumbIn .5s 1.24s cubic-bezier(.2,.75,.2,1) both; }
@keyframes bannerTitleIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bannerLineIn { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes bannerCrumbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-grid > div:last-child { align-self: center; }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; background:#fff; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.contact-action {
  display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--navy); font-size: .84rem; font-weight: 700; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-action svg { width: 20px; color: var(--orange); flex: none; }
.contact-action:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.info-card .ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(242,107,31,.12); color: var(--orange); display: grid; place-items: center; font-size: 1.2rem; }
.info-card h4 { margin: 0 0 4px; }
.info-card p { margin: 0; font-size: .95rem; }
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.registration-invite {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 24px; padding: 18px;
  border: 1px solid rgba(242,107,31,.28); border-radius: var(--radius-sm); background: rgba(242,107,31,.07);
}
.registration-invite strong, .registration-invite span { display: block; }
.registration-invite strong { color: var(--navy); margin-bottom: 3px; }
.registration-invite span { color: var(--text); font-size: .84rem; line-height: 1.5; }
.registration-invite .btn { flex: none; white-space: nowrap; padding: 11px 16px; font-size: .8rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; transition: border-color .2s ease; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #dc2626; font-size: .8rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .err { display: block; }
.form-note { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); background: #e9f9ef; color: #166534; font-size: .9rem; display: none; }
.form-note.show { display: block; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: .5px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: var(--orange); }
.footer .brand-line { display: flex; align-items: center; margin-bottom: 16px; }
.footer__logo { width: 112px; height: 112px; object-fit: cover; border-radius: 14px; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center;
  color: #fff; transition: background .2s ease;
}
.footer .socials a:hover { background: var(--orange); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem;
}
.footer__bottom a { color: var(--orange); }
.footer__bottom .credit { color: rgba(255,255,255,.65); }
.footer__bottom .credit a { color: #fff; font-weight: 600; }
.footer__bottom .credit a:hover { color: var(--orange); }

/* ---------- Legal / privacy page ---------- */
.legal { padding: 70px 0; }
.legal .container { max-width: 860px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; margin: 0 0 18px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--orange); font-weight: 600; font-size: .85rem; letter-spacing: .5px; text-transform: uppercase; }

/* ---------- Reveal animation ---------- */
.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.motion-ready .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .faculty-grid .reveal:nth-child(3n + 2) { transition-delay: .06s; }
.cards .reveal:nth-child(3), .faculty-grid .reveal:nth-child(3n) { transition-delay: .12s; }
.faculty-grid .faculty-card.reveal { transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; margin: 0 auto; order: -1; }
  .home-page .study-mascot { top: -2px; right: 4px; width: 130px; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 280px; order: -1; }
  .cards--3, .vm-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: repeat(3,1fr); }
  .course-browser { align-items: stretch; flex-direction: column; }
  .course-search { flex-basis: auto; max-width: none; }
  .faculty-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div:last-child { align-self: stretch; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
    padding: 10px 0; border-bottom: 1px solid var(--border); transform: translateY(-130%);
    transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: none; }
  .nav__links li { width: 100%; text-align: center; padding: 12px 0; }
  .nav__toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav__cta .btn { display: none; }
  .cards--3, .cards--2, .vm-grid, .testi-grid, .course-grid, .faculty-grid, .form .row, .footer__grid {
    grid-template-columns: 1fr;
  }
  .course-browser { padding: 10px; }
  .tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
  .tab-btn { min-width: 0; justify-content: center; padding: 10px 6px; font-size: .72rem; }
  .tab-btn span { display: none; }
  .course-search { width: 100%; }
  .course-search input { min-width: 0; padding-right: 44px; }
  .course-search > span { display: none; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 56px 0; }
  .page-banner { padding: 52px 0; }
  .form { padding: 26px 20px; }
  .registration-invite { align-items: stretch; flex-direction: column; }
  .registration-invite .btn { width: 100%; }
  .contact-actions { grid-template-columns: 1fr; }
  .info-card { padding: 18px; }
  .footer { padding-top: 48px; }
  .footer__bottom { flex-direction: column; }
  .home-page .study-mascot {
    position: relative; top: auto; right: auto; width: 132px;
    margin: -24px auto 30px;
  }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero h1 { font-size: 2rem; }
  .section-head h2 { font-size: 1.75rem; }
  .faculty-card__body { padding-inline: 18px; }
  .info-card { gap: 12px; }
  .info-card .ic { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .motion-ready .hero__art,
  .motion-ready .media-frame--hero img,
  .motion-ready .hero__badge,
  .motion-ready .hero__copy > *,
  .motion-ready .page-banner h1,
  .motion-ready .page-banner h1::after,
  .motion-ready .page-banner .crumb {
    animation: none !important;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .media-frame--hero img { transform: none; will-change: auto; }
  .home-page .study-mascot *, .home-page .study-mascot.in * { animation: none !important; }
}
