:root {
  --desktop-design-width: 1920px;
  --desktop-design-height: 1080px;
  color: #edf0ea;
  background: #0f1114;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #0f1114;
}

@media (min-width: 941px) {
  body {
    overflow-x: clip;
  }

  main {
    width: var(--desktop-design-width);
  }
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #111417;
  background: #d6ff64;
}

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(15, 17, 20, 0.78);
  border-bottom: 1px solid rgba(237, 240, 234, 0.13);
  backdrop-filter: blur(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

body.cover-active .topbar {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
}

.topbar.cover-hidden {
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateY(-100%) !important;
}

.brand,
.nav,
.hero-actions,
.cover-brand,
.work-tools,
.project-meta,
.tags,
.modal-stats,
footer,
.sent-message {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 24px;
  border: 1px solid rgba(214, 255, 100, 0.62);
  border-radius: 4px;
  color: #d6ff64;
  font-size: 10px;
}

.nav {
  gap: 28px;
  color: rgba(237, 240, 234, 0.76);
  font-size: 14px;
}

.nav a:hover {
  color: #d6ff64;
}

.nav a.active {
  color: #d6ff64;
}

.nav a,
.brand,
.cover-enter,
.bio-next,
.primary-action,
.ghost-action,
.icon-button,
.filters button,
.project-card,
.bio-card,
.process-item,
.about-panel,
.contact-panel,
.contact-card {
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.brand:hover,
.cover-enter:hover,
.bio-next:hover,
.nav a:hover {
  transform: translateY(-1px);
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(237, 240, 234, 0.2);
  border-radius: 8px;
  color: #edf0ea;
  background: rgba(255, 255, 255, 0.04);
}

.icon-button:hover {
  border-color: rgba(214, 255, 100, 0.58);
  color: #d6ff64;
  background: rgba(214, 255, 100, 0.08);
}

.icon-button:active,
.primary-action:active,
.ghost-action:active,
.filters button:active,
.cover-enter:active,
.bio-next:active {
  transform: translateY(1px) scale(0.98);
}

.menu-button {
  display: none;
}

main > section + section {
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  z-index: 6;
  height: 42px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(214, 255, 100, 0.84) 18%, rgba(214, 255, 100, 0.84) 82%, transparent),
    repeating-linear-gradient(90deg, rgba(237, 240, 234, 0.34) 0 10px, transparent 10px 30px);
  background-position: center top, center 18px;
  background-size: 100% 1px, 100% 8px;
  background-repeat: no-repeat;
  opacity: 0.9;
}

main > section + section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 7;
  width: 72px;
  height: 22px;
  pointer-events: none;
  border-inline: 1px solid rgba(214, 255, 100, 0.58);
  background: linear-gradient(180deg, rgba(214, 255, 100, 0.18), transparent);
  transform: translateX(-50%);
}

.cover-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px clamp(18px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(237, 240, 234, 0.13);
  background: #0f1114;
}

.cover-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(237, 240, 234, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 240, 234, 0.035) 1px, transparent 1px);
  background-size: 100% 110px, 120px 100%;
}

.cover-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 18, 24, 0.76), rgba(15, 17, 20, 0.38) 32%, rgba(58, 28, 25, 0.46) 70%, rgba(15, 17, 20, 0.72)),
    linear-gradient(0deg, rgba(15, 17, 20, 0.74), transparent 34%, rgba(15, 17, 20, 0.7));
}

.cover-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(0.78) contrast(1.05) brightness(0.7);
  transform: scale(1.02);
  transition: transform 6s ease, opacity 0.6s ease;
}

.cover-page:hover .cover-background {
  transform: scale(1.06);
}

.cover-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100%, 640px);
  text-align: center;
  animation: coverIntro 0.9s ease both;
}

.cover-copy h1 {
  margin: 44px 0 18px;
  max-width: none;
  color: #fbfff4;
  font-size: clamp(86px, 10vw, 148px);
  line-height: 0.95;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.cover-brand {
  justify-content: center;
  gap: 12px;
  color: rgba(237, 240, 234, 0.88);
  font-size: 15px;
  font-weight: 800;
}

.cover-role {
  margin: 0;
  color: rgba(237, 240, 234, 0.74);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.5;
}

.cover-divider {
  width: 1px;
  height: 48px;
  margin: 28px 0 18px;
  background: rgba(237, 240, 234, 0.58);
  transform-origin: top;
  animation: lineDrop 1.2s ease 0.35s both;
}

.cover-line {
  margin: 0 0 18px;
  color: rgba(237, 240, 234, 0.66);
  font-size: 14px;
  font-weight: 800;
}

.cover-enter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(237, 240, 234, 0.78);
  font-size: 24px;
  font-weight: 800;
  animation: arrowPulse 1.6s ease-in-out infinite;
}

.cover-enter:hover {
  color: #d6ff64;
  transform: translateY(4px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 132px clamp(18px, 5vw, 72px) 38px;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.45s ease, transform 0.8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 20, 0.96), rgba(15, 17, 20, 0.72) 42%, rgba(15, 17, 20, 0.22)),
    linear-gradient(0deg, rgba(15, 17, 20, 0.96), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  transform: translateY(12vh);
}

.eyebrow {
  margin: 0 0 14px;
  color: #d6ff64;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  margin-bottom: 18px;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.96;
  font-weight: 500;
}

.hero-content h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.42;
  letter-spacing: 0.02em;
}

.hero-title-nowrap {
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 500;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-copy,
.section-heading p,
.project-card p,
.process-item p,
.about-panel p,
.contact-section p,
.modal-body p,
footer {
  color: rgba(237, 240, 234, 0.72);
  line-height: 1.7;
}

.hero-copy {
  max-width: 600px;
  font-size: 18px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-action,
.ghost-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-action {
  color: #111417;
  background: #d6ff64;
}

.primary-action:hover {
  box-shadow: 0 14px 34px rgba(214, 255, 100, 0.18);
  transform: translateY(-2px);
}

.ghost-action {
  color: #edf0ea;
  background: rgba(237, 240, 234, 0.08);
  border-color: rgba(237, 240, 234, 0.22);
}

.ghost-action:hover {
  border-color: rgba(214, 255, 100, 0.46);
  color: #d6ff64;
  background: rgba(214, 255, 100, 0.07);
  transform: translateY(-2px);
}

.ghost-action.playing {
  color: #111417;
  background: #edf0ea;
}

.hero-preview-label,
.hero-preview-label:hover {
  pointer-events: none;
  color: #edf0ea;
  background: rgba(237, 240, 234, 0.08);
  border-color: rgba(237, 240, 234, 0.22);
  transform: none;
  box-shadow: none;
}

.works-section,
.process-section,
.about-section,
.contact-section {
  min-height: 100vh;
  padding: 96px clamp(18px, 5vw, 72px);
}

.works-section {
  padding-bottom: 38px;
}

.bio-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(10px, 1.8vw, 24px);
  align-items: center;
  padding: 92px clamp(18px, 5vw, 72px) 54px;
  overflow: hidden;
  border-bottom: 1px solid rgba(237, 240, 234, 0.13);
  background: #0f1114;
}

.bio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(237, 240, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 240, 234, 0.03) 1px, transparent 1px);
  background-size: 100% 110px, 120px 100%;
}

.bio-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 17, 20, 0.92), rgba(21, 25, 34, 0.88)),
    radial-gradient(circle at 18% 46%, rgba(47, 143, 140, 0.2), transparent 34%),
    linear-gradient(0deg, rgba(15, 17, 20, 0.82), transparent 38%, rgba(15, 17, 20, 0.74));
}

.bio-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.7) contrast(1.05) brightness(0.48);
  transform: scale(1.02);
  transition: transform 6s ease, opacity 0.6s ease;
}

.bio-section:hover .bio-background {
  transform: scale(1.05);
}

.bio-divider {
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  z-index: 3;
  height: 42px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(214, 255, 100, 0.84) 18%, rgba(214, 255, 100, 0.84) 82%, transparent),
    repeating-linear-gradient(90deg, rgba(237, 240, 234, 0.34) 0 10px, transparent 10px 30px);
  background-position: center top, center 18px;
  background-repeat: no-repeat;
  background-size: 100% 1px, 100% 12px;
  opacity: 0.78;
}

.bio-portrait {
  position: relative;
  z-index: 2;
  width: min(100%, clamp(360px, 32vw, 600px));
  aspect-ratio: 4 / 5;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(237, 240, 234, 0.18);
  border-radius: 8px;
  background: #181d22;
}

.bio-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  opacity: 0.78;
  filter: saturate(0.82) contrast(1.08);
  transition: transform 0.7s ease, opacity 0.4s ease;
}

.bio-portrait:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.bio-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15, 17, 20, 0.88), transparent 52%),
    linear-gradient(90deg, rgba(15, 17, 20, 0.22), transparent);
}

.portrait-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  color: #edf0ea;
}

.portrait-caption span {
  color: #d6ff64;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
}

.portrait-caption strong {
  max-width: 180px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  text-align: right;
}

.bio-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-width: 1160px;
  justify-self: start;
}

.bio-content .section-heading {
  margin-bottom: 18px;
}

.bio-content .bio-intro-line {
  max-width: none;
  white-space: nowrap;
}

.bio-content h2 {
  margin-bottom: 12px;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bio-card {
  min-width: 0;
  min-height: 164px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(237, 240, 234, 0.14);
  border-radius: 8px;
  background: rgba(237, 240, 234, 0.05);
}

.bio-card:hover {
  border-color: rgba(214, 255, 100, 0.34);
  background: rgba(237, 240, 234, 0.075);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.bio-card:hover .bio-index {
  color: #d6ff64;
}

.education-card {
  grid-column: auto;
}

.compact-card {
  min-height: 164px;
}

.bio-index {
  display: block;
  margin-bottom: 10px;
  color: #2f8f8c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.bio-card h3 {
  margin-bottom: 12px;
}

.bio-card h4 {
  margin: 10px 0 6px;
  color: #d6ff64;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.bio-card p,
.bio-card dd {
  color: rgba(237, 240, 234, 0.72);
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-ideograph;
}

.bio-card p {
  margin-bottom: 10px;
}

.bio-card p:last-child {
  margin-bottom: 0;
}

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

.software-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(237, 240, 234, 0.2);
  border-radius: 999px;
  color: rgba(237, 240, 234, 0.78);
  background: rgba(237, 240, 234, 0.045);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.bio-card dl {
  margin-top: 0;
}

.bio-card dd {
  margin-bottom: 12px;
}

.bio-next {
  margin-top: 22px;
}

.bio-next:hover {
  transform: translateY(-2px);
}

.section-heading {
  max-width: min(100%, 780px);
  margin-bottom: clamp(24px, 2.4vw, 34px);
}

.work-tools {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

.filters button {
  min-height: 42px;
  padding: 0 15px;
  color: rgba(237, 240, 234, 0.78);
  border: 1px solid rgba(237, 240, 234, 0.16);
  border-radius: 8px;
  background: rgba(237, 240, 234, 0.04);
}

.filters button:hover {
  border-color: rgba(214, 255, 100, 0.42);
  color: #d6ff64;
  background: rgba(214, 255, 100, 0.07);
}

.filters button.active {
  color: #111417;
  background: #edf0ea;
  box-shadow: 0 10px 24px rgba(237, 240, 234, 0.11);
}

.search-box {
  width: min(100%, 320px);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(237, 240, 234, 0.16);
  border-radius: 8px;
  background: rgba(237, 240, 234, 0.06);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.search-box:focus-within {
  border-color: rgba(214, 255, 100, 0.54);
  background: rgba(237, 240, 234, 0.09);
  box-shadow: 0 0 0 3px rgba(214, 255, 100, 0.08);
}

.search-box input {
  width: 100%;
  color: #edf0ea;
  border: 0;
  outline: 0;
  background: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(237, 240, 234, 0.14);
}

.project-card:hover {
  border-color: rgba(214, 255, 100, 0.3);
  transform: translateY(-4px);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #222;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-card.entering {
  animation: cardIn 0.42s ease both;
}

.project-image span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  transition: background 0.22s ease, color 0.22s ease;
}

.project-card:hover .project-image span {
  color: #111417;
  background: #d6ff64;
}

.project-meta {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.project-meta p,
.role {
  margin-bottom: 6px;
  color: #d6ff64;
  font-size: 13px;
  font-weight: 800;
}

.project-card .project-meta h3 {
  font-size: 24px;
  line-height: 1.32;
}

.tags {
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.project-card .tags {
  margin-top: auto;
  padding-top: 8px;
}

.project-card .tags span {
  padding: 6px 10px;
  font-size: 14px;
}

.works-contact-action {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.tags span {
  padding: 5px 8px;
  border-radius: 6px;
  color: rgba(237, 240, 234, 0.72);
  background: rgba(237, 240, 234, 0.07);
  font-size: 12px;
  transition: color 0.22s ease, background 0.22s ease;
}

.project-card:hover .tags span,
.project-modal .tags span:hover {
  color: #111417;
  background: rgba(214, 255, 100, 0.9);
}

.process-section {
  background: #dfe5df;
  color: #111417;
}

.process-section .eyebrow {
  color: #2f8f8c;
}

.process-section .section-heading p,
.process-item p {
  color: rgba(17, 20, 23, 0.68);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 20, 23, 0.16);
}

.process-item {
  padding: 28px;
  background: #dfe5df;
}

.process-item:hover {
  background: #edf2ea;
  transform: translateY(-3px);
}

.process-item span {
  display: inline-block;
  margin-bottom: 42px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  color: #2f8f8c;
}

.about-section,
.contact-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
  gap: clamp(6px, 1vw, 12px);
  align-items: center;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(237, 240, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 240, 234, 0.03) 1px, transparent 1px);
  background-size: 100% 110px, 120px 100%;
}

.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 18, 24, 0.74), rgba(15, 17, 20, 0.44) 34%, rgba(58, 28, 25, 0.42) 72%, rgba(15, 17, 20, 0.78)),
    linear-gradient(0deg, rgba(15, 17, 20, 0.82), transparent 38%, rgba(15, 17, 20, 0.72));
}

.contact-divider {
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  z-index: 3;
  height: 42px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(214, 255, 100, 0.84) 18%, rgba(214, 255, 100, 0.84) 82%, transparent),
    repeating-linear-gradient(90deg, rgba(237, 240, 234, 0.34) 0 10px, transparent 10px 30px);
  background-position: center top, center 18px;
  background-repeat: no-repeat;
  background-size: 100% 1px, 100% 12px;
  opacity: 0.78;
}

.about-panel,
.contact-panel {
  padding: 28px;
  border: 1px solid rgba(237, 240, 234, 0.15);
  border-radius: 8px;
  background: rgba(237, 240, 234, 0.05);
}

.about-panel:hover,
.contact-panel:hover {
  border-color: rgba(214, 255, 100, 0.28);
  background: rgba(237, 240, 234, 0.07);
}

dl {
  margin: 24px 0 0;
}

dt {
  color: #d6ff64;
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 4px 0 18px;
  color: rgba(237, 240, 234, 0.82);
}

.contact-section {
  border-top: 1px solid rgba(237, 240, 234, 0.13);
  background: #0f1114;
}

.contact-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.78) contrast(1.05) brightness(0.68);
  transform: scale(1.02);
  transition: transform 6s ease, opacity 0.6s ease;
}

.contact-section:hover .contact-background {
  transform: scale(1.06);
}

.contact-panel {
  position: relative;
  z-index: 2;
}

.contact-copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
  transform: translate(42px, 12vh);
}

.contact-copy .eyebrow {
  margin-bottom: 18px;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: 0.02em;
}

.contact-copy .eyebrow span {
  margin-left: 14px;
}

.contact-copy h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.42;
  letter-spacing: -0.04em;
}

.contact-title-nowrap {
  white-space: nowrap;
}

.contact-copy p:not(.eyebrow) {
  max-width: 600px;
  font-size: 18px;
  line-height: 2;
}

.contact-panel {
  display: grid;
  justify-self: end;
  width: min(100%, 900px);
  gap: 14px;
}

.contact-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(237, 240, 234, 0.13);
  border-radius: 8px;
  background: rgba(15, 17, 20, 0.44);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 255, 100, 0.34);
  background: rgba(237, 240, 234, 0.075);
}

.contact-card span {
  color: #d6ff64;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-card h3 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
}

.contact-card p {
  margin: 0;
  color: rgba(237, 240, 234, 0.76);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(237, 240, 234, 0.74);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(237, 240, 234, 0.16);
  border-radius: 8px;
  color: #edf0ea;
  background: rgba(15, 17, 20, 0.52);
  outline: 0;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(214, 255, 100, 0.54);
  background: rgba(15, 17, 20, 0.72);
  box-shadow: 0 0 0 3px rgba(214, 255, 100, 0.08);
}

input {
  height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.sent-message {
  gap: 8px;
  margin: 0;
  color: #d6ff64;
  display: none;
}

.sent-message.visible {
  display: flex;
  animation: cardIn 0.3s ease both;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(237, 240, 234, 0.12);
  font-size: 13px;
}

.site-footer {
  background: rgba(8, 10, 11, 0.92);
  color: rgba(237, 240, 234, 0.62);
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  min-width: 0;
}

.icp-link {
  color: rgba(237, 240, 234, 0.58);
  text-decoration: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.icp-link:hover {
  color: #d6ff64;
  text-shadow: 0 0 18px rgba(214, 255, 100, 0.22);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.24s ease;
}

.modal-backdrop.hidden {
  pointer-events: none;
  opacity: 0;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 240, 234, 0.14);
  border-radius: 8px;
  color: rgba(237, 240, 234, 0.72);
}

.project-modal {
  position: relative;
  width: min(1180px, 100%);
  height: min(660px, 92vh);
  max-height: min(660px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(237, 240, 234, 0.18);
  border-radius: 8px;
  background: #111417;
  transform: translateY(0) scale(1);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.modal-backdrop.hidden .project-modal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.project-modal > img,
.modal-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #07090a;
}

.modal-video {
  outline: 0;
}

.project-modal.has-video .modal-video {
  object-fit: contain;
}

.modal-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  padding: 34px;
}

.modal-body h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.38;
}

.modal-body > p:not(.eyebrow):not(.role) {
  text-align: justify;
  text-justify: inter-ideograph;
}

.modal-stats {
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
  color: rgba(237, 240, 234, 0.78);
}

.modal-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-stat::before {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.modal-stat-time::before {
  content: "◷";
  color: rgba(237, 240, 234, 0.82);
}

.modal-stat-type::before {
  content: "▰";
  color: #c7a24a;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(15, 17, 20, 0.66);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes coverIntro {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineDrop {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes arrowPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 941px) {
  .topbar {
    padding-inline: 56px;
  }

  main > section + section::before,
  .bio-divider,
  .contact-divider {
    left: 72px;
    right: 72px;
  }

  .cover-page,
  .bio-section,
  .hero,
  .works-section,
  .contact-section {
    min-height: var(--desktop-design-height);
  }

  .cover-page,
  .works-section,
  .contact-section {
    padding-inline: 72px;
  }

  .cover-copy h1 {
    font-size: 148px;
  }

  .cover-role {
    font-size: 25px;
  }

  .hero {
    padding: 132px 72px 38px;
  }

  .hero-content,
  .contact-copy {
    transform: translateY(129.6px);
  }

  .hero-content .eyebrow,
  .contact-copy .eyebrow {
    font-size: 24px;
  }

  h1 {
    font-size: 104px;
  }

  .hero-content h1 {
    font-size: 72px;
  }

  .contact-copy h2 {
    font-size: 72px;
  }

  h2 {
    font-size: 64px;
  }

  .bio-section {
    gap: 24px;
    padding: 92px 72px 54px;
  }

  .bio-portrait {
    width: min(100%, 600px);
  }

  .portrait-caption span {
    font-size: 26px;
  }

  .portrait-caption strong {
    font-size: 46px;
  }

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

  .about-section,
  .contact-section {
    gap: 12px;
  }

  .contact-copy {
    transform: translate(42px, 129.6px);
  }

  .contact-card h3 {
    font-size: 38px;
  }

  .contact-card p {
    font-size: 24px;
  }

  footer {
    padding-inline: 72px;
  }

  .project-modal {
    height: 660px;
    max-height: 660px;
  }

  .modal-body h2 {
    font-size: 42px;
  }
}

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

@media (max-width: 940px) {
  .bio-section,
  .project-grid,
  .process-list,
  .about-section,
  .contact-section,
  .project-modal {
    grid-template-columns: 1fr;
  }

  .project-modal > img,
  .modal-video {
    min-height: 320px;
    max-height: 46vh;
  }

  .project-modal.has-video .modal-video {
    min-height: 0;
    max-height: none;
  }

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

@media (max-width: 720px) {
  .menu-button {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 18px;
    border: 1px solid rgba(237, 240, 234, 0.16);
    border-radius: 8px;
    background: #111417;
  }

  .nav.open {
    display: grid;
    gap: 16px;
  }

  .hero {
    min-height: 100vh;
  }

  .bio-section {
    min-height: auto;
    padding-top: 90px;
  }

  .bio-portrait,
  .bio-portrait img {
    min-height: 380px;
  }

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

  .bio-content .bio-intro-line {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .education-card {
    grid-column: auto;
  }

  .cover-page {
    min-height: 100vh;
    padding-inline: 20px;
  }

  .cover-copy h1 {
    margin-top: 38px;
    font-size: clamp(72px, 25vw, 104px);
  }

  .cover-brand {
    font-size: 13px;
  }

  .cover-role {
    font-size: 18px;
  }

  .work-tools,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .search-box {
    width: 100%;
  }
}
