/* Premium visual system layer for the portfolio. */
body.portfolio-page.visual-system-active {
  --three-periwinkle: #8f96ff;
  --three-periwinkle-soft: #f0f2ff;
  --three-ink: #231f1d;
}

body.portfolio-page.visual-system-active .home {
  position: relative;
  overflow: hidden;
}

body.portfolio-page.visual-system-active .home::after {
  content: "";
  position: absolute;
  inset: 5.5rem 0 auto auto;
  width: min(58vw, 780px);
  height: min(58vw, 780px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.12), rgba(143,150,255,.05) 45%, rgba(255,255,255,0) 72%);
  pointer-events: none;
  z-index: 0;
}

body.portfolio-page.visual-system-active .home__data,
body.portfolio-page.visual-system-active .home__social {
  position: relative;
  z-index: 2;
}

body.portfolio-page.visual-system-active .home .home__img.dynamic-profile-frame {
  background:
    radial-gradient(circle at 48% 34%, rgba(255,255,255,.88) 0 20%, rgba(245,246,255,.76) 21% 44%, rgba(143,150,255,.36) 45% 78%, rgba(143,150,255,.24) 79% 100%) !important;
  border: 1px solid rgba(143,150,255,.36) !important;
  box-shadow:
    0 38px 92px rgba(87, 54, 31, .2),
    inset 0 0 0 18px rgba(255,255,255,.34),
    inset 0 -34px 76px rgba(143,150,255,.22) !important;
}

.three-hero-orb {
  position: absolute;
  inset: -7%;
  z-index: 1;
  opacity: .92;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.three-hero-orb canvas,
.three-timeline-canvas canvas,
.three-skill-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body.portfolio-page.visual-system-active .home .home__img.dynamic-profile-frame::before {
  z-index: 0 !important;
  background:
    radial-gradient(circle at 46% 34%, rgba(255,255,255,.74), rgba(246,247,255,.5) 46%, rgba(143,150,255,.2) 100%) !important;
}

body.portfolio-page.visual-system-active .home .home__img.dynamic-profile-frame::after {
  z-index: 3 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0) 44%),
    radial-gradient(circle at 72% 22%, rgba(143,150,255,.28), rgba(143,150,255,0) 34%) !important;
}

body.portfolio-page.visual-system-active .home .home__img.dynamic-profile-frame img {
  z-index: 2 !important;
}

.three-ecosystem-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(143,150,255,.18);
  color: #6e3416;
  font-weight: 850;
  box-shadow: 0 12px 32px rgba(36,31,27,.06);
}
.three-ecosystem-status i { color: var(--three-periwinkle); }

.three-skill-lab {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) 1.2fr;
  gap: 1.1rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff7f1);
  border: 1px solid rgba(143,150,255,.13);
  box-shadow: 0 20px 54px rgba(36,31,27,.06);
}
.three-skill-canvas {
  position: relative;
  height: 240px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(143,150,255,.2), rgba(255,255,255,.82) 45%, rgba(255,241,231,.74) 100%);
}
.three-skill-canvas::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 50%;
  border: 1px dashed rgba(143,150,255,.2);
  pointer-events: none;
}
.three-skill-copy h3 {
  margin: 0 0 .55rem;
  color: var(--three-ink);
  font-size: clamp(1.3rem, 2vw, 2rem);
}
.three-skill-copy p {
  margin: 0 0 1rem;
  color: #6f6660;
  line-height: 1.65;
}
.three-skill-labels {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.three-skill-labels span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(143,150,255,.14);
  color: #743818;
  font-weight: 850;
  font-size: .78rem;
  padding: .42rem .65rem;
}
.three-skill-labels span::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #8f96ff;
}

body.portfolio-page.visual-system-active .skills__core-card {
  position: relative;
  overflow: hidden;
}
body.portfolio-page.visual-system-active .skills__core-card::after {
  content: "";
  position: absolute;
  right: -2.4rem;
  bottom: -2.4rem;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,150,255,.12), rgba(143,150,255,0) 70%);
  pointer-events: none;
}

body.portfolio-page.visual-system-active .timeline-pathway {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,247,.95)),
    radial-gradient(circle at 50% 0%, rgba(143,150,255,.09), transparent 46%) !important;
}
.three-timeline-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .52;
  pointer-events: none;
}
body.portfolio-page.visual-system-active .timeline-pathway__rail,
body.portfolio-page.visual-system-active .timeline-step-card {
  z-index: 1;
}
body.portfolio-page.visual-system-active .timeline-step-card {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.9) !important;
}

.three-concept-note {
  max-width: 1140px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: #f7f8ff;
  border: 1px solid rgba(143,150,255,.14);
  color: #5d4437;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.three-concept-note strong { color: #2b2420; }
.three-concept-note span { color: #7a6255; }

@media (max-width: 992px) {
  .three-skill-lab { grid-template-columns: 1fr; }
  .three-skill-canvas { height: 220px; }
}
@media (max-width: 767px) {
  body.portfolio-page.visual-system-active .home::after { display: none; }
  .three-hero-orb { inset: -10%; opacity: .82; }
  .three-skill-lab { padding: .8rem; border-radius: 20px; }
  .three-skill-canvas { height: 190px; }
  .three-concept-note { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .three-hero-orb,
  .three-skill-lab,
  .three-timeline-canvas { display: none !important; }
}
