:root {
  --bg-start: #140712;
  --bg-end: #231127;
  --surface: rgba(24, 10, 25, 0.88);
  --surface-strong: rgba(18, 8, 20, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8f1fb;
  --muted: #bca8c8;
  --accent: #b146ff;
  --accent-soft: rgba(177, 70, 255, 0.12);
  --accent-secondary: #ff5f87;
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 135, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(177, 70, 255, 0.24), transparent 30%),
    linear-gradient(140deg, var(--bg-start) 0%, var(--bg-end) 55%, #0b050d 100%);
}

:is(
  .hero__name,
  .hero__role,
  .hero__bio,
  .panel__label,
  .panel__meta,
  .panel__lead,
  .fact__label,
  .fact__value,
  .link-card__title,
  .link-card__note,
  .product-card__title,
  .product-card__description,
  .product-card__price,
  .product-card__cta,
  .project-card__name,
  .project-card__status,
  .project-card__description,
  .project-card__tag,
  .project-card__cta,
  .empty-state
) strong {
  font-weight: 700;
  color: #fff7ff;
}

:is(
  .hero__name,
  .hero__role,
  .hero__bio,
  .panel__label,
  .panel__meta,
  .panel__lead,
  .fact__label,
  .fact__value,
  .link-card__title,
  .link-card__note,
  .product-card__title,
  .product-card__description,
  .product-card__price,
  .product-card__cta,
  .project-card__name,
  .project-card__status,
  .project-card__description,
  .project-card__tag,
  .project-card__cta,
  .empty-state
) em {
  font-style: italic;
}

:is(
  .hero__name,
  .hero__role,
  .hero__bio,
  .panel__label,
  .panel__meta,
  .panel__lead,
  .fact__label,
  .fact__value,
  .link-card__title,
  .link-card__note,
  .product-card__title,
  .product-card__description,
  .product-card__price,
  .product-card__cta,
  .project-card__name,
  .project-card__status,
  .project-card__description,
  .project-card__tag,
  .project-card__cta,
  .empty-state
) code {
  padding: 0.08em 0.4em;
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.08);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.95em;
}

:is(
  .hero__name,
  .hero__role,
  .hero__bio,
  .panel__label,
  .panel__meta,
  .panel__lead,
  .fact__label,
  .fact__value,
  .link-card__title,
  .link-card__note,
  .product-card__title,
  .product-card__description,
  .product-card__price,
  .product-card__cta,
  .project-card__name,
  .project-card__status,
  .project-card__description,
  .project-card__tag,
  .project-card__cta,
  .empty-state
) s {
  opacity: 0.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.22;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: float-orb 4s ease-in-out infinite;
}

.orb--one {
  top: -10rem;
  right: -8rem;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(177, 70, 255, 0.44) 0%, rgba(177, 70, 255, 0) 68%);
}

.orb--two {
  bottom: -11rem;
  left: -9rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(255, 95, 135, 0.34) 0%, rgba(255, 95, 135, 0) 70%);
  animation-duration: 12s;
  animation-delay: -3s;
}

.layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.profile-card {
  position: relative;
  width: min(1120px, 100%);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(25, 10, 27, 0.94), rgba(13, 6, 16, 0.88));
  border: 1px solid var(--line);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1600px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: card-enter 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(177, 70, 255, 0.14), transparent 35%, rgba(255, 95, 135, 0.08) 100%);
  pointer-events: none;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.hero__eyebrow,
.panel__label,
.fact__label,
.project-card__tag,
.project-card__cta,
.chip {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.hero__name {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero__role {
  margin: 16px 0 0;
  max-width: 30rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #eadcf3;
}

.hero__bio {
  margin: 18px 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px currentColor;
}

.chip--muted::before {
  display: none;
}

.chip--muted {
  color: #f2e7fb;
  background: rgba(255, 255, 255, 0.08);
}

.hero__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-self: end;
  width: min(100%, 360px);
}

.avatar-shell {
  position: relative;
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(177, 70, 255, 0.26), rgba(255, 95, 135, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.avatar-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  background: rgba(16, 8, 18, 0.9);
}

.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.panel {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 12, 30, 0.88), rgba(14, 8, 18, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.panel {
  padding: 24px;
  animation: panel-enter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel--wide {
  grid-column: span 7;
}

.panel:not(.panel--wide):not(.panel--section):not(.panel--products) {
  grid-column: span 5;
}

.panel:nth-of-type(2) {
  align-self: start;
}

.panel:nth-of-type(3),
.panel--products {
  align-self: stretch;
}

.sections-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
}

.panel--products {
  grid-column: span 7;
  width: auto;
  min-width: 0;
  justify-self: stretch;
  padding: 18px;
}

.panel--section {
  grid-column: 1 / -1;
}

.panel:nth-child(1) {
  animation-delay: 120ms;
}

.panel:nth-child(2) {
  animation-delay: 180ms;
}

.panel:nth-child(3) {
  animation-delay: 240ms;
}

.panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__label {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.panel__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel__lead {
  margin: 16px 0 0;
  max-width: 42rem;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: #f9f0ff;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fact {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fact__label {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact__value {
  margin: 18px 0 0;
  max-width: 18ch;
  font-size: 1rem;
  line-height: 1.35;
  color: #fbf6ff;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 30%),
    linear-gradient(180deg, rgba(177, 70, 255, 0.16), rgba(26, 9, 27, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 12px 0 rgba(13, 5, 16, 0.92),
    0 20px 30px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  transform: translateY(0);
}

.link-card:hover {
  transform: translateY(8px);
  border-color: rgba(177, 70, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01) 30%),
    linear-gradient(180deg, rgba(177, 70, 255, 0.18), rgba(19, 7, 22, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 0 rgba(13, 5, 16, 0.96),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.link-card:active {
  transform: translateY(11px);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(13, 5, 16, 0.96),
    0 4px 10px rgba(0, 0, 0, 0.16);
}

.link-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 1.05rem;
}

.link-card__arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

.link-card__note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02) 28%),
    linear-gradient(180deg, rgba(177, 70, 255, 0.12), rgba(22, 8, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 12px 0 rgba(13, 5, 16, 0.88),
    0 20px 26px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  min-height: 82px;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  margin-right: 0;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(8px);
  border-color: rgba(255, 95, 135, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 28%),
    linear-gradient(180deg, rgba(255, 95, 135, 0.12), rgba(18, 7, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 0 rgba(13, 5, 16, 0.94),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

.product-card:active {
  transform: translateY(11px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(13, 5, 16, 0.94),
    0 5px 12px rgba(0, 0, 0, 0.14);
}

.product-card__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.15;
  white-space: pre-line;
  text-wrap: pretty;
}

.product-card__description {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.2;
  color: var(--muted);
  white-space: pre-line;
  text-wrap: pretty;
}

.product-card__aside {
  min-width: 96px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
  align-self: center;
}

.product-card__price {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.84rem;
  color: #fff1f6;
  white-space: nowrap;
  align-self: center;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(177, 70, 255, 0.18), rgba(255, 95, 135, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 5px 0 rgba(13, 5, 16, 0.72);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects {
  display: grid;
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 26%),
    linear-gradient(180deg, rgba(255, 95, 135, 0.13), rgba(20, 8, 23, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 14px 0 rgba(13, 5, 16, 0.92),
    0 24px 34px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(9px);
  border-color: rgba(255, 95, 135, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 26%),
    linear-gradient(180deg, rgba(255, 95, 135, 0.14), rgba(18, 7, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 5px 0 rgba(13, 5, 16, 0.96),
    0 12px 20px rgba(0, 0, 0, 0.18);
}

.project-card:active {
  transform: translateY(13px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(13, 5, 16, 0.96),
    0 5px 12px rgba(0, 0, 0, 0.16);
}

.project-card__image {
  width: 92px;
  height: 92px;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #160b16;
}

.project-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-card__name {
  margin: 0;
  font-size: 1.1rem;
}

.project-card__status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card__description {
  margin: 12px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-card__tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  line-height: 1.2;
  color: #f4eefe;
}

.project-card__cta {
  align-self: stretch;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(177, 70, 255, 0.16), rgba(255, 95, 135, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 6px 0 rgba(13, 5, 16, 0.72);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff1f6;
}

.empty-state {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  line-height: 1.6;
  color: var(--muted);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: perspective(1600px) rotateX(0deg) rotateY(0deg) translateY(24px);
  }

  to {
    opacity: 1;
    transform: perspective(1600px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translateY(0);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes float-orb {
  0% {
    transform: translate3d(0, -16px, 0) scale(1);
  }

  50% {
    transform: translate3d(0, 16px, 0) scale(1.06);
  }

  100% {
    transform: translate3d(0, -16px, 0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__media {
    justify-self: stretch;
    width: min(100%, 380px);
  }

  .panel--wide,
  .panel--products,
  .panel:not(.panel--wide):not(.panel--section),
  .panel--section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .layout {
    padding: 20px;
  }

  .profile-card {
    border-radius: 24px;
    padding: 20px;
  }

  .profile-card::before {
    border-radius: 23px;
  }

  .profile-card::after {
    border-radius: 24px;
  }

  .hero__name {
    max-width: none;
  }

  .hero__media {
    width: 100%;
  }

  .facts,
  .links,
  .products {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .project-card__cta {
    min-height: 52px;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__aside {
    min-width: 0;
    align-items: flex-start;
    align-self: stretch;
  }
}

@media (pointer: coarse) {
  .profile-card {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
