.profile-shell {
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}

.profile-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  grid-template-areas:
    "copy visual"
    "details visual";
  gap: 52px clamp(48px, 8vw, 116px);
  align-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 70px 34px 76px;
}

.profile-copy { grid-area: copy; align-self: end; }
.profile-copy .eyebrow { margin: 0 0 25px; }
.profile-title-wrap { position: relative; display: inline-block; }
.profile-title-wrap h1 {
  margin: 0;
  font-size: clamp(74px, 9.5vw, 144px);
  font-weight: 300;
  line-height: .72;
  letter-spacing: -.075em;
}
.profile-index {
  position: absolute;
  top: 2px;
  right: -50px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}
.profile-intro { display: grid; grid-template-columns: 42px 1fr; gap: 17px; align-items: start; max-width: 560px; margin-top: 50px; }
.profile-rule { height: 1px; margin-top: 10px; background: var(--acid); box-shadow: 0 0 14px rgba(200,255,46,.35); }
.profile-intro p { margin: 0; color: rgba(241,244,236,.7); font-size: clamp(14px, 1.35vw, 18px); font-weight: 300; line-height: 1.65; }
.profile-intro strong { color: var(--paper); font-weight: 450; }

.profile-visual {
  grid-area: visual;
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: end;
  border: 1px solid rgba(241,244,236,.12);
  background: radial-gradient(circle, rgba(200,255,46,.055), transparent 58%);
  overflow: hidden;
}
.profile-visual::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(241,244,236,.07);
  border-radius: 50%;
}
.visual-code { position: absolute; z-index: 4; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.code-a { top: 18px; left: 20px; }
.code-b { right: 20px; bottom: 18px; }
.profile-axis { position: absolute; z-index: 1; background: rgba(241,244,236,.09); }
.axis-horizontal { top: 50%; left: 5%; width: 90%; height: 1px; }
.axis-vertical { top: 5%; left: 50%; width: 1px; height: 90%; }
.pixel-field { position: absolute; z-index: 3; inset: 18%; }
.pixel-field i {
  --unit: 10%;
  position: absolute;
  left: calc(var(--x) * var(--unit));
  top: calc(var(--y) * var(--unit));
  width: clamp(5px, .85vw, 10px);
  aspect-ratio: 1;
  background: rgba(214,255,103,.74);
  box-shadow: 0 0 8px rgba(200,255,46,.16);
  animation: pixel-pulse 3.2s steps(2) infinite;
  animation-delay: calc((var(--x) + var(--y)) * -.11s);
}
.pixel-field i.hot { background: var(--acid); box-shadow: 0 0 15px rgba(200,255,46,.48); }
.pixel-field i.dim { background: rgba(116,247,255,.38); box-shadow: none; }
@keyframes pixel-pulse { 50% { opacity: .38; transform: translateY(-1px); } }
.scan-line {
  position: absolute;
  z-index: 2;
  left: 8%;
  width: 84%;
  height: 1px;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(200,255,46,.7);
  opacity: .45;
  animation: scan 4.5s linear infinite;
}
@keyframes scan { from { top: 12%; } to { top: 88%; } }
.profile-corner { position: absolute; z-index: 5; width: 24px; height: 24px; color: rgba(241,244,236,.45); }
.corner-tl { top: 8%; left: 8%; border-top: 1px solid; border-left: 1px solid; }
.corner-br { right: 8%; bottom: 8%; border-right: 1px solid; border-bottom: 1px solid; }

.profile-details { grid-area: details; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-self: start; }
.detail-block { padding-top: 17px; border-top: 1px solid var(--line); }
.detail-block > span { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .15em; }
.detail-block p { margin: 13px 0 0; color: rgba(241,244,236,.6); font-size: 13px; font-weight: 300; line-height: 1.65; }
.profile-tags { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 6px 0 0; padding: 0; border: 1px solid var(--line); list-style: none; }
.profile-tags li { padding: 11px 8px; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-align: center; }
.profile-tags li:last-child { border-right: 0; }
.profile-footer { width: min(100%, 1180px); margin: 0 auto; }

@media (max-width: 860px) {
  .profile-main { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "details"; gap: 54px; padding-top: 76px; }
  .profile-copy { align-self: auto; }
  .profile-visual { width: min(92vw, 480px); justify-self: center; }
  .profile-details { max-width: 640px; }
}

@media (max-width: 560px) {
  .profile-main { padding: 62px 20px 52px; }
  .profile-title-wrap h1 { font-size: clamp(72px, 25vw, 104px); }
  .profile-index { right: -42px; }
  .profile-intro { grid-template-columns: 28px 1fr; margin-top: 38px; }
  .profile-details { grid-template-columns: 1fr; }
  .profile-tags { grid-column: 1; grid-template-columns: repeat(2, 1fr); }
  .profile-tags li { border-bottom: 1px solid var(--line); }
  .profile-tags li:nth-child(2) { border-right: 0; }
  .profile-tags li:nth-last-child(-n+2) { border-bottom: 0; }
  .profile-footer { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-field i, .scan-line { animation: none; }
  .scan-line { top: 50%; }
}
