/* Final presentation layer for the cyber portfolio refresh. */

.sidebar .avatar-box {
  position: relative;
  isolation: isolate;
  width: 136px;
  height: 136px;
  padding: 5px;
  border-radius: 50%;
  background: hsl(160, 70%, 4%);
  box-shadow:
    0 0 0 1px hsla(145, 100%, 82%, 0.2),
    0 22px 60px hsla(145, 100%, 42%, 0.2),
    0 18px 70px hsla(150, 100%, 2%, 0.5);
}

.sidebar .avatar-box::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 2;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(from 150deg, var(--electric-cyan), var(--acid), hsla(145, 100%, 62%, 0.28), var(--electric-cyan));
  box-shadow: 0 0 30px hsla(145, 100%, 62%, 0.24);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.sidebar .avatar-box::after {
  content: "";
  position: absolute;
  inset: auto 3px 13px auto;
  z-index: 4;
  width: 20px;
  height: 20px;
  border: 4px solid hsl(160, 70%, 4%);
  border-radius: 50%;
  background: var(--acid);
  box-shadow:
    0 0 0 2px hsla(145, 100%, 62%, 0.28),
    0 0 20px hsla(145, 100%, 62%, 0.95);
}

.sidebar .avatar-box img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 42%;
  filter: saturate(1.04) contrast(1.08) brightness(1.02);
  box-shadow:
    inset 0 0 0 1px hsla(0, 0%, 100%, 0.18),
    0 0 0 1px hsla(160, 70%, 4%, 0.7);
}

.sidebar-info {
  align-items: center;
}

.sidebar .info-content {
  text-align: center;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: inherit;
}

.contact-card-link .contact-link {
  display: block;
}

.contact-card-link:hover .contact-link,
.contact-card-link:focus-visible .contact-link {
  color: var(--acid);
  text-shadow: 0 0 18px hsla(145, 100%, 62%, 0.44);
}

.main-content.is-switching article.active {
  animation: pageSwitch 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pageSwitch {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy h3 {
  max-width: 600px;
  color: var(--white-1);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-transform: none;
  text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
}

.proof-grid li {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.proof-grid li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, hsla(145, 100%, 62%, 0.12), transparent 42%),
    radial-gradient(circle at 88% 12%, hsla(185, 100%, 58%, 0.16), transparent 34%);
  opacity: 0.75;
  pointer-events: none;
}

.proof-grid span,
.proof-grid p {
  position: relative;
  z-index: 1;
}

.proof-grid span {
  color: var(--white-1);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-shadow: 0 0 20px hsla(145, 100%, 62%, 0.22);
}

.proof-grid p {
  color: var(--light-gray);
  font-size: 13px;
}

.about-text {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid hsla(145, 100%, 62%, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, hsla(145, 100%, 62%, 0.07), transparent 45%),
    hsla(160, 70%, 3%, 0.5);
  box-shadow:
    inset 0 1px 0 hsla(145, 100%, 86%, 0.08),
    0 18px 55px hsla(150, 100%, 2%, 0.28);
}

.about-text::before,
.about-text::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  pointer-events: none;
}

.about-text::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--acid);
  border-left: 2px solid var(--acid);
  border-radius: 22px 0 0 0;
  box-shadow: -10px -10px 30px hsla(145, 100%, 62%, 0.12);
}

.about-text::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--electric-cyan);
  border-bottom: 2px solid var(--electric-cyan);
  border-radius: 0 0 22px 0;
  box-shadow: 10px 10px 30px hsla(185, 100%, 58%, 0.1);
}

.about-text p {
  position: relative;
  z-index: 1;
  max-width: 92ch;
  color: hsla(164, 42%, 86%, 0.9);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.82;
}

.contact-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--panel-edge);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, hsla(185, 100%, 58%, 0.12), transparent 30%),
    linear-gradient(145deg, hsla(145, 100%, 62%, 0.075), hsla(160, 70%, 3%, 0.6));
  box-shadow: 0 18px 48px hsla(150, 100%, 2%, 0.24);
}

.contact-intro h3 {
  max-width: 760px;
  color: var(--white-1);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.contact-intro p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 14px;
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.75;
}

.mapbox {
  isolation: isolate;
  overflow: hidden;
  height: clamp(320px, 42vw, 440px);
  min-height: 320px;
  border-color: hsla(145, 100%, 62%, 0.28);
  background:
    linear-gradient(hsla(145, 100%, 62%, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, hsla(145, 100%, 62%, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 26% 28%, hsla(185, 100%, 58%, 0.16), transparent 26%),
    hsl(160, 70%, 4%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.mapbox::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, hsla(160, 80%, 3%, 0.04), hsla(160, 80%, 3%, 0.24)),
    radial-gradient(circle at 50% 50%, transparent 0 46%, hsla(160, 80%, 3%, 0.3) 100%);
}

.mapbox figure {
  position: relative;
}

.mapbox figure::before,
.mapbox figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mapbox figure::before {
  background:
    linear-gradient(135deg, hsla(145, 100%, 58%, 0.2), hsla(185, 100%, 58%, 0.08) 42%, hsla(160, 90%, 5%, 0.22)),
    radial-gradient(circle at 24% 28%, hsla(145, 100%, 62%, 0.24), transparent 34%),
    radial-gradient(circle at 78% 72%, hsla(185, 100%, 58%, 0.16), transparent 32%);
  mix-blend-mode: color;
}

.mapbox figure::after {
  background:
    linear-gradient(180deg, transparent 0 62%, hsla(160, 90%, 3%, 0.42)),
    repeating-linear-gradient(0deg, hsla(145, 100%, 72%, 0.055) 0 1px, transparent 1px 6px);
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

.mapbox figure,
.mapbox iframe {
  height: 100%;
}

.mapbox iframe {
  position: relative;
  z-index: 0;
  display: block;
  filter: grayscale(0.28) sepia(0.16) hue-rotate(82deg) saturate(1.28) contrast(1.08) brightness(0.82);
  opacity: 0.98;
}

.map-panel {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 360px;
  padding: 18px;
  border: 1px solid hsla(145, 100%, 62%, 0.32);
  border-radius: 18px;
  background: hsla(160, 78%, 4%, 0.86);
  box-shadow: 0 18px 60px hsla(150, 100%, 2%, 0.44);
  backdrop-filter: blur(16px);
}

.map-panel .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.map-panel strong {
  display: block;
  color: var(--white-1);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.map-panel a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--acid);
  font-family: var(--ff-code);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-item details {
  position: relative;
}

.timeline,
.timeline-list,
.timeline-item {
  overflow-anchor: none;
}

.timeline-item details::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, hsla(145, 100%, 62%, 0.09), transparent 34%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.timeline-item details[open]::before {
  opacity: 1;
}

.timeline-item summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border-radius: 14px;
  cursor: pointer;
}

.timeline-item summary:hover .timeline-item-title,
.timeline-item summary:hover span {
  color: var(--white-1);
}

.timeline-item summary span {
  transition: color var(--transition-1);
}

.timeline-item .timeline-text {
  margin-top: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s ease,
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-top 0.3s ease;
  will-change: height, opacity, transform;
}

.timeline-item details[open] .timeline-text {
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.timeline-item details[open] .custom-list li {
  animation: listReveal 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.timeline-item details[open] .custom-list li:nth-child(2) { animation-delay: 0.03s; }
.timeline-item details[open] .custom-list li:nth-child(3) { animation-delay: 0.06s; }
.timeline-item details[open] .custom-list li:nth-child(4) { animation-delay: 0.09s; }
.timeline-item details[open] .custom-list li:nth-child(5) { animation-delay: 0.12s; }
.timeline-item details[open] .custom-list li:nth-child(6) { animation-delay: 0.15s; }
.timeline-item details[open] .custom-list li:nth-child(7) { animation-delay: 0.18s; }
.timeline-item details[open] .custom-list li:nth-child(8) { animation-delay: 0.21s; }
.timeline-item details[open] .custom-list li:nth-child(9) { animation-delay: 0.24s; }
.timeline-item details[open] .custom-list li:nth-child(10) { animation-delay: 0.27s; }
.timeline-item details[open] .custom-list li:nth-child(11) { animation-delay: 0.3s; }
.timeline-item details[open] .custom-list li:nth-child(12) { animation-delay: 0.33s; }

@keyframes listReveal {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 1250px) {
  .hero-console {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  }
}

@media (max-width: 579px) {
  .sidebar .avatar-box {
    width: 92px;
    height: 92px;
    padding: 3px;
  }

  .sidebar .avatar-box::after {
    inset: auto 1px 8px auto;
    width: 13px;
    height: 13px;
    border-width: 2px;
  }

  .hero-copy h3 {
    font-size: clamp(1.55rem, 7.6vw, 1.92rem);
    line-height: 1.02;
  }

  .proof-grid li {
    min-height: 128px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.72;
  }

  .map-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .map-panel strong {
    font-size: 19px;
  }
}
