/* ========================================================================
   OnPixel / Studio profile — v31
   A concise, factual page with the studio mark as its visual anchor.
   ======================================================================== */

.opx-profile-kicker {
  margin: 0;
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--onpixel-e-core) 76%, var(--onpixel-steel));
}

.opx-profile-copy {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 1.22vw, 1.14rem);
  line-height: 1.72;
  color: var(--onpixel-steel);
}

.opx-profile-heading {
  display: grid;
  gap: 1.75rem;
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.opx-profile-heading h2 {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(2.15rem, 4.1vw, 3.65rem);
  line-height: 1.03;
}

.opx-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Hero ------------------------------------------------------------------ */

.opx-profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(8rem, 15vh, 11rem);
  background:
    radial-gradient(48% 72% at 80% 42%, rgba(143,160,188,.13), transparent 70%),
    linear-gradient(145deg, #10141c 0%, #07090e 48%, #040509 100%);
}

.opx-profile-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 48%, #000 100%);
}

.opx-profile-hero__glow {
  position: absolute;
  z-index: -1;
  top: 45%;
  right: 8%;
  width: min(40vw, 36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(143,160,188,.06);
  filter: blur(5rem);
  transform: translateY(-50%);
}

.opx-profile-hero__layout {
  display: grid;
  align-items: center;
  gap: clamp(3.5rem, 8vw, 9rem);
  min-height: clamp(35rem, 72vh, 49rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.opx-profile-hero__copy {
  position: relative;
  z-index: 2;
}

.opx-profile-hero__title {
  max-width: 16ch;
  margin: 1.2rem 0 0;
  font-size: clamp(2.85rem, 5vw, 5.75rem);
  font-weight: 850;
  font-stretch: 122%;
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
  color: var(--onpixel-bone);
}

.opx-profile-hero__lede {
  max-width: 55ch;
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.72;
  color: var(--onpixel-steel);
}

.opx-profile-hero__lede strong {
  font-weight: 680;
  color: var(--onpixel-bone);
}

.opx-profile-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(27rem, 42vw, 40rem);
  margin: 0;
  color: var(--onpixel-bone);
}

.opx-profile-mark::before {
  content: "";
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(190,211,242,.11), transparent 68%);
}

.opx-profile-mark > svg {
  position: relative;
  z-index: 2;
  width: clamp(12rem, 23vw, 19rem);
  filter: drop-shadow(0 0 3rem rgba(190,211,242,.18));
}

.opx-profile-mark > span {
  position: absolute;
  z-index: 3;
  bottom: 12%;
  left: 50%;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .32em;
  color: var(--onpixel-mute);
  transform: translateX(-50%);
}

.opx-profile-mark__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.opx-profile-mark__rings i {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(143,160,188,.14);
  transform: rotate(45deg);
  animation: opx-profile-ring 9s ease-in-out infinite;
}

.opx-profile-mark__rings i:nth-child(1) { width: 38%; }
.opx-profile-mark__rings i:nth-child(2) { width: 60%; animation-delay: -3s; }
.opx-profile-mark__rings i:nth-child(3) { width: 80%; animation-delay: -6s; }

.opx-profile-facts {
  display: grid;
  border-top: 1px solid var(--onpixel-edge-strong);
}

.opx-profile-facts div {
  min-width: 0;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--onpixel-edge);
}

.opx-profile-facts dt {
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--onpixel-mute);
}

.opx-profile-facts dd {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .35rem 0 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--onpixel-bone);
}

.opx-profile-facts dd i {
  flex: 0 0 auto;
  width: .42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--onpixel-ice-core);
  box-shadow: 0 0 .9rem rgba(46,155,255,.72);
}

/* Method ---------------------------------------------------------------- */

.opx-profile-method {
  overflow: hidden;
  background: #05060a;
}

.opx-profile-method__list {
  margin: 0;
  border-bottom: 1px solid var(--onpixel-edge-strong);
}

.opx-profile-method__list li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0,1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: clamp(11rem, 18vw, 15rem);
  padding: clamp(1.8rem, 4vw, 3rem) 0;
  overflow: hidden;
  border-top: 1px solid var(--onpixel-edge-strong);
}

.opx-profile-method__list li::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--onpixel-e-core);
  box-shadow: 0 0 1.2rem rgba(143,160,188,.5);
  transition: width .8s var(--onpixel-ease-out);
}

.opx-profile-method__list li:hover::after { width: 100%; }
.opx-profile-method__list li > span { padding-top: .28rem; font-size: .78rem; color: var(--onpixel-mute); }
.opx-profile-method__list h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.08; color: var(--onpixel-bone); }
.opx-profile-method__list p { max-width: 60ch; margin-top: .8rem; font-size: 1rem; line-height: 1.65; color: var(--onpixel-steel); }

.opx-profile-method__list b {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 860;
  line-height: .75;
  letter-spacing: -.065em;
  color: rgba(236,233,226,.025);
  pointer-events: none;
  transform: translateY(-50%);
  transition: color .6s ease, transform .8s var(--onpixel-ease-out);
}

.opx-profile-method__list li:hover b {
  color: rgba(236,233,226,.045);
  transform: translate(-1rem,-50%);
}

/* Current project ------------------------------------------------------- */

.opx-profile-project {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--onpixel-edge);
  background: #080a0f;
}

.opx-profile-project__atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  opacity: .65;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.opx-profile-project__atmosphere i {
  filter: blur(4.5rem);
  animation: opx-profile-atmosphere 9s ease-in-out infinite alternate;
}

.opx-profile-project__atmosphere i:nth-child(1) { background: radial-gradient(ellipse, rgba(255,67,24,.11), transparent 70%); }
.opx-profile-project__atmosphere i:nth-child(2) { background: radial-gradient(ellipse, rgba(47,157,255,.1), transparent 70%); animation-delay: -3s; }
.opx-profile-project__atmosphere i:nth-child(3) { background: radial-gradient(ellipse, rgba(112,191,24,.09), transparent 70%); animation-delay: -6s; }

.opx-profile-project__layout {
  display: grid;
  gap: clamp(3.5rem, 8vw, 8rem);
  align-items: center;
}

.opx-profile-project h2 {
  max-width: 14ch;
  margin-top: 1rem;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  line-height: 1;
}

.opx-profile-project h2 span { color: rgba(236,233,226,.42); }

.opx-profile-project__summary {
  position: relative;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--onpixel-edge-strong);
}

.opx-profile-project__summary > p {
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
  font-size: clamp(2.6rem, 5.4vw, 4.85rem);
  font-weight: 850;
  line-height: .86;
  letter-spacing: -.05em;
  color: rgba(236,233,226,.08);
}

.opx-profile-project__elements {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--onpixel-edge);
}

.opx-profile-project__elements span {
  position: relative;
  padding: 1rem .6rem;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  color: var(--onpixel-steel);
  background: rgba(5,6,10,.9);
}

.opx-profile-project__elements span::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 1px;
  box-shadow: 0 0 1rem currentColor;
}

.opx-profile-project__elements span:nth-child(1) { color: #e56442; }
.opx-profile-project__elements span:nth-child(1)::after { background: #ff4b24; }
.opx-profile-project__elements span:nth-child(2) { color: #6ab9f5; }
.opx-profile-project__elements span:nth-child(2)::after { background: #2f9dff; }
.opx-profile-project__elements span:nth-child(3) { color: #8cc848; }
.opx-profile-project__elements span:nth-child(3)::after { background: #70bf18; }

.opx-profile-project__summary dl { margin: 0; border-bottom: 1px solid var(--onpixel-edge); }
.opx-profile-project__summary dl div { display: grid; gap: .45rem; padding: 1.15rem 0; border-top: 1px solid var(--onpixel-edge); }
.opx-profile-project__summary dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--onpixel-mute); }
.opx-profile-project__summary dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--onpixel-bone); }

/* Devlog and contact ---------------------------------------------------- */

.opx-profile-log {
  overflow: hidden;
  background: #05060a;
}

.opx-profile-log__entry {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  color: inherit;
  text-decoration: none;
  border-block: 1px solid var(--onpixel-edge-strong);
  transition: border-color .4s ease;
}

.opx-profile-log__entry time {
  display: flex;
  align-items: end;
  gap: .8rem;
  color: var(--onpixel-bone);
}

.opx-profile-log__entry time b {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .75;
  letter-spacing: -.07em;
}

.opx-profile-log__entry time span,
.opx-profile-log__entry > div > p {
  font-size: .75rem;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.opx-profile-log__entry time span { color: var(--onpixel-mute); }
.opx-profile-log__entry > div > p { color: var(--onpixel-e-core); }
.opx-profile-log__entry h3 { max-width: 26ch; margin-top: .65rem; font-size: clamp(1.7rem, 3.3vw, 3rem); line-height: 1.04; color: var(--onpixel-bone); }
.opx-profile-log__entry > div > span { display: block; max-width: 62ch; margin-top: .9rem; font-size: 1rem; line-height: 1.62; color: var(--onpixel-steel); }
.opx-profile-log__entry > i { justify-self: end; font-size: clamp(2rem, 4vw, 3.4rem); font-style: normal; color: var(--onpixel-mute); transition: color .35s ease, transform .55s var(--onpixel-ease-out); }
.opx-profile-log__entry:hover,
.opx-profile-log__entry:focus-visible { border-color: var(--onpixel-e-core); outline: 0; }
.opx-profile-log__entry:hover > i,
.opx-profile-log__entry:focus-visible > i { color: var(--onpixel-bone); transform: translate(.3rem,-.3rem); }

.opx-profile-contact {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-top: clamp(5rem, 10vw, 9rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--onpixel-edge-strong);
}

.opx-profile-contact h2 {
  max-width: 21ch;
  margin-top: .9rem;
  font-size: clamp(1.8rem, 3.6vw, 3.3rem);
  line-height: 1.08;
  color: var(--onpixel-bone);
}

.opx-profile-contact > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.opx-profile-contact > div:last-child > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  font-size: .9rem;
  color: var(--onpixel-steel);
  border-bottom: 1px solid var(--onpixel-edge-strong);
  transition: color .35s ease, border-color .35s ease;
}

.opx-profile-contact > div:last-child > a:last-child:hover,
.opx-profile-contact > div:last-child > a:last-child:focus-visible {
  color: var(--onpixel-bone);
  border-color: var(--onpixel-e-core);
}

/* Motion ---------------------------------------------------------------- */

@keyframes opx-profile-ring {
  0%,100% { opacity: .32; transform: rotate(45deg) scale(.94); }
  50% { opacity: .8; transform: rotate(45deg) scale(1.04); }
}

@keyframes opx-profile-atmosphere {
  from { opacity: .38; transform: scaleX(.84); }
  to { opacity: .8; transform: scaleX(1.08); }
}

/* Responsive ------------------------------------------------------------ */

@media (min-width: 64rem) {
  .opx-profile-heading { grid-template-columns: minmax(0,1.12fr) minmax(22rem,.88fr); gap: clamp(3rem, 7vw, 7rem); }
  .opx-profile-hero__layout { grid-template-columns: minmax(0,1.12fr) minmax(27rem,.88fr); }
  .opx-profile-facts { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .opx-profile-facts div { padding-inline: 1.25rem; border-bottom: 0; }
  .opx-profile-facts div:first-child { padding-left: 0; }
  .opx-profile-facts div + div { border-left: 1px solid var(--onpixel-edge); }
  .opx-profile-method__list li { grid-template-columns: 3.5rem minmax(0,1fr) minmax(15rem,.65fr); }
  .opx-profile-method__list b { position: relative; grid-column: 3; align-self: center; justify-self: end; top: auto; right: auto; transform: none; }
  .opx-profile-method__list li:hover b { transform: translateX(-1rem); }
  .opx-profile-project__layout { grid-template-columns: minmax(0,1.05fr) minmax(28rem,.95fr); }
  .opx-profile-log__entry { grid-template-columns: 11rem minmax(0,1fr) 3rem; }
  .opx-profile-contact { grid-template-columns: minmax(0,1fr) auto; }
  .opx-profile-contact > div:last-child { justify-content: flex-end; }
}

@media (max-width: 63.99rem) {
  .opx-profile-hero__title { max-width: 17ch; font-size: clamp(3rem, 5.4vw, 4.4rem); }
  .opx-profile-mark { min-height: 29rem; }
  .opx-profile-project__summary { margin-top: 1rem; }
}

@media (max-width: 42rem) {
  .opx-profile-hero { padding-top: 7.5rem; }
  .opx-profile-hero__layout { min-height: auto; }
  .opx-profile-hero__title { max-width: 16ch; font-size: clamp(2.45rem, 10.5vw, 3.65rem); line-height: .96; }
  .opx-profile-hero__lede { line-height: 1.65; }
  .opx-profile-actions .onpixel-act { width: 100%; justify-content: space-between; }
  .opx-profile-mark { min-height: 23rem; }
  .opx-profile-mark > svg { width: 10.5rem; }
  .opx-profile-mark > span { bottom: 8%; }
  .opx-profile-facts div { padding-block: 1rem; }
  .opx-profile-method__list li { grid-template-columns: 2.25rem minmax(0,1fr); min-height: 12rem; }
  .opx-profile-method__list b { right: -.3rem; font-size: 4rem; }
  .opx-profile-project h2 { font-size: clamp(2.2rem, 10vw, 3.35rem); }
  .opx-profile-project__summary > p { font-size: clamp(2.5rem, 12vw, 3rem); }
  .opx-profile-project__elements span { padding-inline: .3rem; font-size: .7rem; }
  .opx-profile-log__entry { grid-template-columns: 1fr auto; }
  .opx-profile-log__entry time { grid-column: 1; }
  .opx-profile-log__entry > div { grid-column: 1 / -1; }
  .opx-profile-log__entry > i { grid-column: 2; grid-row: 1; }
  .opx-profile-contact > div:last-child { flex-direction: column; align-items: flex-start; }
  .opx-profile-contact > div:last-child .onpixel-act { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .opx-profile-mark__rings i,
  .opx-profile-project__atmosphere i { animation: none !important; }
  .opx-profile-method__list li::after,
  .opx-profile-method__list b,
  .opx-profile-log__entry > i { transition: none !important; }
}
