/* Premium live-feel layer for Charles Chilufya Portfolio.
   Periwinkle-led modern identity with polished motion and wider visual rhythm. */
:root {
  --brand-periwinkle: #8f96ff; /* primary periwinkle */
  --brand-periwinkle-soft: #b7bdff;
  --brand-brown: #2A020A;
  --brand-dark: #17060c;
  --brand-ink: #21140f;
  --brand-muted: #6c5a50;
  --brand-line: rgba(143, 150, 255, .18);
  --first-color: #8f96ff;
  --second-color: #17060c;
  --shadow-soft: 0 22px 65px rgba(14, 36, 49, .12);
  --shadow-strong: 0 32px 95px rgba(14, 36, 49, .20);
}

* { scrollbar-width: thin; scrollbar-color: var(--brand-periwinkle) #f0f2ff; }
body.portfolio-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(143, 150, 255, .14), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(14, 36, 49, .10), transparent 26rem),
    linear-gradient(180deg, #fffdfb 0%, #ffffff 35%, #f7f8ff 100%);
  color: var(--brand-ink);
  overflow-x: hidden;
}
body.portfolio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(143,150,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,150,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  z-index: -2;
}
body.portfolio-page img { max-width: 100%; height: auto; margin: 0; }
body.portfolio-page a { color: inherit; }
body.portfolio-page a:hover { text-decoration: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 3000;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-brown), var(--brand-periwinkle), #d8dbff);
  box-shadow: 0 0 25px rgba(143,150,255,.55);
}

.l-header {
  background: rgba(255, 255, 255, .78) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(143, 150, 255, .12);
  box-shadow: 0 14px 40px rgba(67, 28, 7, .08) !important;
}
.nav { min-height: 74px; }
.nav__logo.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 168px;
}
.nav__brand-logo {
  width: auto !important;
  height: 62px !important;
  max-width: 230px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(14,36,49,.12));
}
.nav__list { align-items: center; }
.nav__item { margin-left: 1.7rem; }
.nav__link {
  color: var(--brand-ink) !important;
  font-size: .9rem;
  padding: .55rem .2rem;
  transition: color .25s ease, transform .25s ease;
}
.nav__link:hover { color: var(--brand-periwinkle) !important; transform: translateY(-1px); }
.nav__link::after, .active::after {
  background: linear-gradient(90deg, var(--brand-brown), var(--brand-periwinkle)) !important;
  border-radius: 999px;
  top: 2.05rem !important;
}
.nav__toggle { color: var(--brand-periwinkle); }

.home {
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-card {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  border-radius: 32px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .9rem;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--brand-brown);
  font-weight: 700;
  font-size: .78rem;
  box-shadow: 0 14px 40px rgba(143, 150, 255, .10);
  margin-bottom: 1.25rem;
  animation: floatBadge 4.2s ease-in-out infinite;
}
.home__title {
  font-size: clamp(2.15rem, 6vw, 4.7rem) !important;
  line-height: .98;
  letter-spacing: -0.06em;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}
.home__title-color {
  background: linear-gradient(120deg, var(--brand-brown), var(--brand-periwinkle) 60%, #d8dbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none;
}
.hero__summary {
  max-width: 640px;
  color: var(--brand-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.button, .contact__button, .join-button, .subscribe__button, .pricing__card button {
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--brand-brown), var(--brand-periwinkle)) !important;
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(143, 150, 255, .24) !important;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease !important;
}
.button:hover, .contact__button:hover, .join-button:hover, .subscribe__button:hover, .pricing__card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(143, 150, 255, .34) !important;
  filter: saturate(1.1);
}
.button--ghost {
  background: rgba(255, 255, 255, .82) !important;
  color: var(--brand-brown) !important;
  border: 1px solid var(--brand-line) !important;
  box-shadow: 0 18px 40px rgba(14, 36, 49, .10) !important;
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: .8rem;
  max-width: 620px;
}
.hero__metrics div {
  padding: 1rem;
  border: 1px solid rgba(143, 150, 255, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 18px 38px rgba(14, 36, 49, .08);
  backdrop-filter: blur(14px);
}
.hero__metrics strong { display: block; color: var(--brand-dark); font-size: .95rem; }
.hero__metrics span { display: block; color: var(--brand-muted); font-size: .75rem; margin-top: .25rem; }
.hero__ambient { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.40), rgba(143,150,255,.08) 48%, transparent 70%);
  filter: blur(4px);
  animation: drift 12s ease-in-out infinite alternate;
}
.orb--one { right: 18%; top: 14%; }
.orb--two { left: -3rem; bottom: 10%; width: 140px; animation-delay: -4s; }
.orb--three { right: -2rem; bottom: 20%; width: 120px; animation-delay: -7s; background: radial-gradient(circle, rgba(14,36,49,.25), transparent 70%); }
.home__social-icon {
  color: var(--brand-brown) !important;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(143,150,255,.16);
  border-radius: 16px;
  padding: .55rem;
  box-shadow: 0 12px 30px rgba(14,36,49,.10);
  transition: transform .25s ease, color .25s ease, background .25s ease;
}
.home__social-icon:hover { color: var(--brand-periwinkle) !important; transform: translateY(-4px) rotate(-3deg); background: #f0f2ff; }
.home__img { z-index: 1; filter: drop-shadow(0 28px 55px rgba(14,36,49,.22)); animation: heroFloat 6s ease-in-out infinite; }
.home__blob { fill: url(#brandGradient); }
.home__blob path { fill: var(--brand-periwinkle); }

.section { position: relative; }
.section-title {
  color: var(--brand-dark) !important;
  font-size: clamp(1.75rem, 3vw, 2.45rem) !important;
  letter-spacing: -.04em;
}
.section-title::after {
  height: .28rem !important;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-brown), var(--brand-periwinkle), #d8dbff) !important;
}
.section-kicker {
  max-width: 760px;
  margin: -1.5rem auto 1.4rem;
  text-align: center;
  color: var(--brand-muted);
  line-height: 1.7;
}

.about__container, .skills__container, .learning-path__step, .pricing__card, .thoughts__card, .research-publications__item, .blog__article, .blog__post {
  border: 1px solid rgba(143, 150, 255, .12);
  background: rgba(255, 255, 255, .82) !important;
  border-radius: 28px !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: blur(16px);
}
.about__container { padding: 1.4rem; }
.about__img img {
  width: 300px !important;
  border-radius: 28px !important;
  box-shadow: 0 26px 60px rgba(14,36,49,.18);
}
.about__subtitle, .skills__subtitle, .learning-path__title, .timeline-title { color: var(--brand-brown) !important; }
.about__text font { font-size: .82rem !important; }
.skills__text { color: var(--brand-muted); line-height: 1.85; }
.skills__data {
  background: #fff !important;
  border: 1px solid rgba(143,150,255,.10);
  box-shadow: 0 14px 34px rgba(14,36,49,.08) !important;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.skills__data:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(14,36,49,.14) !important; }
.skills__bar { background: linear-gradient(90deg, var(--brand-brown), var(--brand-periwinkle)) !important; z-index: 0 !important; opacity: .18; }
.skills__icon { color: var(--brand-periwinkle) !important; }
.skills__name, .skills__percentage { position: relative; z-index: 2; }

.taught-by-section { padding: 5rem 1rem; }
.institution-logos {
  max-width: 1040px;
  margin: auto;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-soft);
}
.scroller { display: inline-flex; align-items: center; gap: 3rem; animation-duration: 18s !important; }
.scroller img { height: 72px !important; width: auto; object-fit: contain; margin: 14px 8px !important; filter: saturate(.95); }

.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.project-filter-bar span, .project-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: var(--brand-brown);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--brand-line);
  box-shadow: 0 10px 24px rgba(14,36,49,.08);
  font-weight: 700;
  font-size: .78rem;
}
.work__container { gap: 1.5rem !important; }
.work__iframe {
  border: 1px solid rgba(143, 150, 255, .14) !important;
  border-radius: 26px !important;
  box-shadow: var(--shadow-soft);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}
.work__iframe::before {
  content: attr(data-project-title);
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  color: #fff;
  background: linear-gradient(135deg, rgba(14,36,49,.94), rgba(143,150,255,.92));
  padding: .5rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(0,0,0,.18);
  max-width: calc(100% - 2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work__iframe::after {
  content: "Open project ↗";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: var(--brand-brown);
  background: rgba(255,255,255,.92);
  padding: .45rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid rgba(143,150,255,.14);
}
.work__iframe:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong) !important; border-color: rgba(143,150,255,.38) !important; }
.work__iframe iframe { filter: saturate(.94) contrast(1.02); }

.timeline:before { background: linear-gradient(var(--brand-brown), var(--brand-periwinkle)) !important; }
.timeline li .timeline-badge { background: linear-gradient(135deg, var(--brand-brown), var(--brand-periwinkle)) !important; box-shadow: 0 18px 34px rgba(143,150,255,.25) !important; }
.timeline li .timeline-panel {
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(143,150,255,.12);
  box-shadow: var(--shadow-soft) !important;
}
.timeline li .timeline-panel:before { border-right-color: rgba(255,255,255,.86) !important; }

.learning-path, .thoughts, .community, .subscribe, .pricing { background: transparent !important; }
.thoughts__card { height: auto; min-height: 185px; color: var(--brand-ink); }
.thoughts__text { font-size: 1.05rem; line-height: 1.7; }
.thoughts__author { color: var(--brand-periwinkle); font-weight: 800; }
.pricing__container { flex-wrap: wrap; }
.pricing__card { position: relative; overflow: hidden; }
.pricing__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-brown), var(--brand-periwinkle), #d8dbff);
}
.pricing__card.gold, .pricing__card.silver, .pricing__card.bronze { border-top: none !important; }
.community-content {
  max-width: 1040px;
  margin: auto;
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(245,248,255,.86));
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-soft);
}
.community-images img { width: 250px !important; height: 180px !important; object-fit: cover; border-radius: 22px !important; }
.subscribe__form {
  padding: .55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-soft);
}
.subscribe__input { border: none !important; background: transparent; min-width: min(360px, 58vw); }
.subscribe__input:focus { outline: none; }

.contact__container {
  padding: 1.5rem;
  border-radius: 32px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-soft);
}
.contact__form { width: min(100%, 620px) !important; }
.contact__inputs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; width: 100%; }
.contact__input {
  width: 100%;
  border: 1px solid rgba(143,150,255,.18) !important;
  background: #fffdfb !important;
  border-radius: 18px !important;
  transition: border .25s ease, box-shadow .25s ease, transform .25s ease;
}
.contact__input:focus { border-color: rgba(143,150,255,.55) !important; box-shadow: 0 0 0 5px rgba(143,150,255,.10); transform: translateY(-1px); }
.contact__note { max-width: 620px; margin: -.5rem auto 1.5rem; color: var(--brand-muted); font-size: .86rem; }
.contact__info { flex-wrap: wrap; }
.contact__info-item {
  padding: .85rem 1rem;
  border-radius: 18px;
  background: #f7faff;
  border: 1px solid var(--brand-line);
  box-shadow: 0 12px 30px rgba(14,36,49,.07);
}
.contact__info-item i { color: var(--brand-periwinkle); }

.footer {
  background:
    radial-gradient(circle at 20% 0%, rgba(143,150,255,.28), transparent 25rem),
    #8f96ff !important;
  border-top: 1px solid rgba(143,150,255,.20);
}
.footer__brand-logo { width: min(360px, 82vw); margin: 0 auto 1rem !important; filter: drop-shadow(0 20px 38px rgba(0,0,0,.30)); }
.footer__icon { transition: transform .25s ease, color .25s ease; }
.footer__icon:hover { color: #d8dbff !important; transform: translateY(-4px); }

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-brown), var(--brand-periwinkle));
  color: #fff;
  box-shadow: 0 18px 38px rgba(143,150,255,.32);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1500;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.toast-message {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translate(-50%, 24px);
  opacity: 0;
  background: rgba(32, 19, 14, .94);
  color: #fff;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
  z-index: 4000;
  transition: opacity .25s ease, transform .25s ease;
}
.toast-message.is-visible { opacity: 1; transform: translate(-50%, 0); }

.blog.section, .research-publications.section { padding-top: 8rem; }
.blog__container { white-space: normal !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog { overflow-x: visible !important; }
.blog__article { padding: 1.2rem; transition: transform .25s ease, box-shadow .25s ease; }
.blog__article:hover, .research-publications__item:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow-strong) !important; }
.blog__photo { width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 50%; margin-right: .8rem !important; }
.blog__header { display: flex; align-items: center; margin-bottom: 1rem; }
.blog__read-more { border: 0; border-radius: 999px; padding: .75rem 1.1rem; background: linear-gradient(135deg, var(--brand-brown), var(--brand-periwinkle)); color: #fff; font-weight: 700; box-shadow: 0 14px 30px rgba(143,150,255,.22); }
.research-publications__item { border-radius: 24px !important; padding: 1.4rem !important; }
.research-publications__link { color: var(--brand-periwinkle) !important; }
.modal-content { border-radius: 24px !important; box-shadow: var(--shadow-strong); }

@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(26px,-34px,0) scale(1.12); } }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media screen and (max-width: 992px) {
  .nav__brand-logo { height: 54px !important; max-width: 190px; }
  .nav__item { margin-left: 1rem; }
  .home__img { opacity: .36; right: -5rem; }
}
@media screen and (max-width: 767px) {
  body.portfolio-page { margin-top: 4.6rem; }
  .nav__menu { background: rgba(33,18,11,.96) !important; backdrop-filter: blur(18px); border-left: 1px solid rgba(143,150,255,.18); }
  .nav__menu .nav__link { color: #fff !important; }
  .nav__brand-logo { height: 50px !important; max-width: 176px; }
  .home { min-height: auto; padding-top: 4rem !important; }
  .hero-card { padding: 0; }
  .hero__metrics { grid-template-columns: 1fr; }
  .home__img { position: relative; right: auto; width: min(85vw, 310px) !important; margin: 2rem auto 0; opacity: 1; }
  .home__social { flex-direction: row !important; gap: .7rem; }
  .contact__inputs { grid-template-columns: 1fr; }
  .subscribe__form { flex-direction: column; border-radius: 24px; gap: .5rem; width: min(90vw, 420px); }
  .subscribe__button { border-radius: 999px !important; }
  .pricing__container { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}

/* ===== Look upgrade phase: more premium periwinkle/dark identity ===== */
:root {
  --spotlight-x: 50vw;
  --spotlight-y: 18vh;
  --surface-glass: rgba(255, 255, 255, .78);
  --surface-periwinkle: rgba(143, 150, 255, .08);
}

body.portfolio-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(143,150,255,.16), transparent 18rem);
  z-index: -1;
  transition: background .2s linear;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fffdfb, #ffffff 42%, #f0f2ff);
  transition: opacity .45s ease, visibility .45s ease;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; }
.site-loader__ring {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid rgba(143,150,255,.15);
  border-top-color: var(--brand-periwinkle);
  animation: loaderSpin 1.25s linear infinite;
  box-shadow: inset 0 0 34px rgba(143,150,255,.08), 0 22px 65px rgba(14,36,49,.12);
}
.site-loader__logo {
  width: min(260px, 70vw);
  filter: drop-shadow(0 18px 34px rgba(14,36,49,.16));
}

.nav__link.active { color: var(--brand-periwinkle) !important; }
.nav__link.active::after { width: 100% !important; }
.l-header.scrolled {
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 16px 46px rgba(14,36,49,.13) !important;
}

.home::before {
  content: "";
  position: absolute;
  right: 7%;
  top: 18%;
  width: min(36vw, 420px);
  aspect-ratio: 1;
  border-radius: 42% 58% 54% 46% / 38% 42% 58% 62%;
  background: linear-gradient(135deg, rgba(143,150,255,.12), rgba(14,36,49,.06));
  filter: blur(1px);
  animation: morphShape 12s ease-in-out infinite;
  z-index: 0;
}
.hero__availability {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  max-width: 650px;
  padding: .72rem .95rem;
  margin: -.25rem 0 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(143,150,255,.16);
  background: rgba(255,255,255,.74);
  box-shadow: 0 14px 34px rgba(14,36,49,.08);
  color: var(--brand-muted);
  font-size: .86rem;
  line-height: 1.4;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-periwinkle);
  box-shadow: 0 0 0 0 rgba(143,150,255,.52);
  animation: pulseDot 1.8s infinite;
  flex: 0 0 auto;
}
.hero-orbit-card {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .9rem;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(143,150,255,.14);
  box-shadow: 0 18px 42px rgba(14,36,49,.13);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .78rem;
  backdrop-filter: blur(15px);
}
.hero-orbit-card i { color: var(--brand-periwinkle); font-size: 1.05rem; }
.hero-orbit-card--one { top: 14%; right: 2%; animation: orbitFloat 5.4s ease-in-out infinite; }
.hero-orbit-card--two { left: -4%; bottom: 28%; animation: orbitFloat 6s ease-in-out infinite reverse; }
.hero-orbit-card--three { right: 10%; bottom: 8%; animation: orbitFloat 5.7s ease-in-out infinite; }

.portfolio-pulse {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
}
.portfolio-pulse__item {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(143,150,255,.13);
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 42px rgba(14,36,49,.09);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.portfolio-pulse__item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--brand-brown), var(--brand-periwinkle));
}
.portfolio-pulse__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(143,150,255,.32);
}
.portfolio-pulse__item i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f0f2ff;
  color: var(--brand-periwinkle);
  font-size: 1.25rem;
  margin-bottom: .8rem;
}
.portfolio-pulse__item strong { display: block; color: var(--brand-dark); margin-bottom: .28rem; }
.portfolio-pulse__item span { display: block; color: var(--brand-muted); font-size: .78rem; line-height: 1.55; }

.about__container { position: relative; overflow: hidden; }
.about__container::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.16), transparent 70%);
}
.about__badges, .skills__stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}
.about__badges span, .skills__stack-cloud span {
  padding: .55rem .78rem;
  border-radius: 999px;
  background: rgba(143,150,255,.08);
  border: 1px solid rgba(143,150,255,.14);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .76rem;
}
.skills__stack-cloud {
  align-self: start;
  margin-top: 0;
  margin-bottom: 1rem;
}
.skills__stack-cloud span:nth-child(odd) { background: rgba(14,36,49,.05); }
.skills__container {
  align-items: start;
  position: relative;
}
.skills__container::before {
  content: "Capabilities";
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgba(143,150,255,.12);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.08em;
  pointer-events: none;
}

.featured-projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.featured-project-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(244,248,255,.86));
  border: 1px solid rgba(143,150,255,.14);
  box-shadow: 0 18px 42px rgba(14,36,49,.08);
  transition: transform .28s ease, box-shadow .28s ease;
}
.featured-project-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -60px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(143,150,255,.20), transparent 72%);
}
.featured-project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-strong); }
.featured-project-card__label {
  display: inline-flex;
  padding: .44rem .65rem;
  border-radius: 999px;
  background: #f0f2ff;
  color: var(--brand-periwinkle);
  font-weight: 800;
  font-size: .68rem;
  margin-bottom: .75rem;
}
.featured-project-card h3 { color: var(--brand-dark); font-size: 1.08rem; margin-bottom: .55rem; }
.featured-project-card p { color: var(--brand-muted); line-height: 1.65; font-size: .86rem; }
.work__iframe { overflow: hidden; min-height: 250px; }
.work__iframe iframe { transform: scale(.995); transition: transform .35s ease, filter .35s ease; }
.work__iframe:hover iframe { transform: scale(1.012); filter: saturate(1.05) contrast(1.04); }
.work__iframe .project-card-meta {
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .85rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.work__iframe:hover .project-card-meta { opacity: 1; transform: translateY(0); }
.project-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--brand-dark);
  border: 1px solid rgba(143,150,255,.14);
  font-weight: 800;
  font-size: .68rem;
  box-shadow: 0 12px 26px rgba(14,36,49,.10);
}

.pricing { padding: 5rem 0 3rem; }
.pricing__card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left !important;
  gap: .35rem;
  transition: transform .28s ease, box-shadow .28s ease;
}
.pricing__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong) !important; }
.pricing__card h3 { font-size: 1.45rem; color: var(--brand-dark); }
.pricing__card h3::after {
  content: " package";
  color: var(--brand-muted);
  font-size: .8rem;
  font-weight: 500;
}
.pricing__card p {
  position: relative;
  padding-left: 1.35rem;
  color: var(--brand-muted);
  line-height: 1.6;
}
.pricing__card p::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-periwinkle);
  font-weight: 900;
}
.pricing__card button { margin-top: auto; width: 100%; }

.thoughts__card { position: relative; overflow: hidden; }
.thoughts__card::before {
  content: "“";
  position: absolute;
  top: -1.5rem;
  right: 1rem;
  font-size: 7rem;
  color: rgba(143,150,255,.09);
  font-family: Georgia, serif;
}
.community-content {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 2rem;
}
.community-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.community-images img:first-child { transform: rotate(-2deg); }
.community-images img:last-child { transform: rotate(2deg) translateY(20px); }

.portfolio-cta {
  grid-template-columns: 1.35fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255,255,255,.14), transparent 18rem),
    #8f96ff;
  color: #fff;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
}
.portfolio-cta::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.portfolio-cta__eyebrow {
  display: inline-flex;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  font-size: .75rem;
  margin-bottom: .75rem;
}
.portfolio-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .7rem; }
.portfolio-cta p { color: rgba(255,255,255,.82); line-height: 1.75; max-width: 760px; }
.portfolio-cta__button { background: #fff !important; color: var(--brand-dark) !important; position: relative; z-index: 2; white-space: nowrap; }

.contact__container { position: relative; overflow: hidden; }
.contact__container::before {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.12), transparent 70%);
}
.contact__form, .contact__note, .contact__info { position: relative; z-index: 2; }
.footer { padding-top: 3rem !important; }
.footer__quicklinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin: 1rem auto 1.25rem;
}
.footer__quicklinks a {
  color: rgba(255,255,255,.78) !important;
  padding: .45rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.footer__quicklinks a:hover { background: rgba(255,255,255,.10); color: #fff !important; transform: translateY(-2px); }

.page-hero {
  min-height: 42vh;
  align-content: center;
  padding: 7rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.17), transparent 70%);
  z-index: -1;
}
.page-hero__eyebrow {
  width: fit-content;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(143,150,255,.14);
  box-shadow: 0 14px 34px rgba(14,36,49,.08);
  color: var(--brand-periwinkle);
  font-weight: 800;
  font-size: .78rem;
  margin-bottom: 1rem;
}
.page-hero h1 {
  color: var(--brand-dark);
  font-size: clamp(2.1rem, 6vw, 4.7rem);
  letter-spacing: -.06em;
  line-height: .98;
  margin-bottom: 1rem;
}
.page-hero p {
  max-width: 760px;
  color: var(--brand-muted);
  line-height: 1.8;
  font-size: 1.02rem;
}
.blog__article, .research-publications__item { position: relative; overflow: hidden; }
.blog__article::after, .research-publications__item::after {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.13), transparent 70%);
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(143,150,255,.52); } 70% { box-shadow: 0 0 0 12px rgba(143,150,255,0); } 100% { box-shadow: 0 0 0 0 rgba(143,150,255,0); } }
@keyframes orbitFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes morphShape { 0%, 100% { border-radius: 42% 58% 54% 46% / 38% 42% 58% 62%; transform: rotate(0deg); } 50% { border-radius: 58% 42% 45% 55% / 53% 59% 41% 47%; transform: rotate(7deg); } }

@media screen and (max-width: 992px) {
  .portfolio-pulse, .featured-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-content, .portfolio-cta { grid-template-columns: 1fr; }
  .portfolio-cta__button { width: fit-content; }
  .hero-orbit-card { display: none; }
}
@media screen and (max-width: 767px) {
  .nav__menu { background: rgba(14,36,49,.96) !important; }
  .portfolio-pulse, .featured-projects { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero__availability { border-radius: 22px; align-items: flex-start; }
  .skills__container::before { display: none; }
  .community-images { grid-template-columns: 1fr; }
  .community-images img:first-child, .community-images img:last-child { transform: none; width: 100% !important; }
  .portfolio-cta { padding: 1.3rem; border-radius: 26px; }
  .portfolio-cta__button { width: 100%; text-align: center; }
  .page-hero { min-height: auto; padding-top: 6.5rem; }
}
.skills__intro { position: relative; z-index: 2; }


/* ===== Spacious layout and page refinement phase ===== */
@media screen and (min-width: 768px) {
  .bd-grid {
    width: min(100% - 4rem, 1320px) !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .nav.bd-grid {
    width: min(100% - 3rem, 1420px) !important;
    max-width: 1420px !important;
  }
  .home.bd-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr) !important;
    column-gap: clamp(2rem, 5vw, 5rem) !important;
  }
}
@media screen and (min-width: 1440px) {
  .bd-grid { width: min(100% - 7rem, 1480px) !important; max-width: 1480px !important; }
  .nav.bd-grid { width: min(100% - 5rem, 1560px) !important; max-width: 1560px !important; }
}
.section { padding-left: clamp(.6rem, 1vw, 1rem); padding-right: clamp(.6rem, 1vw, 1rem); }
.home__title { max-width: 860px; }
.hero__summary { max-width: 760px; }
.portfolio-pulse, .featured-projects, .publications-preview__container, .clients__container { max-width: 1360px !important; }
.work__container {
  width: min(100% - 3rem, 1440px) !important;
  max-width: 1440px !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  align-items: stretch;
}
.work__iframe { min-height: clamp(260px, 26vw, 360px) !important; }
.work__iframe iframe { min-height: inherit; }
.about__container { grid-template-columns: .8fr 1.2fr !important; gap: clamp(2rem, 4vw, 4rem) !important; }
.skills__container { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important; gap: 1.35rem !important; }
.pricing__container { width: min(100% - 3rem, 1260px); margin-inline: auto; gap: 1.25rem; }

/* Improved Taught By section */
.taught-by-section { padding-block: 5.5rem; }
.taught-by__wrap {
  grid-template-columns: .75fr 1.25fr;
  gap: 1.3rem;
  align-items: stretch;
}
.taught-by__intro {
  padding: 1.55rem;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(244,248,255,.86));
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-soft);
}
.taught-by__eyebrow {
  display: inline-flex;
  padding: .48rem .72rem;
  border-radius: 999px;
  background: #f0f2ff;
  color: var(--brand-periwinkle);
  font-size: .74rem;
  font-weight: 800;
  margin-bottom: .9rem;
}
.taught-by__intro h3 { color: var(--brand-dark); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.35; margin-bottom: .75rem; }
.taught-by__intro p { color: var(--brand-muted); line-height: 1.75; }
.taught-by-section .institution-logos { max-width: none; overflow: hidden; padding: 1rem; }
.taught-by-section .scroller { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; animation: none !important; }
.institution-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: 24px;
  background: #fffdfb;
  border: 1px solid rgba(143,150,255,.12);
  box-shadow: 0 12px 30px rgba(14,36,49,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.institution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.institution-card img { max-height: 62px !important; max-width: 120px; margin: 0 auto .8rem !important; object-fit: contain; }
.institution-card span { color: var(--brand-dark); font-weight: 800; font-size: .78rem; line-height: 1.35; }

/* Clients section */
.clients-section { padding-block: 4.5rem; }
.clients__container { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.client-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  min-height: 210px;
  border-radius: 28px;
  border: 1px solid rgba(143,150,255,.12);
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.client-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.14), transparent 72%);
}
.client-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-strong); border-color: rgba(143,150,255,.3); }
.client-card span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-periwinkle));
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
  box-shadow: 0 16px 32px rgba(143,150,255,.22);
}
.client-card h3 { color: var(--brand-dark); font-size: 1.05rem; margin-bottom: .55rem; }
.client-card p { color: var(--brand-muted); line-height: 1.65; font-size: .88rem; }

/* Publication snippets on homepage */
.publications-preview { padding-block: 4.8rem; }
.publications-preview__container { grid-template-columns: 1.25fr .875fr .875fr; gap: 1rem; align-items: stretch; }
.publication-snippet-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
  border-radius: 30px;
  border: 1px solid rgba(143,150,255,.13);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.publication-snippet-card--featured {
  background: radial-gradient(circle at 10% 0%, rgba(143,150,255,.18), transparent 18rem), linear-gradient(145deg, #ffffff, #f7f8ff);
}
.publication-snippet-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.12), transparent 72%);
}
.publication-snippet-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-strong); }
.publication-snippet-card__type {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: #f0f2ff;
  color: var(--brand-periwinkle);
  font-weight: 900;
  font-size: .72rem;
  margin-bottom: .9rem;
}
.publication-snippet-card h3 { color: var(--brand-dark); font-size: clamp(1.08rem, 2vw, 1.55rem); line-height: 1.28; margin-bottom: .75rem; }
.publication-snippet-card p { color: var(--brand-muted); line-height: 1.75; margin-bottom: 1rem; }
.publication-snippet-card__actions { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.publication-inline-link { position: relative; z-index: 2; color: var(--brand-periwinkle) !important; font-weight: 900; }

/* Better contact section */
.contact__modern {
  grid-template-columns: .95fr 1.05fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.1rem !important;
}
.contact__intro, .contact__panel {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  padding: 1.35rem;
}
.contact__intro {
  background: #8f96ff;
  color: #fff;
  overflow: hidden;
}
.contact__intro::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.contact__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .52rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .75rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.contact__intro h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.12; margin-bottom: .75rem; }
.contact__intro p { color: rgba(255,255,255,.78); line-height: 1.75; }
.contact__quick-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 1.2rem 0; }
.contact__quick-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff !important;
  transition: transform .25s ease, background .25s ease;
}
.contact__quick-card:hover { transform: translateX(5px); background: rgba(255,255,255,.15); }
.contact__quick-card i { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.14); }
.contact__quick-card span { color: rgba(255,255,255,.68); font-size: .72rem; font-weight: 800; }
.contact__quick-card strong { color: #fff; font-size: .85rem; overflow-wrap: anywhere; }
.contact__availability-strip {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem;
  border-radius: 18px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  font-size: .86rem;
}
.contact__panel { background: #fff; box-shadow: 0 16px 40px rgba(14,36,49,.08); }
.contact__form.contact__panel { width: 100% !important; margin: 0 !important; }
.contact__select { color: var(--brand-muted); appearance: none; }
.contact__textarea { min-height: 180px; resize: vertical; }
.contact__button { width: 100%; justify-content: center; }
.contact__note { margin: .85rem 0 0 !important; max-width: none !important; }

/* Blog and publication page upgrades */
.content-hub-strip, .publication-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.content-hub-strip article, .publication-metrics article {
  padding: 1.05rem;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(143,150,255,.13);
  box-shadow: 0 18px 42px rgba(14,36,49,.08);
}
.content-hub-strip strong, .publication-metrics strong { display: block; color: var(--brand-dark); margin-bottom: .35rem; }
.content-hub-strip span, .publication-metrics span { color: var(--brand-muted); font-size: .82rem; line-height: 1.55; }
.blog-filter-panel {
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}
.blog-filter-panel span {
  padding: .55rem .85rem;
  border-radius: 999px;
  background: #f0f2ff;
  border: 1px solid rgba(143,150,255,.13);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .78rem;
}
.blog__container {
  width: min(100% - 3rem, 1380px) !important;
  max-width: 1380px !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  gap: 1.25rem !important;
}
.blog__article {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem !important;
}
.blog__article::before {
  content: "Insight";
  width: fit-content;
  padding: .42rem .65rem;
  border-radius: 999px;
  background: #f0f2ff;
  color: var(--brand-periwinkle);
  font-size: .68rem;
  font-weight: 900;
  margin-bottom: .85rem;
}
.blog__title { color: var(--brand-dark); line-height: 1.35; font-size: 1.05rem; margin-bottom: .7rem; }
.blog__excerpt { color: var(--brand-muted); line-height: 1.72; margin-bottom: 1rem; }
.blog__read-more { margin-top: auto; width: fit-content; position: relative; z-index: 3; }
.modal__content { max-width: min(980px, 92vw) !important; border-radius: 28px !important; text-align: left !important; box-shadow: var(--shadow-strong); }
.modal__title { color: var(--brand-dark) !important; line-height: 1.25; padding-right: 2rem; }
.modal__body { line-height: 1.8 !important; }
.research-publications__container {
  width: min(100% - 3rem, 1260px) !important;
  max-width: 1260px !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;
  gap: 1.2rem !important;
}
.research-publications__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  min-height: 250px;
  margin: 0 !important;
}
.research-publications__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-periwinkle));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 16px 32px rgba(143,150,255,.22);
}
.research-publications__tag {
  display: inline-flex;
  padding: .4rem .62rem;
  border-radius: 999px;
  background: #f0f2ff;
  color: var(--brand-periwinkle);
  font-weight: 900;
  font-size: .68rem;
  margin-bottom: .7rem;
}
.research-publications__title { color: var(--brand-dark); line-height: 1.35; }
.research-publications__description { line-height: 1.7; }
.research-publications__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.research-publications__download { color: var(--brand-dark) !important; font-weight: 900; }
#docModal { z-index: 5000 !important; backdrop-filter: blur(8px); }
#docModal .modal-content { width: min(94vw, 1120px) !important; max-width: 1120px !important; border-radius: 28px !important; padding: 1.25rem !important; }
#docIframe { border-radius: 18px; background: #fffdfb; }

@media screen and (max-width: 992px) {
  .taught-by__wrap, .publications-preview__container, .contact__modern, .about__container { grid-template-columns: 1fr !important; }
  .publications-preview__container { width: min(100% - 2rem, 720px) !important; }
}
@media screen and (max-width: 767px) {
  .bd-grid, .work__container, .blog__container, .research-publications__container { width: min(100% - 1.5rem, 100%) !important; }
  .content-hub-strip, .publication-metrics { grid-template-columns: 1fr; }
  .contact__modern { padding: .75rem !important; }
  .contact__intro, .contact__panel { padding: 1rem; border-radius: 22px; }
  .contact__quick-card { grid-template-columns: 36px 1fr; }
  .research-publications__item { grid-template-columns: 1fr; }
}

/* Extra width fixes for sections that were still using narrow Bootstrap/static containers */
.timeline-section .container {
  max-width: min(100% - 3rem, 1240px) !important;
}
.timeline-section .col-lg-8 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
.timeline li .timeline-panel { width: 43% !important; }
.community-content {
  width: min(100% - 3rem, 1320px) !important;
  max-width: 1320px !important;
}
.subscribe__container {
  width: min(100% - 3rem, 860px) !important;
  margin-inline: auto;
}
.portfolio-cta.bd-grid, .contact__container.bd-grid {
  width: min(100% - 3rem, 1320px) !important;
  max-width: 1320px !important;
}
.page-hero.bd-grid {
  width: min(100% - 3rem, 1320px) !important;
  max-width: 1320px !important;
}
@media screen and (max-width: 767px) {
  .timeline li .timeline-panel { width: calc(100% - 90px) !important; }
  .community-content, .subscribe__container, .portfolio-cta.bd-grid, .contact__container.bd-grid, .page-hero.bd-grid { width: min(100% - 1.5rem, 100%) !important; }
}


/* ===== Strategic services wording phase - periwinkle/dark identity ===== */
.service-ecosystem { padding-block: 5rem; }
.service-ecosystem__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.service-domain-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 1.35rem;
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(143,150,255,.13);
  box-shadow: var(--shadow-soft);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-domain-card--featured {
  grid-column: span 2;
  background: radial-gradient(circle at 10% 0%, rgba(143,150,255,.17), transparent 18rem), linear-gradient(145deg, #ffffff, #f4f8ff);
}
.service-domain-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-dark), var(--first-color), #d8dbff);
}
.service-domain-card::after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -90px;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.13), transparent 72%);
}
.service-domain-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); border-color: rgba(143,150,255,.33); }
.service-domain-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--first-color));
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 16px 32px rgba(143,150,255,.24);
  margin-bottom: 1rem;
}
.service-domain-card__label {
  display: inline-flex;
  width: fit-content;
  padding: .44rem .68rem;
  border-radius: 999px;
  background: #f0f2ff;
  color: var(--first-color);
  font-weight: 900;
  font-size: .7rem;
  margin-bottom: .85rem;
}
.service-domain-card h3 {
  color: var(--brand-dark);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.3;
  margin-bottom: .75rem;
  position: relative;
  z-index: 2;
}
.service-domain-card p { color: var(--brand-muted); line-height: 1.72; font-size: .9rem; position: relative; z-index: 2; }
.taught-by__mini-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.taught-by__mini-list span {
  padding: .48rem .7rem;
  border-radius: 999px;
  background: rgba(143,150,255,.08);
  border: 1px solid rgba(143,150,255,.13);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .72rem;
}
.blog-feature-strip,
.publication-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.blog-feature-strip article,
.publication-focus-grid article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 1.25rem;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(143,150,255,.13);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-feature-strip article:hover,
.publication-focus-grid article:hover { transform: translateY(-7px); box-shadow: var(--shadow-strong); }
.blog-feature-strip i,
.publication-focus-grid i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--brand-dark), var(--first-color));
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 16px 32px rgba(143,150,255,.22);
}
.blog-feature-strip h3,
.publication-focus-grid h3 { color: var(--brand-dark); font-size: 1.08rem; margin-bottom: .55rem; }
.blog-feature-strip p,
.publication-focus-grid p { color: var(--brand-muted); line-height: 1.65; font-size: .88rem; }
.contact__select option { color: var(--brand-dark); }
.pricing__card h3::after { content: "" !important; }
.pricing__card button { cursor: pointer; }
.page-hero--blog h1,
.page-hero--publications h1 { max-width: 920px; }
@media screen and (max-width: 1180px) {
  .service-ecosystem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-domain-card--featured { grid-column: span 2; }
}
@media screen and (max-width: 767px) {
  .service-ecosystem__grid,
  .blog-feature-strip,
  .publication-focus-grid { grid-template-columns: 1fr; }
  .service-domain-card--featured { grid-column: span 1; }
  .service-domain-card { min-height: auto; }
}

/* ===== Periwinkle modern refinement pass ===== */
:root {
  --brand-periwinkle: #8f96ff;
  --brand-periwinkle-soft: #b7bdff;
  --brand-brown: #2A020A;
  --brand-dark: #17060c;
  --brand-ink: #21140f;
  --brand-muted: #6c5a50;
  --brand-line: rgba(143, 150, 255, .20);
  --first-color: #8f96ff;
  --second-color: #17060c;
  --shadow-soft: 0 22px 65px rgba(42, 2, 10, .11);
  --shadow-strong: 0 34px 95px rgba(42, 2, 10, .20);
}

html { accent-color: var(--brand-periwinkle); }
body.portfolio-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(143, 150, 255, .17), transparent 30rem),
    radial-gradient(circle at 86% 16%, rgba(254, 178, 76, .18), transparent 28rem),
    radial-gradient(circle at 55% 85%, rgba(42, 2, 10, .08), transparent 32rem),
    linear-gradient(180deg, #fffdfb 0%, #ffffff 34%, #fff4eb 100%) !important;
}
body.portfolio-page::before {
  background-image:
    linear-gradient(rgba(143,150,255,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,150,255,.052) 1px, transparent 1px) !important;
}
body.portfolio-page::after {
  content: "";
  position: fixed;
  width: 460px;
  aspect-ratio: 1;
  left: calc(var(--spotlight-x, 50vw) - 230px);
  top: calc(var(--spotlight-y, 50vh) - 230px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(143,150,255,.12), transparent 62%);
  z-index: -1;
  transition: left .08s linear, top .08s linear;
}
.meta[name="theme-color"] { content: #8f96ff; }
.scroll-progress span { background: linear-gradient(90deg, #2A020A, #8f96ff, #d8dbff) !important; box-shadow: 0 0 24px rgba(143,150,255,.58) !important; }
.l-header { border-bottom-color: rgba(143,150,255,.16) !important; }
.home__title-color { background: linear-gradient(120deg, #2A020A, #8f96ff 54%, #d8dbff) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.section-title::after, .pricing__card::before, .timeline:before { background: linear-gradient(90deg, #2A020A, #8f96ff, #d8dbff) !important; }
.button, .contact__button, .join-button, .subscribe__button, .pricing__card button { background: linear-gradient(135deg, #2A020A, #8f96ff) !important; box-shadow: 0 18px 36px rgba(143,150,255,.24) !important; }
.button:hover, .contact__button:hover, .join-button:hover, .subscribe__button:hover, .pricing__card button:hover { box-shadow: 0 24px 55px rgba(143,150,255,.34) !important; }
.button--ghost { color: #2A020A !important; background: rgba(255,255,255,.86) !important; }
.home__blob path { fill: var(--brand-periwinkle) !important; }
.orb { background: radial-gradient(circle, rgba(143,150,255,.42), rgba(143,150,255,.08) 50%, transparent 72%) !important; }
.orb--three { background: radial-gradient(circle, rgba(42,2,10,.22), transparent 72%) !important; }

/* Taught-by section visibility and modern card grid */
.taught-by-section .institution-logos {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 1.2rem !important;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,246,239,.9)) !important;
}
.taught-by-section .scroller {
  white-space: normal !important;
  transform: none !important;
  animation: none !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 1rem !important;
}
.institution-card {
  min-height: 172px !important;
  overflow: visible !important;
  background: linear-gradient(145deg, #ffffff, #f7f8ff) !important;
  border: 1px solid rgba(143,150,255,.16) !important;
  position: relative;
}
.institution-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #2A020A, #8f96ff, #d8dbff);
  border-radius: 24px 24px 0 0;
}
.institution-card img { height: auto !important; max-height: 58px !important; width: auto !important; max-width: 120px !important; }
.institution-card small { display: block; color: var(--brand-muted); font-size: .68rem; line-height: 1.45; margin-top: .35rem; }
.institution-card--icon i { font-size: 2.5rem; color: var(--brand-periwinkle); margin-bottom: .75rem; }
.taught-by__intro { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,245,237,.88)) !important; }
.taught-by__eyebrow, .featured-project-card__label { background: #f0f2ff !important; color: var(--brand-periwinkle) !important; }

/* Dynamic project showcase */
.project-filter-bar--interactive { margin-bottom: 2rem !important; }
.project-filter {
  border: 1px solid rgba(143,150,255,.18);
  border-radius: 999px;
  padding: .68rem 1rem;
  background: rgba(255,255,255,.82);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .78rem;
  box-shadow: 0 12px 28px rgba(42,2,10,.08);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.project-filter:hover, .project-filter.is-active {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, #2A020A, #8f96ff);
  box-shadow: 0 18px 38px rgba(143,150,255,.24);
}
.project-showcase-grid {
  width: min(100% - 3rem, 1480px) !important;
  max-width: 1480px !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  gap: 1.35rem !important;
  align-items: stretch;
}
.project-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(143,150,255,.14);
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  isolation: isolate;
}
.project-showcase-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(143,150,255,.18), transparent 68%);
  z-index: -1;
}
.project-showcase-card:hover {
  transform: translateY(-10px);
  border-color: rgba(143,150,255,.42);
  box-shadow: var(--shadow-strong);
}
.project-showcase-card.is-hidden { display: none !important; }
.project-showcase-card__preview {
  position: relative;
  min-height: 210px;
  background: linear-gradient(135deg, #2A020A, #8f96ff);
  overflow: hidden;
}
.project-showcase-card__preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: saturate(.9) contrast(1.02);
  transform: scale(.995);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
  background: #fff;
}
.project-showcase-card:hover .project-showcase-card__preview iframe { transform: scale(1.02); filter: saturate(1.05) contrast(1.05); }
.project-showcase-card__shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255,255,255,.38), transparent 36%, transparent 62%, rgba(255,255,255,.18)),
    linear-gradient(to top, rgba(42,2,10,.46), transparent 52%);
  pointer-events: none;
}
.project-showcase-card__body { padding: 1.15rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.project-showcase-card__topline { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.project-showcase-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2A020A, #8f96ff);
  box-shadow: 0 14px 28px rgba(143,150,255,.24);
}
.project-showcase-card__badge {
  border-radius: 999px;
  padding: .45rem .65rem;
  color: var(--brand-periwinkle);
  background: #f0f2ff;
  font-size: .68rem;
  font-weight: 900;
}
.project-showcase-card h3 { color: var(--brand-dark); font-size: 1.15rem; margin: .2rem 0 0; }
.project-showcase-card p { color: var(--brand-muted); line-height: 1.65; font-size: .86rem; flex: 1; }
.project-showcase-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-showcase-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand-dark);
  border: 1px solid rgba(143,150,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  padding: .45rem .6rem;
  font-size: .72rem;
  font-weight: 800;
}
.project-showcase-card__actions { margin-top: auto; }
.project-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  padding: .82rem 1rem;
  border-radius: 18px;
  color: #fff !important;
  background: linear-gradient(135deg, #2A020A, #8f96ff);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(143,150,255,.24);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-open-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(143,150,255,.32); }
.featured-project-card--glow { border-color: rgba(143,150,255,.18) !important; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,246,239,.90)) !important; }
.featured-project-card--glow::after { background: radial-gradient(circle, rgba(143,150,255,.18), transparent 72%) !important; }

/* Section beauty upgrades */
.service-domain-card, .client-card, .publication-snippet-card, .blog-feature-strip article, .publication-focus-grid article, .publication-metrics article, .content-hub-strip article {
  border-color: rgba(143,150,255,.16) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,247,240,.86)) !important;
}
.service-domain-card__icon, .client-card span { background: linear-gradient(135deg, #2A020A, #8f96ff) !important; color: #fff !important; }
.client-card:hover, .service-domain-card:hover, .publication-snippet-card:hover, .blog-feature-strip article:hover, .publication-focus-grid article:hover { border-color: rgba(143,150,255,.38) !important; box-shadow: var(--shadow-strong) !important; }

/* Blog and publications periwinkle refinement */
.page-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(143,150,255,.24), transparent 24rem),
    linear-gradient(135deg, rgba(42,2,10,.96), rgba(143,150,255,.88)) !important;
  border: 1px solid rgba(143,150,255,.22) !important;
  box-shadow: var(--shadow-strong) !important;
}
.page-hero__eyebrow { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.24) !important; color: #fff4e9 !important; }
.blog-filter-panel span, .content-hub-strip article strong, .publication-metrics article strong { color: var(--brand-periwinkle) !important; }
.blog__article, .blog__post, .research-publications__item {
  border: 1px solid rgba(143,150,255,.16) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,240,.88)) !important;
  box-shadow: var(--shadow-soft) !important;
}
.blog__article:hover, .blog__post:hover, .research-publications__item:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow-strong) !important; border-color: rgba(143,150,255,.35) !important; }
.blog__photo { border-color: var(--brand-periwinkle) !important; }
.blog__read-more, .research-publications__link, .publication-card__action, .publication-inline-link { color: var(--brand-periwinkle) !important; }
.modal__content, .modal-content { border: 1px solid rgba(143,150,255,.20) !important; border-radius: 28px !important; box-shadow: var(--shadow-strong) !important; }
.modal__close, .modal-close { color: var(--brand-periwinkle) !important; }

@media screen and (max-width: 768px) {
  .project-showcase-grid { width: min(100% - 1.2rem, 100%) !important; }
  .project-showcase-card__preview { min-height: 190px; }
  .taught-by-section .scroller { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .institution-card { min-height: 152px !important; }
}
@media screen and (max-width: 460px) {
  .taught-by-section .scroller { grid-template-columns: 1fr !important; }
}

/* ===== Pure periwinkle refinement + compact taught-by grid =====
   Removes the mixed black/periwinkle gradient look while preserving the modern periwinkle identity. */
:root {
  --brand-periwinkle: #8f96ff;
  --brand-periwinkle-soft: #f0f2ff;
  --brand-periwinkle-mid: #aeb3ff;
  --brand-periwinkle-deep: #5159c9;
  --brand-brown: #8f96ff;
  --brand-dark: #1f160f;
  --brand-line: rgba(143, 150, 255, .18);
  --first-color: #8f96ff;
  --second-color: #1f160f;
}

body.portfolio-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(143, 150, 255, .12), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(143, 150, 255, .08), transparent 26rem),
    linear-gradient(180deg, #fffdfb 0%, #ffffff 36%, #fff6ee 100%) !important;
}

.scroll-progress span,
.nav__link::after,
.active::after,
.section-title::after,
.pricing__card::before,
.timeline:before,
.timeline li .timeline-badge,
.institution-card::before,
.service-domain-card::before,
.portfolio-pulse__item::before {
  background: #8f96ff !important;
  background-image: none !important;
}

.home__title-color,
.page-hero h1 span,
.footer__title span {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #8f96ff !important;
}

.button,
.contact__button,
.join-button,
.subscribe__button,
.pricing__card button,
.blog__read-more,
.project-open-btn,
.project-filter:hover,
.project-filter.is-active,
.project-showcase-card__preview,
.project-showcase-card__icon,
.service-domain-card__icon,
.client-card span,
.research-publications__icon,
.back-to-top,
.contact__intro,
.portfolio-cta,
.footer {
  background: #8f96ff !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(143, 150, 255, .22) !important;
}

.button:hover,
.contact__button:hover,
.join-button:hover,
.subscribe__button:hover,
.pricing__card button:hover,
.project-open-btn:hover,
.blog__read-more:hover,
.back-to-top:hover {
  background: #5159c9 !important;
  background-image: none !important;
  box-shadow: 0 22px 52px rgba(143, 150, 255, .32) !important;
}

.button--ghost,
.portfolio-cta__button {
  background: #ffffff !important;
  background-image: none !important;
  color: #8f96ff !important;
  border: 1px solid rgba(143, 150, 255, .22) !important;
  box-shadow: 0 14px 34px rgba(143, 150, 255, .12) !important;
}

.page-hero {
  background: #8f96ff !important;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.22), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.16), transparent 18rem) !important;
  border-color: rgba(255,255,255,.18) !important;
}
.page-hero h1,
.page-hero p,
.page-hero__eyebrow { color: #ffffff !important; }
.page-hero__eyebrow {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.28) !important;
}

.contact__intro::after,
.portfolio-cta::after,
.footer::before {
  background: radial-gradient(circle, rgba(255,255,255,.20), transparent 70%) !important;
}
.contact__quick-card,
.contact__availability-strip,
.portfolio-cta__eyebrow,
.footer__quicklinks a {
  background: rgba(255,255,255,.13) !important;
  border-color: rgba(255,255,255,.24) !important;
}
.contact__quick-card:hover,
.footer__quicklinks a:hover {
  background: rgba(255,255,255,.20) !important;
}

.service-domain-card,
.client-card,
.publication-snippet-card,
.blog-feature-strip article,
.publication-focus-grid article,
.publication-metrics article,
.content-hub-strip article,
.blog__article,
.blog__post,
.research-publications__item,
.featured-project-card,
.project-showcase-card,
.pricing__card,
.thoughts__card,
.learning-path__step,
.about__container,
.skills__container,
.contact__container {
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(143,150,255,.16) !important;
}

.service-domain-card--featured,
.publication-snippet-card--featured,
.featured-project-card--glow,
.taught-by__intro,
.institution-card {
  background: #f7f8ff !important;
  background-image: none !important;
}

.project-showcase-card__shine {
  background: linear-gradient(140deg, rgba(255,255,255,.36), transparent 38%, transparent 62%, rgba(255,255,255,.18)) !important;
}
.project-filter {
  background: #ffffff !important;
  color: #1f160f !important;
}
.project-filter:hover,
.project-filter.is-active { color: #ffffff !important; }

.home__social-icon:hover,
.hero__eyebrow,
.hero__availability,
.project-chip,
.project-filter-bar span,
.about__badges span,
.skills__stack-cloud span,
.taught-by__eyebrow,
.featured-project-card__label,
.project-showcase-card__badge,
.publication-snippet-card__type,
.blog-filter-panel span,
.research-publications__tag {
  background: #f0f2ff !important;
  color: #8f96ff !important;
  border-color: rgba(143,150,255,.16) !important;
}

@media screen and (max-width: 767px) {
  .nav__menu { background: #8f96ff !important; background-image: none !important; }
  .nav__menu .nav__link { color: #ffffff !important; }
}

/* Compact full-width Taught By grid: 8 items display as a clean 4 x 2 grid on desktop. */
.taught-by-section {
  padding-block: 4rem !important;
}
.taught-by__wrap {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: min(100% - 3rem, 1380px) !important;
  max-width: 1380px !important;
}
.taught-by__intro {
  display: grid !important;
  grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr) !important;
  gap: 1.2rem !important;
  align-items: center !important;
  padding: 1.25rem 1.35rem !important;
  border-radius: 26px !important;
}
.taught-by__intro h3 { margin-bottom: .45rem !important; }
.taught-by__intro p { margin: 0 !important; }
.taught-by__mini-list {
  margin-top: 0 !important;
  justify-content: flex-start !important;
  align-content: center !important;
}
.taught-by-section .institution-logos {
  width: 100% !important;
  max-width: 1380px !important;
  margin-inline: auto !important;
  padding: 1rem !important;
  border-radius: 28px !important;
}
.taught-by-section .scroller {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: .95rem !important;
  width: 100% !important;
  transform: none !important;
  white-space: normal !important;
  animation: none !important;
}
.institution-card {
  min-height: 132px !important;
  padding: .95rem !important;
  border-radius: 22px !important;
}
.institution-card img {
  max-height: 48px !important;
  max-width: 108px !important;
  margin-bottom: .55rem !important;
}
.institution-card--icon i {
  font-size: 2rem !important;
  margin-bottom: .45rem !important;
}
.institution-card span { font-size: .76rem !important; }
.institution-card small { font-size: .65rem !important; line-height: 1.35 !important; }

@media screen and (max-width: 992px) {
  .taught-by__intro { grid-template-columns: 1fr !important; }
  .taught-by-section .scroller { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media screen and (max-width: 680px) {
  .taught-by__wrap, .taught-by-section .institution-logos { width: min(100% - 1.2rem, 100%) !important; }
  .taught-by-section .scroller { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .institution-card { min-height: 126px !important; }
}

/* ===== Readability refinement pass: brighter backgrounds, stronger contrast =====
   Keeps the pure periwinkle identity, but makes every bright section easier to read. */
:root {
  --readable-ink: #1f160f;
  --readable-body: #4f3c32;
  --readable-muted: #6a554b;
  --readable-periwinkle-text: #5159c9;
  --readable-periwinkle-soft: #f0f2ff;
  --readable-border: rgba(143, 150, 255, .20);
}

body.portfolio-page {
  color: var(--readable-ink) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(143, 150, 255, .10), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(143, 150, 255, .07), transparent 24rem),
    linear-gradient(180deg, #fffdfb 0%, #ffffff 42%, #fff8f2 100%) !important;
}

body.portfolio-page h1,
body.portfolio-page h2,
body.portfolio-page h3,
body.portfolio-page h4,
body.portfolio-page strong,
body.portfolio-page .section-title,
body.portfolio-page .home__title,
body.portfolio-page .about__subtitle,
body.portfolio-page .skills__subtitle,
body.portfolio-page .timeline-title,
body.portfolio-page .blog__title,
body.portfolio-page .research-publications__title,
body.portfolio-page .project-showcase-card h3,
body.portfolio-page .service-domain-card h3,
body.portfolio-page .client-card h3,
body.portfolio-page .publication-snippet-card h3,
body.portfolio-page .pricing__card h3,
body.portfolio-page .taught-by__intro h3 {
  color: var(--readable-ink) !important;
}

body.portfolio-page p,
body.portfolio-page li,
body.portfolio-page small,
body.portfolio-page .section-kicker,
body.portfolio-page .hero__summary,
body.portfolio-page .skills__text,
body.portfolio-page .about__text,
body.portfolio-page .project-showcase-card p,
body.portfolio-page .service-domain-card p,
body.portfolio-page .client-card p,
body.portfolio-page .publication-snippet-card p,
body.portfolio-page .blog__excerpt,
body.portfolio-page .research-publications__description,
body.portfolio-page .pricing__card p,
body.portfolio-page .taught-by__intro p,
body.portfolio-page .portfolio-pulse__item span,
body.portfolio-page .content-hub-strip span,
body.portfolio-page .publication-metrics span {
  color: var(--readable-body) !important;
}

body.portfolio-page .home__title-color,
body.portfolio-page .thoughts__author,
body.portfolio-page .research-publications__link,
body.portfolio-page .research-publications__download,
body.portfolio-page .publication-inline-link,
body.portfolio-page .nav__link:hover,
body.portfolio-page .nav__link.active,
body.portfolio-page .home__social-icon:hover,
body.portfolio-page .contact__info-item i,
body.portfolio-page .skills__icon,
body.portfolio-page .pulse-dot + span,
body.portfolio-page .modal__close,
body.portfolio-page .modal-close {
  color: var(--readable-periwinkle-text) !important;
}

body.portfolio-page .hero__eyebrow,
body.portfolio-page .hero__availability,
body.portfolio-page .home__social-icon,
body.portfolio-page .project-chip,
body.portfolio-page .project-filter-bar span,
body.portfolio-page .about__badges span,
body.portfolio-page .skills__stack-cloud span,
body.portfolio-page .taught-by__eyebrow,
body.portfolio-page .taught-by__mini-list span,
body.portfolio-page .featured-project-card__label,
body.portfolio-page .project-showcase-card__badge,
body.portfolio-page .project-showcase-card__meta span,
body.portfolio-page .publication-snippet-card__type,
body.portfolio-page .blog-filter-panel span,
body.portfolio-page .research-publications__tag,
body.portfolio-page .page-hero__eyebrow {
  background: var(--readable-periwinkle-soft) !important;
  color: var(--readable-periwinkle-text) !important;
  border-color: var(--readable-border) !important;
}

body.portfolio-page .service-domain-card,
body.portfolio-page .client-card,
body.portfolio-page .publication-snippet-card,
body.portfolio-page .blog-feature-strip article,
body.portfolio-page .publication-focus-grid article,
body.portfolio-page .publication-metrics article,
body.portfolio-page .content-hub-strip article,
body.portfolio-page .blog__article,
body.portfolio-page .blog__post,
body.portfolio-page .research-publications__item,
body.portfolio-page .featured-project-card,
body.portfolio-page .project-showcase-card,
body.portfolio-page .pricing__card,
body.portfolio-page .thoughts__card,
body.portfolio-page .learning-path__step,
body.portfolio-page .about__container,
body.portfolio-page .skills__container,
body.portfolio-page .contact__container,
body.portfolio-page .contact__panel,
body.portfolio-page .institution-logos {
  background: #ffffff !important;
  color: var(--readable-ink) !important;
  border: 1px solid var(--readable-border) !important;
}

body.portfolio-page .institution-card,
body.portfolio-page .taught-by__intro,
body.portfolio-page .service-domain-card--featured,
body.portfolio-page .publication-snippet-card--featured,
body.portfolio-page .featured-project-card--glow {
  background: #fff8f2 !important;
  color: var(--readable-ink) !important;
}

/* Pure-periwinkle components now use dark text for stronger contrast on bright periwinkle. */
body.portfolio-page .button,
body.portfolio-page .contact__button,
body.portfolio-page .join-button,
body.portfolio-page .subscribe__button,
body.portfolio-page .pricing__card button,
body.portfolio-page .blog__read-more,
body.portfolio-page .project-open-btn,
body.portfolio-page .project-filter:hover,
body.portfolio-page .project-filter.is-active,
body.portfolio-page .back-to-top,
body.portfolio-page .portfolio-cta__eyebrow,
body.portfolio-page .service-domain-card__icon,
body.portfolio-page .client-card span,
body.portfolio-page .research-publications__icon,
body.portfolio-page .project-showcase-card__icon,
body.portfolio-page .timeline li .timeline-badge {
  background: #8f96ff !important;
  background-image: none !important;
  color: var(--readable-ink) !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

body.portfolio-page .button i,
body.portfolio-page .contact__button i,
body.portfolio-page .join-button i,
body.portfolio-page .subscribe__button i,
body.portfolio-page .pricing__card button i,
body.portfolio-page .blog__read-more i,
body.portfolio-page .project-open-btn i,
body.portfolio-page .back-to-top i,
body.portfolio-page .service-domain-card__icon i,
body.portfolio-page .research-publications__icon i,
body.portfolio-page .project-showcase-card__icon i {
  color: var(--readable-ink) !important;
}

body.portfolio-page .button:hover,
body.portfolio-page .contact__button:hover,
body.portfolio-page .join-button:hover,
body.portfolio-page .subscribe__button:hover,
body.portfolio-page .pricing__card button:hover,
body.portfolio-page .blog__read-more:hover,
body.portfolio-page .project-open-btn:hover,
body.portfolio-page .back-to-top:hover {
  background: #bd4e17 !important;
  color: var(--readable-ink) !important;
}

body.portfolio-page .button--ghost,
body.portfolio-page .portfolio-cta__button,
body.portfolio-page .publication-inline-link,
body.portfolio-page .research-publications__download {
  background: #ffffff !important;
  color: var(--readable-periwinkle-text) !important;
  border-color: var(--readable-border) !important;
}

/* Periwinkle feature bands: keep the periwinkle brand, but avoid white text disappearing on the bright surface. */
body.portfolio-page .page-hero,
body.portfolio-page .contact__intro,
body.portfolio-page .portfolio-cta,
body.portfolio-page .footer {
  background: #8f96ff !important;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(255,255,255,.20), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.16), transparent 16rem) !important;
  color: var(--readable-ink) !important;
}

body.portfolio-page .page-hero h1,
body.portfolio-page .page-hero p,
body.portfolio-page .contact__intro h3,
body.portfolio-page .contact__intro p,
body.portfolio-page .portfolio-cta h2,
body.portfolio-page .portfolio-cta p,
body.portfolio-page .footer__title,
body.portfolio-page .footer__copy,
body.portfolio-page .footer__quicklinks a,
body.portfolio-page .footer__icon,
body.portfolio-page .contact__eyebrow,
body.portfolio-page .contact__quick-card,
body.portfolio-page .contact__quick-card span,
body.portfolio-page .contact__quick-card strong,
body.portfolio-page .contact__availability-strip {
  color: var(--readable-ink) !important;
}

body.portfolio-page .contact__quick-card,
body.portfolio-page .contact__availability-strip,
body.portfolio-page .footer__quicklinks a,
body.portfolio-page .contact__eyebrow {
  background: rgba(255,255,255,.34) !important;
  border-color: rgba(31,22,15,.16) !important;
}

body.portfolio-page .contact__quick-card i {
  background: rgba(255,255,255,.48) !important;
  color: var(--readable-ink) !important;
}

body.portfolio-page .footer__quicklinks a:hover,
body.portfolio-page .contact__quick-card:hover {
  background: rgba(255,255,255,.52) !important;
}

body.portfolio-page .contact__input,
body.portfolio-page .subscribe__input,
body.portfolio-page .contact__select,
body.portfolio-page .contact__textarea {
  background: #ffffff !important;
  color: var(--readable-ink) !important;
  border-color: var(--readable-border) !important;
}

body.portfolio-page .contact__input::placeholder,
body.portfolio-page .subscribe__input::placeholder,
body.portfolio-page textarea::placeholder {
  color: #7b655b !important;
  opacity: 1 !important;
}

body.portfolio-page .modal__content,
body.portfolio-page .modal-content,
body.portfolio-page #docIframe {
  background: #ffffff !important;
  color: var(--readable-ink) !important;
}

body.portfolio-page .modal__body,
body.portfolio-page .modal__body p,
body.portfolio-page .modal__body li {
  color: var(--readable-body) !important;
}

/* Compact but clearer taught-by cards. */
body.portfolio-page .taught-by-section .scroller {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
body.portfolio-page .institution-card {
  min-height: 138px !important;
  border-color: rgba(143,150,255,.18) !important;
  box-shadow: 0 12px 30px rgba(42, 2, 10, .07) !important;
}
body.portfolio-page .institution-card span {
  color: var(--readable-ink) !important;
}
body.portfolio-page .institution-card small {
  color: var(--readable-body) !important;
}

@media screen and (max-width: 992px) {
  body.portfolio-page .taught-by-section .scroller {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media screen and (max-width: 680px) {
  body.portfolio-page .taught-by-section .scroller {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media screen and (max-width: 460px) {
  body.portfolio-page .taught-by-section .scroller {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Portfolio interest sections implementation phase =====
   Adds case studies, impact, innovation lab, testimonials, resources, booking direction and FAQ. */
.impact-strip,
.tech-stack-section,
.why-work-section,
.testimonials-section,
.case-studies-section,
.innovation-lab-section,
.resource-hub-section,
.consultation-section,
.faq-section {
  padding-block: 4.8rem;
}

.impact-strip__grid,
.tech-stack-grid,
.why-work-grid,
.testimonials-grid,
.case-study-grid,
.innovation-lab-grid,
.resource-grid,
.consultation-grid {
  gap: 1rem;
  align-items: stretch;
}

.impact-strip__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-card,
.tech-stack-card,
.why-work-grid article,
.testimonial-card,
.case-study-card,
.innovation-lab-grid article,
.resource-card,
.consultation-grid article,
.faq-list details,
.project-category-map article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--readable-border) !important;
  border-radius: 28px;
  background: #ffffff !important;
  color: var(--readable-ink) !important;
  box-shadow: 0 18px 48px rgba(42, 2, 10, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.impact-card:hover,
.tech-stack-card:hover,
.why-work-grid article:hover,
.testimonial-card:hover,
.case-study-card:hover,
.innovation-lab-grid article:hover,
.resource-card:hover,
.consultation-grid article:hover,
.faq-list details:hover,
.project-category-map article:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 78px rgba(42, 2, 10, .14);
  border-color: rgba(143, 150, 255, .34) !important;
}

.impact-card {
  min-height: 175px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff, #fff8f2) !important;
}
.impact-card::before,
.tech-stack-card::before,
.why-work-grid article::before,
.testimonial-card::before,
.case-study-card::before,
.innovation-lab-grid article::before,
.resource-card::before,
.consultation-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: #8f96ff;
}
.impact-card strong {
  color: #8f96ff !important;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  letter-spacing: -.07em;
  line-height: 1;
}
.impact-card span {
  color: var(--readable-body) !important;
  line-height: 1.65;
  font-weight: 650;
  font-size: .9rem;
}

.tech-stack-grid,
.why-work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tech-stack-card,
.why-work-grid article,
.innovation-lab-grid article,
.resource-card,
.consultation-grid article {
  padding: 1.25rem;
  min-height: 260px;
}
.tech-stack-card i,
.why-work-grid article i,
.innovation-lab-grid article i,
.resource-card i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #8f96ff !important;
  color: var(--readable-ink) !important;
  font-size: 1.45rem;
  margin-bottom: 1rem;
  box-shadow: 0 16px 34px rgba(143, 150, 255, .22);
}
.tech-stack-card h3,
.why-work-grid article h3,
.innovation-lab-grid article h3,
.resource-card h3,
.consultation-grid article h3,
.case-study-card h3,
.testimonial-card strong {
  color: var(--readable-ink) !important;
}
.tech-stack-card p,
.why-work-grid article p,
.innovation-lab-grid article p,
.resource-card p,
.consultation-grid article p,
.case-study-card p,
.testimonial-card p,
.faq-list details p {
  color: var(--readable-body) !important;
  line-height: 1.72;
}
.tech-stack-card div {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.tech-stack-card span,
.case-study-card__tag,
.case-study-card__detail strong,
.consultation-grid article span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: .42rem .65rem;
  border-radius: 999px;
  background: #f0f2ff !important;
  color: #5159c9 !important;
  border: 1px solid var(--readable-border) !important;
  font-size: .72rem;
  font-weight: 900;
}

.project-category-map {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.8rem;
}
.project-category-map article {
  min-height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem .8rem;
  background: #fff8f2 !important;
}
.project-category-map i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #8f96ff !important;
  color: var(--readable-ink) !important;
  font-size: 1.25rem;
}
.project-category-map span {
  color: var(--readable-ink) !important;
  font-weight: 900;
  font-size: .74rem;
  line-height: 1.25;
}

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.testimonial-card {
  padding: 1.35rem;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff !important;
}
.testimonial-card--featured {
  background: #fff8f2 !important;
}
.testimonial-card__quote {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #8f96ff;
  color: var(--readable-ink);
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
}
.testimonial-card span {
  display: block;
  color: var(--readable-muted) !important;
  font-size: .8rem;
  margin-top: .25rem;
}

.case-study-grid {
  grid-template-columns: 1.15fr .925fr .925fr;
}
.case-study-card {
  padding: 1.35rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  background: #ffffff !important;
}
.case-study-card--primary {
  background: #fff8f2 !important;
}
.case-study-card__detail {
  display: grid;
  gap: .45rem;
  padding: .9rem;
  border-radius: 18px;
  background: #fffdfb;
  border: 1px solid rgba(143,150,255,.14);
}
.case-study-card__detail span {
  color: var(--readable-body) !important;
  line-height: 1.58;
  font-size: .88rem;
}
.case-study-card__link,
.resource-card a,
.consultation-grid article a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: fit-content;
  padding: .82rem 1rem;
  border-radius: 999px;
  background: #8f96ff !important;
  color: var(--readable-ink) !important;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(143, 150, 255, .20);
}
.case-study-card__link:hover,
.resource-card a:hover,
.consultation-grid article a:hover {
  background: #5159c9 !important;
  color: var(--readable-ink) !important;
}

.innovation-lab-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.innovation-lab-grid article {
  min-height: 245px;
  background: #ffffff !important;
}
.innovation-lab-grid article:nth-child(even) {
  background: #fff8f2 !important;
}

.resource-grid,
.consultation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.resource-card,
.consultation-grid article {
  min-height: 285px;
  display: flex;
  flex-direction: column;
}
.consultation-grid article span {
  width: 44px;
  height: 44px;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.faq-list {
  width: min(100% - 3rem, 1060px) !important;
  max-width: 1060px !important;
  gap: .8rem;
}
.faq-list details {
  padding: 1rem 1.15rem;
  background: #ffffff !important;
}
.faq-list summary {
  cursor: pointer;
  color: var(--readable-ink) !important;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f2ff;
  color: #5159c9;
  border: 1px solid var(--readable-border);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: .85rem 0 0; }

/* Make new sections readable when ScrollReveal applies transforms. */
.impact-card,
.tech-stack-card,
.why-work-grid article,
.testimonial-card,
.case-study-card,
.innovation-lab-grid article,
.resource-card,
.consultation-grid article,
.faq-list details,
.project-category-map article {
  will-change: transform;
}

@media screen and (max-width: 1180px) {
  .impact-strip__grid,
  .tech-stack-grid,
  .why-work-grid,
  .project-category-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-study-grid,
  .innovation-lab-grid,
  .resource-grid,
  .consultation-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-study-card--primary {
    grid-column: span 2;
  }
}
@media screen and (max-width: 767px) {
  .impact-strip,
  .tech-stack-section,
  .why-work-section,
  .testimonials-section,
  .case-studies-section,
  .innovation-lab-section,
  .resource-hub-section,
  .consultation-section,
  .faq-section {
    padding-block: 3.2rem;
  }
  .impact-strip__grid,
  .tech-stack-grid,
  .why-work-grid,
  .project-category-map,
  .case-study-grid,
  .innovation-lab-grid,
  .resource-grid,
  .consultation-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .case-study-card--primary {
    grid-column: auto;
  }
  .case-study-card,
  .tech-stack-card,
  .why-work-grid article,
  .innovation-lab-grid article,
  .resource-card,
  .consultation-grid article {
    min-height: auto;
  }
  .faq-list {
    width: min(100% - 1.4rem, 100%) !important;
  }
}

/* Keep the expanded navigation from feeling cramped after adding case studies and FAQ. */
@media screen and (min-width: 768px) {
  .nav__list { gap: clamp(.55rem, 1vw, 1.05rem) !important; }
  .nav__item { margin-left: 0 !important; }
  .nav__link { font-size: clamp(.72rem, .72vw, .88rem) !important; }
}


/* ===== Professional refinement pass: cleaner periwinkle, business wording, balanced layouts ===== */
:root {
  --brand-periwinkle: #8f96ff;
  --brand-periwinkle-soft: #f4f5ff;
  --brand-periwinkle-line: rgba(143,150,255, .18);
  --brand-dark: #1e1915;
  --brand-ink: #24201d;
  --brand-muted: #62554d;
  --readable-ink: #24201d;
  --readable-body: #51463f;
  --readable-muted: #756961;
  --readable-periwinkle-text: #5159c9;
  --readable-periwinkle-soft: #f4f5ff;
  --readable-border: rgba(143,150,255, .20);
  --shadow-soft: 0 16px 45px rgba(54, 38, 26, .08);
  --shadow-strong: 0 26px 70px rgba(54, 38, 26, .13);
}

body.portfolio-page {
  background: linear-gradient(180deg, #fbfbff 0%, #ffffff 38%, #f7f8ff 100%) !important;
}
body.portfolio-page::before { opacity: .18 !important; }
.scroll-progress span,
.section-title::after,
.pricing__card::before,
.timeline:before,
.service-domain-card::before,
.impact-card::before,
.tech-stack-card::before,
.why-work-grid article::before,
.testimonial-card::before,
.case-study-card::before,
.innovation-lab-grid article::before,
.resource-card::before,
.consultation-grid article::before {
  background: var(--brand-periwinkle) !important;
  background-image: none !important;
}

/* The old design had several decorative gradients. This pass keeps periwinkle as the accent but makes cards feel hand-crafted and clean. */
body.portfolio-page .section,
body.portfolio-page .work,
body.portfolio-page .skills,
body.portfolio-page .about,
body.portfolio-page .impact-strip,
body.portfolio-page .tech-stack-section,
body.portfolio-page .why-work-section,
body.portfolio-page .testimonials-section,
body.portfolio-page .case-studies-section,
body.portfolio-page .innovation-lab-section,
body.portfolio-page .resource-hub-section,
body.portfolio-page .consultation-section,
body.portfolio-page .faq-section {
  background-image: none !important;
}

.section-title {
  letter-spacing: -.035em;
}
.section-kicker {
  max-width: 760px !important;
  margin-inline: auto !important;
  line-height: 1.75 !important;
  font-size: .98rem !important;
}

/* Skills section: replaces the long paragraph with a neat capability matrix. */
.skills__container.bd-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .75fr) minmax(230px, .75fr) minmax(230px, .75fr) !important;
  align-items: start !important;
  gap: 1rem !important;
}
.skills-capability-panel {
  grid-row: span 3;
  padding: 1.25rem !important;
  border-radius: 28px;
  background: #fff !important;
  border: 1px solid var(--readable-border) !important;
  box-shadow: var(--shadow-soft);
}
.skills-capability-header {
  max-width: 760px;
  margin-bottom: 1rem;
}
.skills-capability-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: var(--readable-periwinkle-soft) !important;
  color: var(--readable-periwinkle-text) !important;
  border: 1px solid var(--readable-border) !important;
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.skills-capability-header h3 {
  color: var(--readable-ink) !important;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: .55rem;
}
.skills-capability-header p {
  color: var(--readable-body) !important;
  line-height: 1.72;
  max-width: 900px;
}
.skills-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}
.skills-capability-grid article {
  min-height: 170px;
  padding: 1rem;
  border-radius: 20px;
  background: #fffdfb !important;
  border: 1px solid rgba(143,150,255, .16);
  box-shadow: 0 10px 26px rgba(54, 38, 26, .05);
}
.skills-capability-grid article span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-periwinkle) !important;
  color: #fff !important;
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: .8rem;
}
.skills-capability-grid article h4 {
  color: var(--readable-ink) !important;
  font-size: .95rem;
  line-height: 1.35;
  margin-bottom: .5rem;
}
.skills-capability-grid article p {
  color: var(--readable-body) !important;
  line-height: 1.58;
  font-size: .83rem;
}
.skills__stack-cloud {
  margin-top: .75rem !important;
  justify-content: flex-start !important;
}
.skills__stack-cloud span {
  background: #f4f5ff !important;
  color: #a84611 !important;
  border: 1px solid rgba(143,150,255,.18) !important;
}
.skills__data {
  min-height: 62px;
  border-color: rgba(143,150,255,.16) !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(54,38,26,.055) !important;
}
.skills__bar { background: var(--brand-periwinkle) !important; }
.skills__percentage { color: var(--readable-periwinkle-text) !important; }

/* Business-centered case study cards. */
.case-study-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.1rem !important;
}
.case-study-card {
  min-height: 435px !important;
  padding: 1.25rem !important;
  border-radius: 26px !important;
  background: #ffffff !important;
}
.case-study-card--primary { background: #fffdfb !important; }
.case-study-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem) !important;
  letter-spacing: -.025em;
}
.case-study-card p { font-size: .92rem !important; }
.case-study-card__detail {
  background: #fffdfb !important;
  border-color: rgba(143,150,255,.15) !important;
}
.case-study-card__tag,
.case-study-card__detail strong {
  color: #a84611 !important;
}
.case-study-card__link,
.resource-card a,
.consultation-grid article a,
.project-open-btn,
.blog__read-more,
.button,
.contact__button,
.join-button,
.subscribe__button,
.pricing__card button {
  background: var(--brand-periwinkle) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(143,150,255, .24) !important;
}
.case-study-card__link i,
.project-open-btn i,
.blog__read-more i,
.button i,
.contact__button i,
.join-button i,
.subscribe__button i { color: #fff !important; }
.case-study-card__link:hover,
.resource-card a:hover,
.consultation-grid article a:hover,
.project-open-btn:hover,
.blog__read-more:hover,
.button:hover,
.contact__button:hover,
.join-button:hover,
.subscribe__button:hover,
.pricing__card button:hover {
  background: #d95c1d !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Business innovation section: less experimental, more strategic. */
.innovation-lab-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.1rem !important;
}
.innovation-lab-grid article {
  min-height: 255px !important;
  background: #ffffff !important;
  border-radius: 26px !important;
}
.innovation-lab-grid article:nth-child(even) { background: #fffdfb !important; }
.innovation-lab-grid article i,
.tech-stack-card i,
.why-work-grid article i,
.resource-card i,
.project-category-map i,
.testimonial-card__quote,
.service-domain-card__icon,
.client-card span,
.research-publications__icon,
.project-showcase-card__icon,
.timeline li .timeline-badge {
  background: var(--brand-periwinkle) !important;
  color: #fff !important;
  background-image: none !important;
}
.innovation-lab-grid article i::before,
.tech-stack-card i::before,
.why-work-grid article i::before,
.resource-card i::before,
.project-category-map i::before,
.service-domain-card__icon i,
.project-showcase-card__icon i { color: #fff !important; }

/* Professional FAQ with better readability and spacing. */
.faq-list {
  width: min(100% - 3rem, 1120px) !important;
  max-width: 1120px !important;
  gap: .9rem !important;
}
.faq-list details {
  padding: 1.05rem 1.2rem !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(54,38,26,.06) !important;
}
.faq-list summary {
  font-size: .98rem !important;
  line-height: 1.35;
}
.faq-list summary::after {
  background: var(--brand-periwinkle) !important;
  color: #fff !important;
  border: 0 !important;
}
.faq-list details p {
  max-width: 920px;
  line-height: 1.75 !important;
}

/* General design control: cleaner cards, fewer artificial effects, stronger spacing. */
.impact-card,
.tech-stack-card,
.why-work-grid article,
.testimonial-card,
.case-study-card,
.innovation-lab-grid article,
.resource-card,
.consultation-grid article,
.faq-list details,
.project-category-map article,
.project-showcase-card,
.featured-project-card,
.service-domain-card,
.client-card,
.publication-snippet-card,
.blog__article,
.research-publications__item,
.pricing__card,
.thoughts__card,
.institution-card {
  box-shadow: 0 14px 38px rgba(54, 38, 26, .075) !important;
  border-color: rgba(143,150,255,.15) !important;
}
.impact-card:hover,
.tech-stack-card:hover,
.why-work-grid article:hover,
.testimonial-card:hover,
.case-study-card:hover,
.innovation-lab-grid article:hover,
.resource-card:hover,
.consultation-grid article:hover,
.faq-list details:hover,
.project-category-map article:hover,
.project-showcase-card:hover,
.featured-project-card:hover,
.service-domain-card:hover,
.client-card:hover,
.publication-snippet-card:hover,
.blog__article:hover,
.research-publications__item:hover,
.pricing__card:hover,
.thoughts__card:hover,
.institution-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 22px 58px rgba(54, 38, 26, .12) !important;
}
.project-showcase-card__shine,
.project-showcase-card::before,
.blog__article::after,
.research-publications__item::after,
.thoughts__card::before {
  display: none !important;
}
.featured-project-card--glow,
.service-domain-card--featured,
.publication-snippet-card--featured,
.testimonial-card--featured {
  background: #fffdfb !important;
}
.page-hero,
.contact__intro,
.portfolio-cta,
.footer {
  background: var(--brand-periwinkle) !important;
  background-image: none !important;
  color: #fff !important;
}
.page-hero h1,
.page-hero p,
.contact__intro h3,
.contact__intro p,
.portfolio-cta h2,
.portfolio-cta p,
.footer__title,
.footer__copy,
.footer__quicklinks a,
.footer__icon,
.contact__eyebrow,
.contact__quick-card,
.contact__quick-card span,
.contact__quick-card strong,
.contact__availability-strip {
  color: #fff !important;
}
.contact__quick-card,
.contact__availability-strip,
.footer__quicklinks a,
.contact__eyebrow {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.22) !important;
}
.contact__quick-card i { background: rgba(255,255,255,.18) !important; color: #fff !important; }
.portfolio-cta__button,
.button--ghost,
.publication-inline-link,
.research-publications__download {
  background: #fff !important;
  color: #5159c9 !important;
  border-color: rgba(143,150,255,.2) !important;
  box-shadow: 0 12px 28px rgba(54,38,26,.08) !important;
}
.portfolio-cta__button:hover,
.button--ghost:hover,
.publication-inline-link:hover,
.research-publications__download:hover {
  background: #f4f5ff !important;
  color: #9f4310 !important;
}

@media screen and (max-width: 1200px) {
  .skills__container.bd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .skills-capability-panel { grid-column: 1 / -1; grid-row: auto; }
}
@media screen and (max-width: 992px) {
  .case-study-grid,
  .innovation-lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media screen and (max-width: 767px) {
  .skills__container.bd-grid,
  .case-study-grid,
  .innovation-lab-grid { grid-template-columns: 1fr !important; }
  .skills-capability-grid { grid-template-columns: 1fr !important; }
  .case-study-card,
  .innovation-lab-grid article { min-height: auto !important; }
  .faq-list { width: min(100% - 1.4rem, 100%) !important; }
}


/* ===== Natural Card Polish + Publication Image Support =====
   Final refinement: cleaner cards, full taught-by logo set, wider skills capability grid, and publication thumbnails. */
:root {
  --portfolio-periwinkle: #8f96ff;
  --portfolio-periwinkle-dark: #5159c9;
  --portfolio-cream: #fff8f2;
  --portfolio-ink: #241f1b;
  --portfolio-body: #584a42;
  --portfolio-line: rgba(143,150,255, .16);
  --portfolio-shadow: 0 12px 34px rgba(45, 31, 23, .075);
  --portfolio-shadow-hover: 0 20px 54px rgba(45, 31, 23, .12);
}

body.portfolio-page .impact-card,
body.portfolio-page .tech-stack-card,
body.portfolio-page .why-work-grid article,
body.portfolio-page .testimonial-card,
body.portfolio-page .case-study-card,
body.portfolio-page .innovation-lab-grid article,
body.portfolio-page .resource-card,
body.portfolio-page .consultation-grid article,
body.portfolio-page .faq-list details,
body.portfolio-page .project-category-map article,
body.portfolio-page .project-showcase-card,
body.portfolio-page .featured-project-card,
body.portfolio-page .service-domain-card,
body.portfolio-page .client-card,
body.portfolio-page .publication-snippet-card,
body.portfolio-page .blog__article,
body.portfolio-page .research-publications__item,
body.portfolio-page .pricing__card,
body.portfolio-page .thoughts__card,
body.portfolio-page .institution-card {
  border-radius: 22px !important;
  border: 1px solid var(--portfolio-line) !important;
  background: #fff !important;
  box-shadow: var(--portfolio-shadow) !important;
  transform: none;
}

body.portfolio-page .impact-card:hover,
body.portfolio-page .tech-stack-card:hover,
body.portfolio-page .why-work-grid article:hover,
body.portfolio-page .testimonial-card:hover,
body.portfolio-page .case-study-card:hover,
body.portfolio-page .innovation-lab-grid article:hover,
body.portfolio-page .resource-card:hover,
body.portfolio-page .consultation-grid article:hover,
body.portfolio-page .faq-list details:hover,
body.portfolio-page .project-category-map article:hover,
body.portfolio-page .project-showcase-card:hover,
body.portfolio-page .featured-project-card:hover,
body.portfolio-page .service-domain-card:hover,
body.portfolio-page .client-card:hover,
body.portfolio-page .publication-snippet-card:hover,
body.portfolio-page .blog__article:hover,
body.portfolio-page .research-publications__item:hover,
body.portfolio-page .pricing__card:hover,
body.portfolio-page .thoughts__card:hover,
body.portfolio-page .institution-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--portfolio-shadow-hover) !important;
  border-color: rgba(143,150,255, .28) !important;
}

body.portfolio-page .impact-card::before,
body.portfolio-page .tech-stack-card::before,
body.portfolio-page .why-work-grid article::before,
body.portfolio-page .testimonial-card::before,
body.portfolio-page .case-study-card::before,
body.portfolio-page .innovation-lab-grid article::before,
body.portfolio-page .resource-card::before,
body.portfolio-page .consultation-grid article::before {
  width: 44px !important;
  height: 4px !important;
  left: 1.25rem !important;
  top: 1.1rem !important;
  right: auto !important;
  border-radius: 999px !important;
  background: var(--portfolio-periwinkle) !important;
}

body.portfolio-page .impact-card,
body.portfolio-page .tech-stack-card,
body.portfolio-page .why-work-grid article,
body.portfolio-page .testimonial-card,
body.portfolio-page .case-study-card,
body.portfolio-page .innovation-lab-grid article,
body.portfolio-page .resource-card,
body.portfolio-page .consultation-grid article {
  padding-top: 1.75rem !important;
}

/* Skills capability area: now full-width, better aligned and less cramped. */
body.portfolio-page .skills__container.bd-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
body.portfolio-page .skills-capability-panel {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  padding: clamp(1.15rem, 2.5vw, 1.8rem) !important;
  border-radius: 24px !important;
}
body.portfolio-page .skills-capability-header {
  max-width: 920px !important;
}
body.portfolio-page .skills-capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
body.portfolio-page .skills-capability-grid article {
  min-height: 220px !important;
  padding: 1.15rem !important;
  border-radius: 20px !important;
  background: #fff !important;
  border: 1px solid var(--portfolio-line) !important;
  box-shadow: 0 8px 24px rgba(45,31,23,.055) !important;
}
body.portfolio-page .skills-capability-grid article i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--portfolio-cream);
  color: var(--portfolio-periwinkle-dark);
  border: 1px solid var(--portfolio-line);
  font-size: 1.2rem;
  margin: .15rem 0 .85rem;
}
body.portfolio-page .skills-capability-grid article span {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: auto !important;
  height: auto !important;
  padding: .25rem .5rem;
  background: transparent !important;
  color: rgba(36,31,27,.35) !important;
  border: 0 !important;
  margin: 0 !important;
  font-size: .78rem;
}
body.portfolio-page .skills-capability-grid article h4 {
  font-size: 1.02rem !important;
  color: var(--portfolio-ink) !important;
}
body.portfolio-page .skills-capability-grid article p {
  color: var(--portfolio-body) !important;
  font-size: .88rem !important;
  line-height: 1.68 !important;
}

/* Taught-by logos: compact grid that displays every existing logo without long scrolling. */
body.portfolio-page .taught-by__wrap {
  grid-template-columns: .9fr 1.35fr !important;
  align-items: stretch !important;
}
body.portfolio-page .taught-by-section .scroller {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: .85rem !important;
}
body.portfolio-page .institution-card {
  min-height: 132px !important;
  padding: .95rem .75rem !important;
  background: #fff !important;
}
body.portfolio-page .institution-card img {
  max-height: 48px !important;
  max-width: 132px !important;
  object-fit: contain !important;
}
body.portfolio-page .institution-card span {
  font-size: .78rem !important;
  line-height: 1.25 !important;
}
body.portfolio-page .institution-card small {
  font-size: .66rem !important;
}

/* Publication cards with image covers. */
.publication-snippet-card--with-cover {
  display: grid !important;
  grid-template-columns: minmax(170px, .65fr) 1fr;
  gap: 1rem;
  align-items: stretch;
}
.publication-snippet-card__cover,
.research-publications__cover {
  overflow: hidden;
  border-radius: 18px;
  background: var(--portfolio-cream);
  border: 1px solid var(--portfolio-line);
}
.publication-snippet-card__cover img,
.research-publications__cover img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.publication-snippet-card:hover .publication-snippet-card__cover img,
.research-publications__item:hover .research-publications__cover img {
  transform: scale(1.025);
}
.publication-snippet-card__body {
  display: flex;
  flex-direction: column;
}
.research-publications__item {
  grid-template-columns: minmax(240px, .48fr) minmax(0, 1fr) !important;
  gap: 1.25rem !important;
  align-items: stretch !important;
  padding: 1rem !important;
}
.research-publications__content {
  padding: .45rem .25rem .45rem 0;
  display: flex;
  flex-direction: column;
}
.research-publications__cover img {
  min-height: 250px;
}
.research-publications__actions {
  margin-top: auto !important;
}

/* Keep periwinkle controlled and professional. */
body.portfolio-page .page-hero,
body.portfolio-page .contact__intro,
body.portfolio-page .portfolio-cta,
body.portfolio-page .footer {
  background: var(--portfolio-periwinkle) !important;
}
body.portfolio-page .button,
body.portfolio-page .contact__button,
body.portfolio-page .join-button,
body.portfolio-page .subscribe__button,
body.portfolio-page .pricing__card button,
body.portfolio-page .blog__read-more,
body.portfolio-page .project-open-btn,
body.portfolio-page .case-study-card__link,
body.portfolio-page .resource-card a,
body.portfolio-page .consultation-grid article a {
  background: var(--portfolio-periwinkle) !important;
  color: #fff !important;
  border: 1px solid rgba(143,150,255,.24) !important;
  box-shadow: 0 10px 24px rgba(143,150,255,.22) !important;
}
body.portfolio-page .button:hover,
body.portfolio-page .contact__button:hover,
body.portfolio-page .join-button:hover,
body.portfolio-page .subscribe__button:hover,
body.portfolio-page .pricing__card button:hover,
body.portfolio-page .blog__read-more:hover,
body.portfolio-page .project-open-btn:hover,
body.portfolio-page .case-study-card__link:hover,
body.portfolio-page .resource-card a:hover,
body.portfolio-page .consultation-grid article a:hover {
  background: #d95c1d !important;
}

@media screen and (max-width: 1100px) {
  body.portfolio-page .skills-capability-grid,
  body.portfolio-page .skills__container.bd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.portfolio-page .taught-by__wrap {
    grid-template-columns: 1fr !important;
  }
}
@media screen and (max-width: 760px) {
  body.portfolio-page .skills-capability-grid,
  body.portfolio-page .skills__container.bd-grid,
  .publication-snippet-card--with-cover,
  .research-publications__item {
    grid-template-columns: 1fr !important;
  }
  body.portfolio-page .taught-by-section .scroller {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .research-publications__content {
    padding: .25rem 0 0;
  }
}

/* ===== Skills Layout Restore =====
   Restore the previous Skills section structure. Only the Core Capabilities wording was updated. */
body.portfolio-page .skills__container.bd-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  align-items: start !important;
  gap: 1.35rem !important;
}
body.portfolio-page .skills__intro {
  position: relative !important;
  z-index: 2 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.portfolio-page .skills__text {
  color: var(--portfolio-body, #584a42) !important;
  line-height: 1.85 !important;
  margin-bottom: 1rem !important;
}
body.portfolio-page .skills__text b {
  color: var(--portfolio-ink, #241f1b) !important;
}
body.portfolio-page .skills__stack-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .55rem !important;
  justify-content: flex-start !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}
body.portfolio-page .skills__stack-cloud span {
  padding: .55rem .78rem !important;
  border-radius: 999px !important;
  background: rgba(143,150,255, .08) !important;
  border: 1px solid rgba(143,150,255, .16) !important;
  color: var(--portfolio-ink, #241f1b) !important;
  font-weight: 700 !important;
  font-size: .76rem !important;
}
body.portfolio-page .skills__stack-cloud span:nth-child(odd) {
  background: rgba(36,31,27,.045) !important;
}
@media screen and (max-width: 760px) {
  body.portfolio-page .skills__container.bd-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Core Capabilities Structured Layout Refinement ===== */
body.portfolio-page .skills__intro {
  grid-column: 1 / -1 !important;
  margin-bottom: .45rem !important;
}
body.portfolio-page .skills__core-header {
  max-width: 900px;
  margin: 0 auto 1.35rem;
  text-align: center;
}
body.portfolio-page .skills__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .55rem;
  padding: .42rem .85rem;
  border: 1px solid rgba(143,150,255, .18);
  border-radius: 999px;
  background: rgba(143,150,255, .08);
  color: #a43f12;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.portfolio-page .skills__core-header h3 {
  margin: 0 0 .45rem;
  color: var(--portfolio-ink, #241f1b);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
}
body.portfolio-page .skills__core-header p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--portfolio-body, #584a42);
  line-height: 1.75;
}
body.portfolio-page .skills__core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.35rem;
}
body.portfolio-page .skills__core-card {
  position: relative;
  min-height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(36, 31, 27, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(36, 31, 27, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
body.portfolio-page .skills__core-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #8f96ff;
  opacity: .88;
}
body.portfolio-page .skills__core-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143,150,255, .22);
  box-shadow: 0 22px 42px rgba(36, 31, 27, .10);
}
body.portfolio-page .skills__core-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}
body.portfolio-page .skills__core-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 14px;
  background: rgba(143,150,255, .10);
  color: #b14616;
  font-size: .78rem;
  font-weight: 900;
}
body.portfolio-page .skills__core-top i {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #8f96ff;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(143,150,255, .20);
}
body.portfolio-page .skills__core-card h4 {
  margin: 0 0 .55rem;
  color: var(--portfolio-ink, #241f1b);
  font-size: 1rem;
  line-height: 1.35;
}
body.portfolio-page .skills__core-card p {
  margin: 0;
  color: var(--portfolio-body, #584a42);
  font-size: .91rem;
  line-height: 1.68;
}
body.portfolio-page .skills__intro .skills__stack-cloud {
  justify-content: center !important;
  max-width: 1050px;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media screen and (max-width: 1080px) {
  body.portfolio-page .skills__core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 640px) {
  body.portfolio-page .skills__core-header { text-align: left; }
  body.portfolio-page .skills__core-grid {
    grid-template-columns: 1fr;
  }
  body.portfolio-page .skills__intro .skills__stack-cloud {
    justify-content: flex-start !important;
  }
}
