
/* Final visual refinement: brush buttons, calmer cards, compact labels, carousel sections */
:root{
  --brush-periwinkle:#8f96ff;
  --brush-periwinkle-dark:#5159c9;
  --brush-periwinkle-soft:#eef0ff;
  --brush-cream:#fafaff;
  --brush-ink:#201713;
  --brush-muted:#685b53;
  --brush-line:rgba(81,89,201,.16);
  --brush-shadow:0 16px 42px rgba(66,36,19,.10);
}

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 button.project-filter,
body.portfolio-page .blog__read-more,
body.portfolio-page .client-card__link,
body.portfolio-page .academy-mini-card a{
  position:relative !important;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  min-height:44px;
  padding:.78rem 1.18rem !important;
  border:0 !important;
  border-radius:999px 34px 999px 34px !important;
  background:transparent !important;
  color:#fff !important;
  font-weight:850 !important;
  letter-spacing:.01em;
  text-decoration:none !important;
  overflow:hidden;
  box-shadow:0 13px 28px rgba(143,150,255,.18) !important;
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
}
body.portfolio-page .button::before,
body.portfolio-page .contact__button::before,
body.portfolio-page .join-button::before,
body.portfolio-page .subscribe__button::before,
body.portfolio-page .pricing__card button::before,
body.portfolio-page button.project-filter::before,
body.portfolio-page .blog__read-more::before,
body.portfolio-page .client-card__link::before,
body.portfolio-page .academy-mini-card a::before{
  content:"";
  position:absolute;
  inset:2px 1px 3px 1px;
  z-index:-1;
  background:
    radial-gradient(circle at 14% 28%, rgba(255,255,255,.26), transparent 22%),
    linear-gradient(100deg, #9fa5ff 0%, #8f96ff 48%, #5159c9 100%);
  clip-path:polygon(4% 18%, 16% 8%, 39% 12%, 61% 3%, 82% 12%, 98% 24%, 94% 78%, 78% 88%, 55% 83%, 31% 96%, 8% 83%, 0 54%);
  border-radius:inherit;
}
body.portfolio-page .button::after,
body.portfolio-page .contact__button::after,
body.portfolio-page .join-button::after,
body.portfolio-page .subscribe__button::after,
body.portfolio-page .pricing__card button::after,
body.portfolio-page .blog__read-more::after{
  content:"";
  position:absolute;
  width:46%;
  height:170%;
  top:-45%;
  left:-65%;
  z-index:-1;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transform:rotate(18deg);
  transition:left .5s ease;
}
body.portfolio-page .button:hover::after,
body.portfolio-page .contact__button:hover::after,
body.portfolio-page .join-button:hover::after,
body.portfolio-page .subscribe__button:hover::after,
body.portfolio-page .pricing__card button:hover::after,
body.portfolio-page .blog__read-more:hover::after{left:120%;}
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 button.project-filter:hover,
body.portfolio-page .blog__read-more:hover,
body.portfolio-page .client-card__link:hover{
  transform:translateY(-3px) rotate(-.25deg) !important;
  box-shadow:0 19px 38px rgba(143,150,255,.24) !important;
  filter:saturate(1.04);
}
body.portfolio-page .button--ghost,
body.portfolio-page .button.button--ghost,
body.portfolio-page .portfolio-cta .button--ghost{
  color:var(--brush-periwinkle-dark) !important;
  box-shadow:0 10px 22px rgba(81,89,201,.09) !important;
}
body.portfolio-page .button--ghost::before,
body.portfolio-page .button.button--ghost::before,
body.portfolio-page .portfolio-cta .button--ghost::before{
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(100deg, rgba(143,150,255,.48), rgba(200,204,255,.8), rgba(143,150,255,.32)) border-box !important;
  border:1px solid transparent;
  clip-path:polygon(3% 22%, 19% 10%, 42% 14%, 67% 5%, 92% 16%, 99% 44%, 93% 80%, 72% 88%, 52% 82%, 28% 94%, 7% 80%, 0 48%);
}
body.portfolio-page .button--ghost:hover{color:#fff !important;}
body.portfolio-page .button--ghost:hover::before{background:linear-gradient(105deg,#9fa5ff,#5159c9) !important;}

/* More natural cards: lighter, crafted, less synthetic */
body.portfolio-page .cms-card,
body.portfolio-page .editorial-card,
body.portfolio-page .editorial-feature,
body.portfolio-page .project-card,
body.portfolio-page .publication-card,
body.portfolio-page .academy-course-card{
  border-radius:28px 18px 30px 20px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,255,.98)) padding-box,
    linear-gradient(135deg, rgba(143,150,255,.22), rgba(255,255,255,.9), rgba(143,150,255,.12)) border-box !important;
  border:1px solid transparent !important;
  box-shadow:0 14px 34px rgba(55,35,23,.08) !important;
  overflow:hidden;
  position:relative;
}
body.portfolio-page .cms-card:hover,
body.portfolio-page .editorial-card:hover,
body.portfolio-page .editorial-feature:hover,
body.portfolio-page .project-card:hover,
body.portfolio-page .publication-card:hover,
body.portfolio-page .academy-course-card:hover{
  transform:translateY(-5px) !important;
  box-shadow:0 22px 48px rgba(55,35,23,.13) !important;
}
body.portfolio-page .cms-card::before,
body.portfolio-page .project-card::before,
body.portfolio-page .publication-card::before,
body.portfolio-page .editorial-card::before{
  content:"";
  position:absolute;
  inset:0 auto auto 22px;
  width:76px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,var(--brush-periwinkle),transparent);
  opacity:.72;
}

/* Redesigned hero eyebrow, hero summary, and labels */
body.portfolio-page .hero__eyebrow,
body.portfolio-page .page-hero__eyebrow,
body.portfolio-page .hero__availability{
  position:relative;
  border:1px solid rgba(143,150,255,.22) !important;
  background:linear-gradient(135deg,rgba(248,249,255,.95),rgba(255,255,255,.78)) !important;
  color:var(--brush-periwinkle-dark) !important;
  border-radius:999px 28px 999px 28px !important;
  box-shadow:0 12px 28px rgba(143,150,255,.10) !important;
}
body.portfolio-page .hero__summary{
  position:relative;
  padding:1rem 1.2rem 1rem 1.35rem !important;
  border-left:5px solid var(--brush-periwinkle);
  border-radius:24px 16px 26px 16px !important;
  background:linear-gradient(135deg,rgba(250,250,255,.96),rgba(248,249,255,.86)) !important;
  color:#4d4038 !important;
  box-shadow:0 14px 36px rgba(55,35,23,.08);
}
body.portfolio-page .content-chip,
body.portfolio-page .mini-label,
body.portfolio-page .media-badge,
body.portfolio-page .client-card__sector,
body.portfolio-page .case-card__industry,
body.portfolio-page .project-card__body > span,
body.portfolio-page .publication-card span,
body.portfolio-page .academy-course-card__body span,
body.portfolio-page .resource-card span,
body.portfolio-page .tag-cloud span,
body.portfolio-page .card-engagement-summary span,
body.portfolio-page .editorial-meta span{
  border-radius:999px 22px 999px 22px !important;
  background:linear-gradient(135deg,#f0f2ff,#ffffff) !important;
  border:1px solid rgba(143,150,255,.22) !important;
  color:var(--brush-periwinkle-dark) !important;
  box-shadow:0 8px 18px rgba(143,150,255,.07);
}
body.portfolio-page .media-badge--video{background:linear-gradient(135deg,#8f96ff,#5159c9) !important;color:#fff !important;border-color:transparent !important;}

/* Core capability icons: periwinkle discs with white icons */
body.portfolio-page .skills__core-top i,
body.portfolio-page.visual-system-active .skills__core-top i,
body.portfolio-page .skills__core-card i{
  width:46px;
  height:46px;
  display:grid !important;
  place-items:center;
  border-radius:18px 12px 18px 12px;
  background:linear-gradient(135deg,#9fa5ff,#b64e1b) !important;
  color:#fff !important;
  box-shadow:0 12px 24px rgba(143,150,255,.20);
}

/* Blog video previews on homepage and main blog page */
body.portfolio-page .blog-video-preview,
body.portfolio-page .blog-video-embed{
  position:relative;
  width:100%;
  height:100%;
  min-height:210px;
  border-radius:24px 16px 24px 16px;
  overflow:hidden;
  background:#19100c;
}
body.portfolio-page .editorial-feature__image .blog-video-preview,
body.portfolio-page .editorial-card__media .blog-video-preview{min-height:100%;height:100%;}
body.portfolio-page .blog-video-preview iframe,
body.portfolio-page .blog-video-embed iframe{
  width:100%;
  height:100%;
  min-height:220px;
  border:0;
  display:block;
}
body.portfolio-page .blog-video-preview iframe{pointer-events:none;}
body.portfolio-page .blog-video-preview__hint,
body.portfolio-page .blog-card-open-overlay{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  border-radius:999px 18px 999px 18px;
  padding:.48rem .72rem;
  background:rgba(255,255,255,.90);
  color:#7a3413;
  font-weight:850;
  font-size:.78rem;
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}
body.portfolio-page .blog-card-open-overlay{right:14px;left:auto;opacity:0;transform:translateY(8px);transition:.22s ease;}
body.portfolio-page .editorial-feature__image:hover .blog-card-open-overlay,
body.portfolio-page .editorial-card__media:hover .blog-card-open-overlay{opacity:1;transform:translateY(0);}
body.portfolio-page .editorial-feature__image,
body.portfolio-page .editorial-card__media,
body.portfolio-page .blog__header{position:relative;overflow:hidden;}
body.portfolio-page .editorial-feature__image::after,
body.portfolio-page .editorial-card__media::after,
body.portfolio-page .blog__header::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:42%;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.18));
  pointer-events:none;
}

/* Taught By and Clients: single-line auto-scrolling carousels */
body.portfolio-page .logo-carousel-shell{
  position:relative;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 46px;
  align-items:center;
  gap:.85rem;
  max-width:1320px;
}
body.portfolio-page .logo-carousel-viewport{
  overflow:hidden;
  border-radius:30px;
  padding:.5rem .15rem;
  mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
}
body.portfolio-page .logo-carousel-track{
  display:flex;
  flex-wrap:nowrap;
  gap:1rem;
  align-items:stretch;
  will-change:scroll-position;
}
body.portfolio-page .logo-scroll-card{
  flex:0 0 205px;
  min-width:205px;
  margin:0;
}
body.portfolio-page .taught-card.logo-scroll-card{
  height:136px;
  padding:1.15rem;
}
body.portfolio-page .taught-card.logo-scroll-card img{
  max-width:128px;
  max-height:58px;
  object-fit:contain;
}
body.portfolio-page .client-carousel-shell .logo-scroll-card{
  flex-basis:292px;
  min-width:292px;
  min-height:245px;
}
body.portfolio-page .logo-carousel-arrow{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(143,150,255,.22);
  border-radius:50% 42% 50% 42%;
  color:var(--brush-periwinkle-dark);
  background:#fafaff;
  box-shadow:0 10px 24px rgba(55,35,23,.09);
  cursor:pointer;
  transition:.2s ease;
}
body.portfolio-page .logo-carousel-arrow:hover{background:var(--brush-periwinkle);color:#fff;transform:translateY(-2px);}
body.portfolio-page .logo-carousel-arrow i{font-size:1.55rem;}

/* Mobile navigation contrast fix */
@media (max-width: 767px){
  body.portfolio-page .nav__menu{
    background:rgba(250,250,255,.98) !important;
    backdrop-filter:blur(18px);
    border-left:1px solid rgba(143,150,255,.18) !important;
    box-shadow:-18px 0 48px rgba(55,35,23,.16) !important;
  }
  body.portfolio-page .nav__menu .nav__link{
    color:#2c211c !important;
    font-weight:850;
  }
  body.portfolio-page .nav__menu .nav__link:hover,
  body.portfolio-page .nav__menu .nav__link.active{
    color:var(--brush-periwinkle-dark) !important;
  }
  body.portfolio-page .nav__link--cta{
    color:#fff !important;
    background:var(--brush-periwinkle) !important;
  }
  body.portfolio-page .nav__toggle{
    color:#2c211c !important;
    background:rgba(250,250,255,.92);
    border:1px solid rgba(143,150,255,.16);
    border-radius:14px;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
  }
  body.portfolio-page .logo-carousel-shell{
    grid-template-columns:40px minmax(0,1fr) 40px;
    gap:.55rem;
  }
  body.portfolio-page .logo-scroll-card{flex-basis:178px;min-width:178px;}
  body.portfolio-page .client-carousel-shell .logo-scroll-card{flex-basis:250px;min-width:250px;}
  body.portfolio-page .logo-carousel-arrow{width:40px;height:40px;}
}

/* Final carousel autoplay + mobile menu visibility refinement */
body.portfolio-page .logo-carousel-track{
  width:max-content;
  min-width:max-content;
  transform:translate3d(0,0,0);
}
body.portfolio-page .logo-carousel-shell.is-static-carousel .logo-carousel-arrow{
  opacity:.45;
  pointer-events:none;
}
body.portfolio-page .logo-carousel-shell:hover .logo-carousel-track,
body.portfolio-page .logo-carousel-shell:focus-within .logo-carousel-track{
  will-change:transform;
}

@media (max-width: 767px){
  body.portfolio-page .nav__menu{
    background:#0009 !important;
    background-color:rgba(0,0,0,.6) !important;
    backdrop-filter:blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter:blur(18px) saturate(150%) !important;
    border-left:1px solid rgba(255,255,255,.16) !important;
    box-shadow:-24px 0 60px rgba(0,0,0,.42) !important;
  }
  body.portfolio-page .nav__menu .nav__link{
    color:#ffffff !important;
    text-shadow:0 1px 2px rgba(0,0,0,.45);
    font-weight:900;
    letter-spacing:.01em;
  }
  body.portfolio-page .nav__menu .nav__link:hover,
  body.portfolio-page .nav__menu .nav__link.active{
    color:#ffd9bd !important;
  }
  body.portfolio-page .nav__menu .nav__link--cta{
    color:#ffffff !important;
    background:var(--brush-periwinkle) !important;
    text-shadow:none;
    box-shadow:0 12px 26px rgba(143,150,255,.28);
  }
  body.portfolio-page .nav__toggle{
    color:#ffffff !important;
    background:#0009 !important;
    border:1px solid rgba(255,255,255,.22) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.22);
  }
}

/* Project tracking and compact long text */
.view-more-toggle{
  border:0;background:transparent;color:#b84c17;font-weight:800;cursor:pointer;padding:.15rem .1rem;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;
}
.view-more-toggle:hover{color:#8f3510;}
.project-tracker-home__shell{display:grid;grid-template-columns:1fr 1.35fr;gap:1.4rem;align-items:stretch;}
.project-tracker-home__intro,.project-tracker-home__form{padding:1.6rem;}
.project-tracker-home__intro h2{font-size:1.6rem;margin:.6rem 0;color:#1f2933;}
.project-tracker-home__intro p{color:#667085;line-height:1.7;margin:0;}
.project-tracker-home__form{display:flex;flex-direction:column;justify-content:center;gap:.75rem;}
.project-tracker-home__form label{font-weight:900;color:#1f2933;}
.project-tracker-home__form div{display:flex;gap:.75rem;align-items:center;}
.project-tracker-home__form input,.track-project-form input{width:100%;border:1px solid #f0d1bd;border-radius:999px;padding:.95rem 1.15rem;outline:none;background:#ffffff;color:#1f2933;font-weight:700;}
.project-tracker-home__form small{color:#667085;}
.track-project-page{padding-top:8rem;}
.track-project-shell{display:grid;grid-template-columns:.9fr 1.2fr;gap:1.4rem;align-items:start;}
.track-project-hero,.track-project-result{padding:1.8rem;}
.track-project-hero h1{font-size:2rem;color:#1f2933;margin:.6rem 0;}
.track-project-hero p,.track-project-muted{color:#667085;line-height:1.75;}
.track-project-form{display:grid;gap:.8rem;margin-top:1.2rem;}
.track-project-result__head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.2rem;}
.track-project-result__head h2{font-size:1.7rem;color:#1f2933;margin:.55rem 0 .2rem;}
.track-project-status{background:#fff1e8;color:#a44314;border:1px solid #f2c4aa;border-radius:999px;padding:.55rem .85rem;font-weight:900;white-space:nowrap;}
.track-project-progress{display:flex;gap:1rem;align-items:center;margin:1rem 0 1.3rem;}
.track-project-progress div{height:13px;background:#f4e7dd;border-radius:999px;overflow:hidden;flex:1;}
.track-project-progress span{display:block;height:100%;background:linear-gradient(90deg,#e2762d,#b84c17);border-radius:999px;}
.track-project-progress strong{font-size:1.2rem;color:#b84c17;}
.track-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1.2rem 0;}
.track-project-grid article{border:1px solid #f0d1bd;background:#fffaf6;border-radius:18px;padding:1rem;}
.track-project-grid small{display:block;color:#667085;font-weight:800;margin-bottom:.3rem;}
.track-project-grid strong,.track-project-grid a{color:#1f2933;font-weight:900;}
.track-project-note{border-top:1px solid #f0d1bd;padding-top:1rem;margin-top:1rem;}
.track-project-note h3{font-size:1.05rem;color:#1f2933;margin-bottom:.35rem;}
.track-project-result--empty{text-align:left;}
@media screen and (max-width: 900px){
  .project-tracker-home__shell,.track-project-shell{grid-template-columns:1fr;}
  .project-tracker-home__form div{flex-direction:column;align-items:stretch;}
  .track-project-result__head{flex-direction:column;}
}
@media screen and (max-width: 560px){.track-project-grid{grid-template-columns:1fr;}}

/* Project tracking visual refinement */
body.portfolio-page .project-tracker-home__intro,
body.portfolio-page .project-tracker-home__form,
body.portfolio-page .track-project-hero,
body.portfolio-page .track-project-result {
  border:1px solid rgba(143,150,255,.22) !important;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(247,247,255,.94)) !important;
  box-shadow:0 22px 55px rgba(61,57,139,.09) !important;
}
body.portfolio-page .project-tracker-home__form input,
body.portfolio-page .track-project-form input {
  border-color:#d9d7fb !important;
  border-radius:16px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
body.portfolio-page .project-tracker-home__form input:focus,
body.portfolio-page .track-project-form input:focus {
  border-color:#8f96ff !important;
  box-shadow:0 0 0 4px rgba(143,150,255,.14) !important;
}
body.portfolio-page .track-project-status {
  background:#efefff !important;
  color:#5b57c9 !important;
  border-color:#d4d2fb !important;
}
body.portfolio-page .track-project-progress div {
  background:#e8e7f7 !important;
}
body.portfolio-page .track-project-progress span {
  background:linear-gradient(90deg,#6661da,#8f96ff 72%,#d86422) !important;
  box-shadow:0 0 22px rgba(143,150,255,.32);
}
body.portfolio-page .track-project-progress strong,
body.portfolio-page .view-more-toggle {
  color:#5b57c9 !important;
}
body.portfolio-page .track-project-grid article {
  border-color:#e1dff8 !important;
  background:#faf9ff !important;
}
body.portfolio-page .track-project-note {
  border-top-color:#e1dff8 !important;
}
