:root {
  --void: #05050a;
  --ink: #08070f;
  --panel: #0d0b16;
  --panel-strong: #12101d;
  --panel-soft: rgba(18, 16, 29, 0.72);
  --white: #f7f4ff;
  --muted: #b8b1c5;
  --muted-strong: #d2ccdc;
  --violet: #b99bff;
  --violet-bright: #d3c2ff;
  --violet-deep: #6c4aba;
  --line: rgba(218, 205, 255, 0.16);
  --line-strong: rgba(218, 205, 255, 0.3);
  --glow: rgba(125, 85, 220, 0.24);
  --display: "FZRuiZhengHeiS-EB-GB", "方正锐正黑简体_大", "Microsoft YaHei", sans-serif;
  --body: "FZHei-B01S", "方正黑体简体", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Gaoel", "FZHei-B01S", "方正黑体简体", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(100% - 72px, 1580px);
  --header-h: 78px;
  --type-secondary: 0.94rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  background: var(--void);
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 8%, rgba(164, 123, 255, 0.2), transparent 26%),
    radial-gradient(circle at 12% 48%, rgba(87, 48, 154, 0.16), transparent 32%),
    radial-gradient(circle at 70% 82%, rgba(119, 83, 205, 0.12), transparent 28%),
    var(--void);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("../images/noise.svg");
  background-size: 180px;
  mix-blend-mode: soft-light;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

::selection {
  background: var(--violet-deep);
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--void);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.personal-shell {
  width: var(--shell);
  margin-inline: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.personal-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 10, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  transition:
    transform 350ms var(--ease),
    background-color 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.personal-header.is-scrolled {
  border-bottom-color: rgba(218, 205, 255, 0.22);
  background: rgba(5, 5, 10, 0.92);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.personal-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 13px;
  min-width: 0;
}

.brand-monogram {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(211, 194, 255, 0.32), transparent 45%),
    rgba(185, 155, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  font-size: 13px;
  color: var(--muted-strong);
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease);
}

.desktop-nav a:hover {
  color: var(--white);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(185, 155, 255, 0.12), 0 0 18px var(--violet);
}

.header-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(185, 155, 255, 0.06);
  font-family: var(--mono);
  font-size: 10px;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.header-cta:hover {
  border-color: var(--violet);
  background: var(--white);
  color: var(--void);
  box-shadow: 0 0 34px rgba(185, 155, 255, 0.3);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
}

.menu-toggle > span:not(.sr-only) {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition:
    top 250ms ease,
    transform 250ms ease;
}

.menu-toggle > span:nth-child(2) {
  top: 18px;
}

.menu-toggle > span:nth-child(3) {
  top: 25px;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-content: center;
  gap: 48px;
  padding: 110px 28px 38px;
  background:
    radial-gradient(circle at 75% 20%, rgba(108, 74, 186, 0.3), transparent 32%),
    rgba(5, 5, 10, 0.98);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(2rem, 10vw, 4.5rem);
  line-height: 1;
}

.mobile-menu nav span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 10px;
}

.mobile-menu > p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
}

.personal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  grid-template-rows: auto 1fr auto;
  gap: 20px 42px;
  min-height: 100svh;
  padding: calc(var(--header-h) + 38px) max(36px, calc((100vw - 1580px) / 2)) 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.96%, rgba(218, 205, 255, 0.07) 50%, transparent 50.04%),
    radial-gradient(circle at 84% 28%, rgba(139, 95, 238, 0.22), transparent 30%),
    linear-gradient(180deg, #05050a 0%, #08070f 66%, #0a0812 100%);
}

.personal-hero::before {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.personal-hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -26vw;
  width: 56vw;
  height: 56vw;
  border: 1px solid rgba(185, 155, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(185, 155, 255, 0.025),
    0 0 0 16vw rgba(185, 155, 255, 0.018);
  pointer-events: none;
}

.hero-rule {
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.hero-copy {
  z-index: 1;
  align-self: center;
  padding: 28px 0 44px;
}

.eyebrow {
  margin-bottom: clamp(34px, 5vh, 62px);
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.hero-copy h1 {
  display: grid;
  font-family: var(--display);
  font-size: clamp(8rem, 15.8vw, 15.5rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.82;
}

.hero-copy h1 > span {
  background: linear-gradient(180deg, #fff 0%, #f7f4ff 35%, #d3c2ff 72%, #9072cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(185, 155, 255, 0.18));
}

.hero-copy h1 em {
  margin-top: 18px;
  padding-left: 0.08em;
  color: transparent;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.4vw, 2.65rem);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 1px rgba(211, 194, 255, 0.58);
}

.hero-summary {
  width: min(100%, 540px);
  margin-top: clamp(34px, 5vh, 60px);
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.9;
}

.hero-collage {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 0.9fr 1.1fr;
  gap: 14px;
  min-height: 600px;
  padding: 28px 0 44px;
}

.hero-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(5, 5, 10, 0.82) 100%),
    radial-gradient(circle at 50% 0%, rgba(185, 155, 255, 0.16), transparent 45%);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.hero-frame:hover img {
  transform: scale(1.035);
}

.hero-frame figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(247, 244, 255, 0.78);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.hero-frame--main {
  grid-row: 1 / -1;
  transform: translateY(22px);
}

.hero-frame--top {
  margin-left: 18px;
}

.hero-frame--bottom {
  margin: -22px 24px 0 0;
}

.registration-mark {
  position: absolute;
  top: 12px;
  left: 24px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(211, 194, 255, 0.55);
  border-radius: 50%;
}

.registration-mark::before,
.registration-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(211, 194, 255, 0.55);
  transform: translate(-50%, -50%);
}

.registration-mark::before {
  width: 34px;
  height: 1px;
}

.registration-mark::after {
  width: 1px;
  height: 34px;
}

.hero-footer {
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hero-scroll i {
  position: relative;
  width: 48px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--violet);
  animation: scrollLine 2.4s ease-in-out infinite;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.hero-capabilities span:not(:last-child)::after {
  content: "/";
  margin-left: 22px;
  color: var(--violet);
}

.hero-contact {
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.hero-contact span {
  margin-left: 10px;
  color: var(--violet);
}

@keyframes scrollLine {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-label > span:first-child {
  color: var(--violet);
}

.personal-statement {
  position: relative;
  padding: clamp(110px, 14vw, 210px) 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(135, 92, 231, 0.18), transparent 28%),
    linear-gradient(180deg, #0b0915 0%, #0b0915 100%);
}

.personal-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 10, 0.45), transparent 22%, transparent 76%, rgba(5, 5, 10, 0.45));
  pointer-events: none;
}

.statement-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 70px clamp(60px, 8vw, 140px);
  align-items: start;
}

.statement-heading h2,
.works-heading h2,
.resume-heading h2,
.contact-heading h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.statement-heading .section-label {
  margin-bottom: 36px;
}

.statement-heading h2 {
  background: linear-gradient(180deg, #fff 0%, #f7f4ff 38%, #c7b4f4 76%, #8b6bc9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(3.2rem, 6.4vw, 7.5rem);
  filter: drop-shadow(0 0 36px rgba(178, 145, 255, 0.13));
}

.statement-heading h2 em {
  font-style: normal;
}

.statement-copy {
  padding-top: 62px;
}

.statement-copy p {
  max-width: 680px;
  color: var(--muted-strong);
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 2;
}

.statement-copy p + p {
  margin-top: 30px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.85;
}

.profile-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.profile-facts > div {
  min-height: 150px;
  padding: 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(185, 155, 255, 0.1), transparent 44%),
    rgba(13, 11, 22, 0.95);
}

.profile-facts dt {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.profile-facts dd {
  margin-top: 32px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.6;
}

.selected-works {
  position: relative;
  padding: clamp(110px, 14vw, 210px) 0 clamp(130px, 16vw, 240px);
  background:
    radial-gradient(circle at 12% 20%, rgba(92, 52, 166, 0.17), transparent 30%),
    linear-gradient(180deg, #08070f 0%, #05050a 28%, #0b0915 100%);
}

.works-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: 80px;
  align-items: end;
}

.works-heading .section-label {
  margin-bottom: 30px;
}

.works-heading h2,
.resume-heading h2 {
  background: linear-gradient(180deg, #fff 0%, #f7f4ff 45%, #bda7ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(4rem, 8.4vw, 10rem);
}

.works-heading h2 span {
  color: var(--violet);
  -webkit-text-fill-color: var(--violet);
  text-shadow: 0 0 28px rgba(185, 155, 255, 0.35);
}

.works-heading-copy {
  display: grid;
  gap: 22px;
  padding-bottom: 12px;
}

.works-heading-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.filter-count {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.works-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin: 64px 0 34px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(185, 155, 255, 0.04);
  color: var(--muted-strong);
  font-size: 13px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.filter:hover,
.filter.is-active {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--void);
  box-shadow: 0 0 30px rgba(185, 155, 255, 0.22);
}

.works-toolbar > p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.personal-projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.personal-project {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(21, 18, 35, 0.88), rgba(9, 8, 15, 0.96));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition:
    transform 380ms var(--ease),
    border-color 250ms ease,
    box-shadow 380ms ease;
}

.personal-project:nth-child(1),
.personal-project:nth-child(4) {
  grid-column: span 7;
}

.personal-project:nth-child(2),
.personal-project:nth-child(3) {
  grid-column: span 5;
}

.personal-project:nth-child(5),
.personal-project:nth-child(6) {
  grid-column: span 6;
}

.personal-project:hover {
  border-color: rgba(185, 155, 255, 0.46);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.38),
    0 0 44px rgba(117, 78, 205, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-6px);
}

.project-link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 10px;
  overflow: hidden;
  border-radius: 17px;
  background: #0a0910;
}

.project-media--wide {
  aspect-ratio: 16 / 8.3;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(5, 5, 10, 0.5) 100%),
    linear-gradient(110deg, rgba(108, 74, 186, 0.07), transparent 40%);
  pointer-events: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 800ms var(--ease),
    filter 400ms ease;
}

.personal-project:hover .project-media img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

.project-view {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(247, 244, 255, 0.32);
  border-radius: 999px;
  background: rgba(5, 5, 10, 0.52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background-color 220ms ease;
}

.personal-project:hover .project-view,
.project-link:focus-visible .project-view {
  opacity: 1;
  transform: translateY(0);
}

.project-info {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px 26px 30px;
}

.project-no,
.project-tags {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.project-info h3 {
  max-width: 620px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.1vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.project-info p {
  max-width: 680px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.8;
}

.project-tags {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.resume-section {
  position: relative;
  padding: clamp(120px, 15vw, 230px) 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(129, 89, 220, 0.2), transparent 32%),
    linear-gradient(180deg, #0a0812 0%, #0d0a17 44%, #08070f 100%);
}

.resume-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(218, 205, 255, 0.045) 50%, transparent 50.1%);
  pointer-events: none;
}

.resume-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 470px);
  gap: 80px;
  align-items: end;
  margin-bottom: 58px;
}

.resume-heading .section-label {
  margin-bottom: 30px;
}

.resume-heading-copy {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-bottom: 12px;
}

.resume-heading-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.print-resume {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(185, 155, 255, 0.07);
  color: var(--white);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.print-resume:hover {
  border-color: var(--violet);
  background: var(--white);
  color: var(--void);
}

.resume-sheet {
  position: relative;
  font-family: var(--body);
  overflow: hidden;
  padding: clamp(30px, 4.5vw, 68px);
  border: 1px solid rgba(218, 205, 255, 0.25);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 2%, rgba(139, 95, 238, 0.16), transparent 26%),
    linear-gradient(145deg, rgba(20, 17, 33, 0.98), rgba(9, 8, 15, 0.99));
  box-shadow:
    0 50px 150px rgba(0, 0, 0, 0.46),
    0 0 90px rgba(100, 64, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.resume-sheet::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -110px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(185, 155, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(185, 155, 255, 0.018),
    0 0 0 120px rgba(185, 155, 255, 0.012);
  pointer-events: none;
}

.resume-masthead {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 21vw, 280px);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.resume-overline,
.resume-id,
.resume-footer {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.resume-overline {
  color: var(--violet);
}

.resume-identity h3 {
  margin: 24px 0 8px;
  background: linear-gradient(180deg, #fff, #d4c4f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.resume-identity > p {
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1vw, 0.98rem);
  letter-spacing: 0.06em;
}

.resume-id {
  display: block;
  margin-top: 34px;
}

.resume-portrait {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  align-content: end;
  gap: 6px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(185, 155, 255, 0.2), transparent 55%),
    radial-gradient(circle at 50% 22%, rgba(211, 194, 255, 0.2), transparent 28%),
    rgba(185, 155, 255, 0.045);
}

.resume-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

.resume-portrait::before,
.resume-portrait::after {
  content: "";
  position: absolute;
}

.resume-portrait::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(211, 194, 255, 0.16);
}

.resume-portrait::after {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(5, 5, 10, 0.82) 100%),
    linear-gradient(140deg, rgba(108, 74, 186, 0.12), transparent 55%);
}

.resume-portrait span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
}

.resume-portrait span {
  color: var(--violet);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.resume-rule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin: 20px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resume-rule span {
  width: 42%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), rgba(185, 155, 255, 0));
}

.resume-rule i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--violet);
  border-radius: 50%;
}

.resume-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.55fr);
  gap: clamp(36px, 6vw, 90px);
}

.resume-main,
.resume-aside {
  display: grid;
  align-content: start;
  gap: 42px;
}

.resume-block > header {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.resume-block > header > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
}

.resume-block > header h4 {
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.45vw, 1.46rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.resume-block > header em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.09em;
}

.resume-entry + .resume-entry {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed rgba(218, 205, 255, 0.13);
}

.resume-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.resume-entry-meta strong {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 500;
  text-align: right;
}

.resume-copy {
  display: grid;
  gap: 10px;
  color: var(--muted-strong);
  font-size: var(--type-secondary);
  line-height: 1.75;
}

.resume-copy p {
  color: inherit;
}

.resume-copy--compact {
  gap: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.65;
}

.resume-job {
  margin-top: 0;
}

.resume-points {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.resume-points li {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.66;
}

.resume-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
}

.resume-placeholder {
  display: grid;
  gap: 11px;
  min-height: 64px;
  align-content: start;
}

.resume-placeholder span {
  display: block;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(218, 205, 255, 0.32), rgba(218, 205, 255, 0.12) 72%, transparent);
}

.resume-placeholder span:nth-child(2) {
  width: 91%;
}

.resume-placeholder span:nth-child(3) {
  width: 68%;
}

.resume-placeholder--profile {
  min-height: 110px;
  gap: 18px;
}

.resume-contact-list {
  display: grid;
  gap: 15px;
}

.resume-contact-list > div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: baseline;
}

.resume-contact-list dt {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
}

.resume-contact-list dd {
  min-width: 0;
  color: var(--muted-strong);
  font-size: var(--type-secondary);
  overflow-wrap: anywhere;
}

.resume-contact-list a:hover {
  color: var(--white);
}

.resume-skill-list {
  display: grid;
  gap: 0;
}

.resume-skill-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(218, 205, 255, 0.09);
  color: var(--muted-strong);
  font-size: var(--type-secondary);
}

.resume-skill-list span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(185, 155, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.personal-contact {
  padding: clamp(120px, 15vw, 230px) 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(145, 100, 243, 0.22), transparent 30%),
    linear-gradient(180deg, #0b0915 0%, #0a0812 48%, #05050a 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: end;
}

.contact-heading .section-label {
  margin-bottom: 34px;
}

.contact-heading h2 {
  background: linear-gradient(180deg, #fff 0%, #d9cbf6 72%, #8f70ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(3.6rem, 7.4vw, 8.6rem);
}

.contact-heading h2 em {
  font-style: normal;
}

.contact-panel {
  display: grid;
  gap: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(18, 16, 29, 0.74);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.contact-panel > p {
  color: var(--muted);
  line-height: 1.9;
}

.contact-links {
  display: grid;
}

.contact-links a {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 10px;
  transition: color 180ms ease;
}

.contact-links a:hover {
  color: var(--white);
}

.contact-links a span {
  color: var(--violet);
  font-size: 8px;
}

.contact-links a i {
  font-style: normal;
}

.personal-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding: 28px 36px;
  border-top: 1px solid var(--line);
  background: #05050a;
  color: var(--muted);
}

.personal-footer > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.personal-footer > div a {
  color: var(--white);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}

.personal-footer > div span,
.personal-footer p,
.back-to-top {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.back-to-top {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.back-to-top:hover {
  border-color: var(--violet);
  color: var(--white);
}

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 48px, 1180px);
  }

  .personal-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    padding-inline: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(7rem, 14vw, 11rem);
  }

  .statement-grid {
    grid-template-columns: 1fr 1fr;
    gap: 54px;
  }

  .contact-grid {
    gap: 64px;
  }

  .personal-footer {
    grid-template-columns: 1fr auto;
  }

  .personal-footer > p {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
    --shell: min(100% - 36px, 820px);
  }

  .personal-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .desktop-nav,
  .availability {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .personal-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
    padding: calc(var(--header-h) + 32px) 18px 24px;
  }

  .hero-copy {
    padding: 34px 0 18px;
  }

  .hero-copy h1 {
    font-size: clamp(5.3rem, 19vw, 9rem);
  }

  .hero-summary {
    max-width: 580px;
  }

  .hero-collage {
    min-height: 520px;
    padding: 12px 0 30px;
  }

  .hero-footer {
    grid-template-columns: 1fr auto;
  }

  .hero-capabilities {
    display: none;
  }

  .statement-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .statement-copy {
    padding-top: 0;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-facts > div {
    min-height: 112px;
  }

  .profile-facts dd {
    margin-top: 18px;
  }

  .works-heading,
  .resume-heading,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .works-heading-copy,
  .resume-heading-copy {
    padding-bottom: 0;
  }

  .works-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .personal-project:nth-child(n) {
    grid-column: span 6;
  }

  .resume-masthead {
    grid-template-columns: 1fr minmax(160px, 0.48fr);
  }

  .resume-columns {
    grid-template-columns: 1fr;
  }

  .resume-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-block:first-child {
    grid-column: 1 / -1;
  }

  .contact-panel {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .brand-copy small {
    display: none;
  }

  .hero-rule span:last-child {
    display: none;
  }

  .eyebrow {
    margin-bottom: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(4.5rem, 23vw, 7rem);
  }

  .hero-copy h1 em {
    font-size: 1rem;
  }

  .hero-summary {
    font-size: 0.96rem;
  }

  .hero-collage {
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 420px;
    gap: 9px;
  }

  .hero-frame {
    border-radius: 16px;
  }

  .hero-frame figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    font-size: 6px;
  }

  .hero-frame--top {
    margin-left: 0;
  }

  .hero-frame--bottom {
    margin: -14px 8px 0 0;
  }

  .hero-footer {
    grid-template-columns: 1fr;
  }

  .hero-contact {
    display: none;
  }

  .statement-heading h2,
  .contact-heading h2 {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
  }

  .works-heading h2,
  .resume-heading h2 {
    font-size: clamp(3.7rem, 17vw, 6rem);
  }

  .filters {
    width: 100%;
  }

  .filter {
    flex: 1;
    padding-inline: 14px;
  }

  .personal-projects {
    gap: 14px;
  }

  .personal-project:nth-child(n) {
    grid-column: 1 / -1;
    border-radius: 19px;
  }

  .project-media,
  .project-media--wide {
    aspect-ratio: 16 / 10;
    margin: 8px;
    border-radius: 13px;
  }

  .project-view {
    opacity: 1;
    transform: none;
  }

  .project-info {
    padding: 16px 18px 24px;
  }

  .resume-sheet {
    padding: 22px;
    border-radius: 20px;
  }

  .resume-masthead {
    grid-template-columns: 1fr;
  }

  .resume-portrait {
    width: min(100%, 210px);
  }

  .resume-identity h3 {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .resume-id {
    margin-top: 22px;
  }

  .resume-aside {
    grid-template-columns: 1fr;
  }

  .resume-block:first-child {
    grid-column: auto;
  }

  .resume-entry-meta {
    flex-direction: column;
    gap: 4px;
  }

  .resume-footer {
    flex-direction: column;
  }

  .contact-links a {
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
    font-size: 9px;
  }

  .personal-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .personal-footer > div {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  :root {
    --white: #181522;
    --muted: #595366;
    --muted-strong: #332d40;
    --violet: #6846a3;
    --violet-bright: #6846a3;
    --line: rgba(55, 42, 78, 0.22);
    --line-strong: rgba(55, 42, 78, 0.34);
  }

  html,
  body {
    background: #fff !important;
    color: #181522 !important;
  }

  body::before,
  .personal-header,
  .mobile-menu,
  .personal-hero,
  .personal-statement,
  .selected-works,
  .personal-contact,
  .personal-footer,
  .skip-link {
    display: none !important;
  }

  .resume-section {
    padding: 0 !important;
    background: #fff !important;
  }

  .resume-section::before {
    display: none;
  }

  .resume-heading {
    display: none;
  }

  .resume-sheet {
    width: 122%;
    max-width: none;
    padding: 6mm 7mm;
    border: 1px solid rgba(55, 42, 78, 0.25);
    border-radius: 0;
    background: #fff !important;
    box-shadow: none;
    break-inside: avoid;
    transform-origin: top left;
    zoom: 0.82;
  }

  .resume-sheet::before {
    display: none;
  }

  .resume-identity h3 {
    background: none;
    color: #181522;
    -webkit-text-fill-color: #181522;
    margin: 3mm 0 1mm;
    font-size: 36pt;
  }

  .resume-masthead {
    grid-template-columns: 1fr 36mm;
    gap: 9mm;
  }

  .resume-portrait {
    width: 100%;
    padding: 3mm;
    background:
      linear-gradient(145deg, rgba(104, 70, 163, 0.1), transparent 60%),
      #f4f1f8;
  }

  .resume-id {
    margin-top: 3mm;
  }

  .resume-rule {
    height: 4mm;
    margin: 3mm 0 4mm;
  }

  .resume-columns {
    grid-template-columns: 0.8fr 1.55fr;
    gap: 7mm;
  }

  .resume-main,
  .resume-aside {
    grid-template-columns: 1fr;
    gap: 4mm;
  }

  .resume-block:first-child {
    grid-column: auto;
  }

  .resume-block > header {
    margin-bottom: 2mm;
    padding-bottom: 1.5mm;
  }

  .resume-placeholder {
    min-height: 6mm;
    gap: 1.5mm;
  }

  .resume-placeholder--profile {
    min-height: 14mm;
    gap: 2.5mm;
  }

  .resume-entry + .resume-entry {
    margin-top: 3mm;
    padding-top: 3mm;
  }

  .resume-entry-meta {
    margin-bottom: 2mm;
  }

  .resume-placeholder span {
    background: linear-gradient(90deg, rgba(55, 42, 78, 0.26), rgba(55, 42, 78, 0.08) 72%, transparent);
  }

  .resume-tags span {
    background: #f5f2f8;
  }

  .resume-footer {
    margin-top: 5mm;
    padding-top: 2mm;
  }

  a {
    color: inherit;
  }
}
