/* Targeted refinements requested after the rollback build. */
html,
body {
  overflow-x: clip;
}

#portfolio-password,
#portfolio-password::placeholder {
  color: #ffffff40 !important;
}

.hero-status {
  width: fit-content !important;
  margin-inline: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  justify-content: center !important;
}

.hero-status em {
  color: #a6ffaa !important;
  font-size: clamp(13px, 1.15vw, 16px) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
}

.timeline,
#intro,
#projects,
#contact {
  scroll-margin-top: 96px;
}

.timeline-item > span {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  align-self: start !important;
  justify-self: center !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(166, 255, 170, .34) !important;
  border-radius: 50% !important;
  background: rgba(7, 17, 15, .28) !important;
  box-shadow: 0 0 0 8px rgba(7, 17, 15, .12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #a6ffaa !important;
  line-height: 1 !important;
}

.intro-section {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(112px, 13vw, 180px);
  opacity: 1;
  transform: none;
}

.intro-section.profile-motion-ready {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .56s ease, transform .56s ease;
  will-change: opacity, transform;
}

.intro-section.profile-in-view {
  opacity: 1;
  transform: none;
}

.intro-section.profile-motion-ready .identity-stage,
.intro-section.profile-motion-ready .intro-copy > *,
.intro-section.profile-motion-ready .intro-contact {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .52s ease, transform .52s ease;
  will-change: opacity, transform;
}

.intro-section.profile-motion-ready .identity-stage {
  transform: translate(-20px, 22px);
}

.intro-section.profile-in-view .identity-stage,
.intro-section.profile-in-view .intro-copy > *,
.intro-section.profile-in-view .intro-contact {
  opacity: 1;
  transform: none;
}

.intro-section.profile-in-view .intro-copy > :nth-child(1) { transition-delay: .08s; }
.intro-section.profile-in-view .intro-copy > :nth-child(2) { transition-delay: .14s; }
.intro-section.profile-in-view .intro-copy > :nth-child(3) { transition-delay: .2s; }
.intro-section.profile-in-view .intro-copy > :nth-child(4) { transition-delay: .26s; }
.intro-section.profile-in-view .intro-copy > :nth-child(5) { transition-delay: .32s; }
.intro-section.profile-in-view .intro-copy > :nth-child(6) { transition-delay: .38s; }
.intro-section.profile-in-view .intro-contact { transition-delay: .44s; }

.intro-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.45fr);
  align-items: center;
  column-gap: clamp(60px, 9vw, 132px);
  row-gap: clamp(28px, 4vw, 48px);
}

.identity-stage {
  position: relative;
  max-width: 390px;
  margin-inline: auto;
  padding: 32px 20px 20px;
}

.identity-stage::before,
.identity-stage::after {
  content: '';
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(166, 255, 170, .13);
  border-radius: 50%;
  pointer-events: none;
}

.identity-stage::before,
.identity-stage::after { display: none; }

.identity-index {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 26px;
  color: rgba(255, 255, 255, .4);
  font: 700 10px/1 monospace;
  letter-spacing: .18em;
}

.identity-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

.identity-card::before {
  content: none;
  display: none;
  position: absolute;
  z-index: 3;
  inset: 12px;
  border: 1px solid rgba(166, 255, 170, .09);
  border-radius: 14px;
  pointer-events: none;
}

.identity-photo-wrap {
  position: relative;
  aspect-ratio: 1 / .96;
  overflow: hidden;
  background: #0d201a;
}

.identity-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(7, 17, 15, .78));
  pointer-events: none;
}

.identity-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(.72) contrast(1.04) brightness(.88);
  transform: scale(1.02);
}

.identity-focus {
  display: none;
}

.identity-card-body {
  padding: 24px 26px 25px;
}

.identity-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #a6ffaa;
  font: 700 9px/1.4 monospace;
  letter-spacing: .16em;
}

.identity-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -.05em;
}

.identity-card-body p {
  margin: 6px 0 20px;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.identity-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: rgba(255, 255, 255, .58);
  font: 600 10px/1 sans-serif;
}

.identity-signal {
  display: none;
}

.identity-signal i { height: 2px; background: rgba(255, 255, 255, .16); }
.identity-signal i:nth-child(2),
.identity-signal i:nth-child(5) { background: #a6ffaa; }

.intro-copy {
  max-width: 760px;
}

.intro-copy .section-kicker {
  margin-bottom: 26px;
}

.intro-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -.055em;
}

.intro-copy h2 span {
  color: #ffffffe0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.35;
}

.intro-lead {
  margin: clamp(30px, 4vw, 48px) 0 18px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
}

.intro-body {
  display: grid;
  gap: 12px;
}

.intro-body p {
  margin: 0;
  color: rgba(255, 255, 255, .56);
  font-size: 15px;
  line-height: 1.9;
}

.intro-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.intro-path i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a6ffaa;
}

.intro-path b { color: #a6ffaa; font-weight: 500; }

.intro-contact {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(4px, 1vw, 12px);
  border-block: 1px solid rgba(255, 255, 255, .08);
}

.intro-contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 22px 26px 24px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.intro-contact-row:last-child {
  border-right: 0;
}

.intro-contact small {
  color: rgba(255, 255, 255, .38);
  font-size: 10px;
  letter-spacing: .12em;
}

.intro-contact strong {
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  text-overflow: ellipsis;
}

.intro-contact a,
.intro-contact button {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a6ffaa;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
}

.intro-contact a:hover,
.intro-contact button:hover {
  color: #fff;
}

[data-theme='light'] .identity-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(233, 241, 236, .98));
}

[data-theme='light'] .intro-copy h2,
[data-theme='light'] .identity-card h3 { color: #07110f; }
[data-theme='light'] .intro-copy h2 span { color: rgba(7, 17, 15, .38); }
[data-theme='light'] .intro-lead { color: rgba(7, 17, 15, .86); }
[data-theme='light'] .intro-body p,
[data-theme='light'] .intro-path,
[data-theme='light'] .identity-card-body p,
[data-theme='light'] .identity-tags span,
[data-theme='light'] .intro-contact strong { color: rgba(7, 17, 15, .58); }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 58px; }
  .identity-stage { width: min(100%, 380px); }
  .intro-copy { max-width: 680px; }
  .intro-copy h2 br { display: none; }
}

@media (max-width: 640px) {
  .intro-section { padding-block: 96px; }
  .intro-grid { gap: 44px; }
  .identity-stage { padding-inline: 0; }
  .intro-contact { grid-template-columns: 1fr; }
  .intro-contact-row {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .intro-contact-row:last-child { border-bottom: 0; }
  .intro-path { align-items: flex-start; }
  .timeline-item > span {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    box-shadow: 0 0 0 6px rgba(7, 17, 15, .12) !important;
    font-size: 10px !important;
  }

  .intro-copy h2 span { font-size: 32px; }
}
