:root {
  color-scheme: dark;
  --bg: #050607;
  --line: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.62);
  --cyan: #54e6ff;
  --violet: #7a3cff;
  --orange: #ff7a2f;
  --max: 1180px;
}

/* PSD-authored project gallery */
.works-section {
  position: relative;
}

.project-grid {
  align-items: start;
}

.psd-project-card {
  height: auto;
  aspect-ratio: 427 / 708;
  border-radius: clamp(10px, 1.5vw, 24px);
  background: transparent;
  box-shadow: 0 26px 72px rgba(0, 8, 28, 0.24);
}

.psd-project-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.psd-project-card:hover img {
  filter: saturate(1.04) brightness(1.03);
  transform: scale(1.025);
}

.wide-project-card {
  grid-column: 1 / span 3;
  width: 100%;
  aspect-ratio: 1259 / 708;
  justify-self: start;
}

.project-grid-caption {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  width: 100%;
  align-self: end;
  margin-bottom: 8%;
  padding-right: 4%;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(14px, 1.35vw, 24px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  text-align: right;
}

.project-grid-caption span {
  white-space: nowrap;
}

.project-grid-caption i,
.project-grid-caption i::before,
.project-grid-caption i::after {
  display: block;
  width: 38px;
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
}

.project-grid-caption i {
  position: relative;
  margin-top: 7px;
}

.project-grid-caption i::before,
.project-grid-caption i::after {
  position: absolute;
  right: 0;
  content: "";
}

.project-grid-caption i::before {
  top: -9px;
}

.project-grid-caption i::after {
  top: 9px;
}

.campaign-section {
  position: relative;
  padding-bottom: 112px;
}

.campaign-heading {
  padding-top: 92px;
}

.campaign-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr);
  gap: clamp(18px, 2.1vw, 36px);
  overflow: hidden;
  min-height: 620px;
  border-radius: 8px;
  padding: clamp(18px, 2.5vw, 42px);
  background: rgba(2, 6, 16, 0.92);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.4),
    0 0 70px rgba(25, 157, 226, 0.1);
  isolation: isolate;
}

.campaign-media {
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: 6px;
  background: #02050d;
}

.campaign-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.campaign-showcase:hover .campaign-media img {
  filter: brightness(1.04) saturate(1.04);
  transform: scale(1.025);
}

.campaign-info {
  position: absolute;
  z-index: 3;
  bottom: clamp(30px, 4vw, 68px);
  left: clamp(30px, 4vw, 68px);
  display: grid;
  width: min(44%, 720px);
  gap: 12px;
  border-radius: 8px;
  padding: clamp(20px, 2.4vw, 38px);
  background: linear-gradient(180deg, rgba(31, 37, 47, 0.93), rgba(14, 16, 20, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.campaign-info small {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.campaign-info strong {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 900;
  line-height: 1.1;
}

.campaign-info em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-style: normal;
}

.campaign-info .glossy-mini {
  width: fit-content;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .wide-project-card {
    grid-column: 1 / -1;
    width: 100%;
  }

  .project-grid-caption {
    display: none;
  }

  .campaign-showcase {
    min-height: 480px;
  }

  .campaign-info {
    width: 52%;
  }
}

@media (max-width: 640px) {
  .section-wrap.campaign-section {
    width: min(96vw, 1200px);
  }

  .psd-project-card,
  .project-card.psd-project-card {
    height: auto;
    aspect-ratio: 427 / 708;
  }

  .wide-project-card,
  .project-card.wide-project-card {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 1259 / 708;
  }

  .campaign-section {
    padding-bottom: 72px;
  }

  .campaign-heading {
    padding-top: 64px;
  }

  .campaign-showcase {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.9fr);
    gap: 8px;
    min-height: 300px;
    padding: 8px;
  }

  .campaign-info {
    bottom: 16px;
    left: 16px;
    width: 56%;
    gap: 5px;
    padding: 11px;
  }

  .campaign-info small {
    font-size: 7px;
  }

  .campaign-info strong {
    font-size: 15px;
  }

  .campaign-info em {
    font-size: 8px;
  }

  .campaign-info .glossy-mini {
    min-height: 22px;
    margin-top: 2px;
    padding: 0 10px;
    font-size: 8px;
  }
}

@font-face {
  font-family: "Source Han Sans CN";
  src: url("../assets/fonts/SourceHanSansCN-ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans CN";
  src: url("../assets/fonts/SourceHanSansCN-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../assets/fonts/MiSans-Normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../assets/fonts/MiSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans CN";
  src: url("../assets/fonts/SourceHanSansCN-Heavy.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 7%, rgba(45, 133, 223, 0.2), transparent 31rem),
    radial-gradient(circle at 50% 0%, rgba(34, 139, 255, 0.13), transparent 40rem),
    linear-gradient(180deg, #061a2b 0%, #061a2b 38%, #061a2b 100%);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif;
}

main {
  background:
    linear-gradient(rgba(92, 174, 238, 0.051) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 174, 238, 0.051) 1px, transparent 1px),
    radial-gradient(ellipse 64% 18% at 50% 18%, rgba(32, 111, 181, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(6, 26, 43, 0.98) 0%, rgba(6, 26, 43, 0.98) 100%);
  background-size: 96px 96px, 96px 96px, auto, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(105, 190, 255, 0.072) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 190, 255, 0.072) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 62%, transparent 100%);
}

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

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

.section-wrap {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 50;
  display: grid;
  width: min(calc(100% - 36px), 1884px);
  min-height: 106px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  padding: 12px 70px 12px 48px;
  border: 2px solid rgba(154, 202, 255, 0.78);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(23, 55, 109, 0.98), rgba(18, 45, 91, 0.98));
  box-shadow:
    0 12px 34px rgba(0, 21, 72, 0.42),
    inset 0 2px 1px rgba(255, 255, 255, 0.28),
    inset 0 -2px 8px rgba(72, 149, 255, 0.22),
    0 0 0 2px rgba(42, 103, 222, 0.3),
    0 0 24px rgba(37, 106, 255, 0.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-brand,
.nav-center,
.nav-action {
  display: flex;
  align-items: center;
}

.nav-brand {
  position: relative;
  gap: 48px;
  color: #fff;
  font-size: 30px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-brand::after {
  width: 1px;
  height: 36px;
  margin-left: 70px;
  background: rgba(255, 255, 255, 0.86);
  content: "";
}

.brand-home-icon {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  color: #f5f8ff;
}

.brand-home-icon svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.55;
  filter: drop-shadow(12px 0 0 rgba(21, 86, 255, 0.85));
}

.nav-center {
  justify-content: center;
  gap: clamp(36px, 5.2vw, 98px);
  min-width: 0;
  transform: translateX(47px);
}

.nav-center a,
.nav-action,
.nav-pill {
  border-radius: 999px;
  padding: 10px 4px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(18px, 1.45vw, 29px);
  font-weight: 450;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-center a:hover,
.nav-action:hover,
.nav-pill:hover {
  background: rgba(72, 162, 255, 0.18);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(126, 211, 255, 0.12),
    0 0 24px rgba(84, 145, 255, 0.12);
}

.nav-action {
  justify-self: end;
  padding: 8px 30px;
  background: #0b4df4;
  font-size: clamp(17px, 1.4vw, 27px);
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(7, 68, 246, 0.32);
}

.hero-shell {
  position: relative;
  display: grid;
  min-height: 900px;
  place-items: start center;
  overflow: hidden;
  padding: 138px 24px 92px;
  background:
    radial-gradient(circle at 50% 0%, rgba(52, 148, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 50% 44%, rgba(72, 162, 255, 0.17), transparent 40rem),
    linear-gradient(180deg, #071426 0%, #05080e 52%, #050607 100%);
}

.hero-shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 58%, #050607 100%);
}

.hero-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(126, 211, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 211, 255, 0.055) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 72%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 20px;
  color: #8eeeff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 7vw, 86px);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 26px 90px rgba(0, 0, 0, 0.5);
}

.hero-copy h1 span {
  background: linear-gradient(90deg, #fff 0%, #8eeeff 36%, #2878ff 72%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGradient 5s ease-in-out infinite;
}

.hero-copy p:not(.hero-kicker) {
  max-width: 690px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.ghost-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 211, 255, 0.18);
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-video-frame {
  position: relative;
  z-index: 2;
  width: min(90vw, 1080px);
  margin-top: 42px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #020409;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.52),
    0 0 90px rgba(34, 139, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  padding: 12px;
}

.hero-video-frame.glow-border::before {
  background:
    conic-gradient(
      from var(--border-angle, 0deg),
      rgba(84, 230, 255, 0.08),
      rgba(84, 230, 255, 0.95),
      rgba(40, 120, 255, 0.78),
      rgba(255, 255, 255, 0.22),
      rgba(84, 230, 255, 0.08)
    );
}

.hero-video-frame::after {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  content: "";
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(14, 28, 58, 0.18), transparent 48%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 50% 0%, rgba(84, 230, 255, 0.16), transparent 28rem);
}

.hero-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(4, 14, 28, 0.24), rgba(2, 5, 12, 0.42)),
    url("../assets/video/hero-poster.jpg") center / cover no-repeat,
    #071426;
}

.hero-video-fallback {
  position: absolute;
  z-index: 2;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  border-radius: 6px;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.hero-video-fallback.is-active {
  opacity: 1;
}

.directory-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0 100px;
  background:
    linear-gradient(rgba(92, 174, 238, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 174, 238, 0.042) 1px, transparent 1px),
    radial-gradient(ellipse 34% 24% at 78% 16%, rgba(48, 139, 210, 0.1), transparent 100%),
    linear-gradient(180deg, rgba(6, 26, 43, 0.94) 0%, rgba(6, 26, 43, 0.98) 100%);
  background-size: 96px 96px, 96px 96px, auto, auto;
}

.directory-section::before {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 120vw;
  transform: translateX(-50%);
  content: "DESIGNER WORKS";
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(82px, 15vw, 230px);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.kicker {
  margin: 0 0 12px;
  color: #89edff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.directory-title {
  margin: 0;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 0.92;
}

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

.directory-card {
  position: relative;
  display: grid;
  min-height: 132px;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(4, 8, 16, 0.68);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.directory-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 26px 84px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(84, 230, 255, 0.12);
}

.directory-card strong,
.directory-card em {
  display: block;
}

.directory-card strong {
  font-size: 18px;
  font-weight: 900;
}

.directory-card em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
}

.directory-card i {
  position: absolute;
  bottom: 20px;
  left: 108px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), transparent);
}

.directory-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 15%),
    linear-gradient(145deg, #28b7ff, #7a3cff 58%, #d429ff);
  box-shadow:
    0 16px 32px rgba(122, 60, 255, 0.36),
    0 0 28px rgba(84, 230, 255, 0.18),
    inset 0 2px 3px rgba(255, 255, 255, 0.36);
}

.directory-icon svg {
  width: 28px;
  height: 28px;
}

.profile-section {
  padding: 104px 0 16px;
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  min-height: 720px;
  gap: 46px;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(38px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 22%, rgba(84, 230, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 14% 18%, rgba(40, 120, 255, 0.16), transparent 28rem),
    linear-gradient(108deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.035) 45%, rgba(19, 70, 92, 0.14)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(5, 9, 20, 0.72);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.profile-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 45% 35%, #000, transparent 78%);
}

.profile-card::after {
  position: absolute;
  right: 2%;
  top: -7%;
  pointer-events: none;
  content: "ABOUT ME.";
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(64px, 8vw, 132px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.8;
  white-space: nowrap;
}

.profile-main,
.profile-side {
  position: relative;
  z-index: 1;
}

.profile-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.profile-ornaments {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 48px;
}

.profile-ornaments span {
  width: 86px;
  height: 18px;
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0 4px, rgba(255, 255, 255, 0.2) 4px 7px);
}

.profile-ornaments i {
  display: block;
  width: 86px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  background:
    radial-gradient(circle at 76% 50%, #fff 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 34%, rgba(255, 255, 255, 0.55) 35% 36%, transparent 37%);
}

.profile-hello {
  position: relative;
  width: fit-content;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(78px, 9vw, 148px);
  font-weight: 950;
  letter-spacing: 0.035em;
  line-height: 0.82;
}

.profile-hello span {
  position: relative;
  color: #1f6cff;
}

.profile-hello span::before,
.profile-hello span::after {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 0.12em;
  content: "";
  background: #1f6cff;
}

.profile-hello span::before {
  top: 0.28em;
}

.profile-hello span::after {
  bottom: 0.25em;
}

.profile-hello em {
  position: absolute;
  right: -122px;
  bottom: -4px;
  background: linear-gradient(90deg, #5cecff, #226dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(28px, 3.2vw, 48px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

.profile-intro {
  max-width: 560px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.9;
}

.profile-ratio {
  display: flex;
  gap: 58px;
  margin-top: 46px;
}

.profile-ratio span,
.profile-ratio strong,
.profile-ratio em {
  display: block;
}

.profile-ratio strong {
  color: #2e78ff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}

.profile-ratio em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-weight: 750;
}

.profile-copy {
  display: grid;
  max-width: 700px;
  gap: 8px;
  margin-top: 34px;
}

.profile-copy strong {
  color: #2d7bff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.profile-copy p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.75;
}

.profile-tools {
  margin-top: 20px;
}

.profile-tools span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.profile-tools div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tools b {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(84, 230, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(26, 61, 112, 0.84), rgba(5, 10, 24, 0.82));
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.profile-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 720px;
  margin-top: 46px;
}

.profile-capabilities div {
  position: relative;
  padding-top: 14px;
  border-top: 2px solid rgba(72, 226, 255, 0.72);
}

.profile-capabilities strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 950;
}

.profile-capabilities p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
}

.profile-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.profile-side-title {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-right: 12px;
  text-align: right;
}

.profile-side-title strong,
.profile-side-title em {
  display: block;
}

.profile-side-title strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 950;
  line-height: 0.85;
}

.profile-side-title em {
  margin-top: 8px;
  color: #2d7bff;
  font-size: 19px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.profile-portrait {
  position: relative;
  display: grid;
  min-height: 548px;
  place-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(45, 123, 255, 0.28), transparent 15rem),
    linear-gradient(145deg, rgba(18, 42, 86, 0.78), rgba(2, 6, 15, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 28px 90px rgba(0, 0, 0, 0.35);
}

.profile-portrait::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0 54%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 42%, rgba(0, 0, 0, 0.12));
}

.profile-portrait img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.06) contrast(1.02);
  transform: none;
}

.profile-portrait span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.profile-blue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -38px;
  padding-inline: 18px;
  z-index: 3;
}

.profile-blue-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 16px;
  background: linear-gradient(180deg, #317dff, #1459df);
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow:
    0 14px 24px rgba(20, 89, 223, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.profile-blue-tags b {
  color: rgba(255, 255, 255, 0.82);
}

.profile-button {
  align-self: flex-start;
  margin: 8px 0 0 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.44fr);
  gap: 42px;
  align-items: end;
  padding: 102px 0 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

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

.project-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.3);
  isolation: isolate;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(84, 230, 255, 0.16);
}

.project-card:hover img {
  filter: saturate(1.1) contrast(1.08);
  transform: scale(1.05);
}

.project-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.9));
}

.project-info {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 7px;
  border-radius: 8px;
  padding: 16px;
  background: rgba(10, 10, 10, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.project-info small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-info strong {
  font-size: 23px;
  font-weight: 950;
}

.project-info em {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-style: normal;
}

.promo-card {
  grid-column: 1 / -1;
  height: 560px;
}

.promo-card .project-info {
  max-width: 480px;
}

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

.visuals-section {
  position: relative;
  padding-bottom: 120px;
}

.visuals-section::after {
  position: absolute;
  right: max(-8vw, -96px);
  bottom: -70px;
  left: max(-8vw, -96px);
  height: 210px;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 100%, rgba(42, 120, 255, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(5, 6, 7, 0), rgba(6, 14, 25, 0.72) 72%, rgba(6, 16, 30, 0.26));
  filter: blur(10px);
  opacity: 0.88;
}

.visual-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.visual-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
}

.visual-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.visual-item:hover img {
  transform: scale(1.04);
}

.glow-border::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  background:
    conic-gradient(
      from var(--border-angle, 0deg),
      rgba(84, 230, 255, 0.08),
      rgba(84, 230, 255, 0.86),
      rgba(255, 122, 47, 0.82),
      rgba(255, 255, 255, 0.24),
      rgba(84, 230, 255, 0.08)
    );
  opacity: 0.68;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
  transition: opacity 0.35s ease, padding 0.35s ease;
}

.glow-border:hover::before {
  padding: 2px;
  opacity: 1;
}

.glossy-mini,
.glossy-button {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 36%, rgba(255, 122, 47, 0.9)),
    linear-gradient(90deg, #ff6b2e, #ffd072);
  color: #111;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 10px 24px rgba(255, 122, 47, 0.28),
    inset 0 2px 3px rgba(255, 255, 255, 0.72),
    inset 0 -8px 14px rgba(184, 63, 0, 0.28);
}

.glossy-button.blue {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 34%, rgba(40, 120, 255, 0.92)),
    linear-gradient(90deg, #31dcff, #2878ff);
  color: #fff;
  box-shadow:
    0 10px 28px rgba(40, 120, 255, 0.34),
    0 0 36px rgba(84, 230, 255, 0.18),
    inset 0 2px 3px rgba(255, 255, 255, 0.72),
    inset 0 -8px 14px rgba(0, 44, 160, 0.35);
}

.glossy-mini {
  margin-top: 6px;
  min-height: 28px;
  padding: 0 12px;
}

.glossy-button {
  min-height: 48px;
  padding: 0 24px;
}

.glossy-mini::after,
.glossy-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.8) 42%, transparent 55%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.project-card:hover .glossy-mini::after,
.glossy-button:hover::after {
  transform: translateX(130%);
}

.thanks-section {
  position: relative;
  display: grid;
  min-height: 72svh;
  place-items: center;
  overflow: hidden;
  margin-top: 34px;
  border-top: 0;
  background:
    linear-gradient(180deg, #06121e 0%, rgba(4, 13, 24, 0.72) 24%, rgba(0, 5, 12, 0.96) 70%, #00050b 100%);
  perspective: 900px;
}

.thanks-section::before,
.thanks-section::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.thanks-section::before {
  inset: -130px 0 0;
  background:
    linear-gradient(rgba(126, 211, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 211, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 74%, transparent 100%);
  opacity: 0.38;
}

.thanks-section::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 34%, rgba(0, 0, 0, 0.74) 100%),
    radial-gradient(ellipse at 50% 52%, transparent 0%, rgba(0, 0, 0, 0.22) 54%, rgba(0, 0, 0, 0.92) 84%);
  z-index: 2;
}

.thanks-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.thanks-particles::before,
.thanks-particles::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.thanks-particles::before {
  background: none;
}

.thanks-particles::after {
  background:
    linear-gradient(180deg, rgba(3, 9, 19, 0.98) 0%, rgba(3, 9, 19, 0.34) 10%, transparent 28%, transparent 86%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(90deg, rgba(3, 9, 19, 0.98) 0%, rgba(3, 9, 19, 0.24) 8%, transparent 18%, transparent 84%, rgba(3, 9, 19, 0.34) 92%, rgba(3, 9, 19, 0.98) 100%);
  filter: blur(1px);
  opacity: 1;
}

.thanks-particles img {
  width: min(760px, 88vw);
  max-width: none;
  opacity: 0.86;
  filter: saturate(1.25) brightness(1.1) contrast(1.08) blur(0.08px);
  transform: translateY(34px) scaleX(1.22);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 94%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.thanks-section h2 {
  margin: 0;
  font-size: clamp(60px, 14vw, 178px);
  font-weight: 950;
  line-height: 0.86;
}

.thanks-title {
  position: relative;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.04em;
  text-shadow: none;
}

.thanks-title::before {
  position: absolute;
  left: -22%;
  right: -22%;
  top: 34%;
  height: 48%;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse at 38% 52%, rgba(20, 76, 188, 0.38), transparent 48%),
    radial-gradient(ellipse at 56% 54%, rgba(44, 187, 216, 0.34), transparent 50%),
    radial-gradient(ellipse at 74% 52%, rgba(60, 130, 255, 0.22), transparent 44%),
    linear-gradient(90deg, transparent, rgba(30, 110, 230, 0.14), rgba(44, 187, 216, 0.16), transparent);
  filter: blur(50px);
  opacity: 1;
  transform: scaleX(1.12);
}

.thanks-title span {
  position: relative;
  z-index: 2;
  display: block;
}

.thanks-title span::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "THANKS";
  pointer-events: none;
  color: transparent;
  background-image: url("../assets/effects/thanks-particles.gif");
  background-repeat: repeat-x;
  background-size: 0.95em 0.95em;
  background-position: 0 78%;
  background-clip: text;
  -webkit-background-clip: text;
  mix-blend-mode: screen;
  opacity: 0.42;
  filter: saturate(1.35) brightness(1.12) contrast(1.06);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(0, 0, 0, 0.78) 63%, #000 92%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(0, 0, 0, 0.78) 63%, #000 92%);
  animation: thanksTextFluidDrift 4.8s linear infinite;
}

.reveal-section,
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-card {
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}

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

.companion-pet {
  --pet-scale: 2;
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 80;
  width: 154px;
  height: 190px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.48));
  transform: translateZ(0) scale(var(--pet-scale));
  transform-origin: right bottom;
}

.pet-orbit {
  position: absolute;
  inset: 17px 9px 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 12%, rgba(101, 218, 255, 0.28), transparent 29%),
    conic-gradient(from 170deg, rgba(65, 179, 255, 0), rgba(90, 224, 255, 0.72), rgba(52, 111, 255, 0.12), rgba(65, 179, 255, 0));
  opacity: 0.55;
  filter: blur(0.2px);
  animation: petOrbit 6s linear infinite;
}

.pet-orbit::before,
.pet-orbit::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: #8cecff;
  box-shadow: 0 0 18px rgba(84, 230, 255, 0.9);
}

.pet-orbit::before {
  width: 8px;
  height: 8px;
  top: 9px;
  left: 28px;
}

.pet-orbit::after {
  width: 5px;
  height: 5px;
  right: 19px;
  bottom: 25px;
  opacity: 0.72;
}

.pet-shell {
  position: absolute;
  left: 22px;
  bottom: 24px;
  width: 94px;
  height: 104px;
  border: 1px solid rgba(146, 226, 255, 0.5);
  border-radius: 38px 38px 32px 32px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.08) 18%, transparent 32%),
    linear-gradient(145deg, rgba(75, 209, 255, 0.96), rgba(24, 92, 232, 0.94) 52%, rgba(9, 23, 77, 0.98));
  box-shadow:
    0 0 0 6px rgba(39, 120, 255, 0.08),
    0 0 34px rgba(54, 186, 255, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -13px 24px rgba(3, 12, 47, 0.55);
  transform-origin: center bottom;
  animation: petFloat 3.2s ease-in-out infinite;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.pet-antenna {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 2px;
  height: 24px;
  background: linear-gradient(to top, rgba(123, 218, 255, 0.15), rgba(151, 232, 255, 0.85));
  transform: translateX(-50%);
}

.pet-antenna::before {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at 36% 30%, #fff, rgba(255, 255, 255, 0.2) 18%, transparent 34%),
    radial-gradient(circle, #72e7ff, #126dff 58%, #061436);
  box-shadow: 0 0 22px rgba(84, 230, 255, 0.75);
  transform: translateX(-50%);
}

.pet-ear {
  position: absolute;
  top: 23px;
  width: 18px;
  height: 38px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(126, 224, 255, 0.92), rgba(29, 67, 184, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pet-ear-left {
  left: -8px;
  transform: rotate(-13deg);
}

.pet-ear-right {
  right: -8px;
  transform: rotate(13deg);
}

.pet-face {
  position: absolute;
  left: 15px;
  top: 31px;
  width: 64px;
  height: 42px;
  border: 1px solid rgba(183, 236, 255, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(2, 15, 44, 0.92), rgba(1, 8, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.pet-eye {
  position: absolute;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dffbff;
  box-shadow:
    0 0 10px rgba(116, 238, 255, 0.92),
    0 0 18px rgba(43, 130, 255, 0.6);
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 0.08s linear;
  animation: petBlink 5.6s infinite;
}

.pet-eye-left {
  left: 17px;
}

.pet-eye-right {
  right: 17px;
}

.pet-mouth {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 18px;
  height: 8px;
  border-bottom: 2px solid rgba(177, 245, 255, 0.88);
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
}

.pet-core {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 34px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(161, 247, 255, 0.2), rgba(194, 252, 255, 0.96), rgba(42, 120, 255, 0.2));
  box-shadow: 0 0 20px rgba(84, 230, 255, 0.72);
  transform: translateX(-50%);
}

.pet-status {
  position: absolute;
  right: 17px;
  bottom: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6effd4;
  box-shadow: 0 0 14px rgba(110, 255, 212, 0.95);
}

.pet-shadow {
  position: absolute;
  left: 34px;
  right: 28px;
  bottom: 5px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(39, 135, 255, 0.38), transparent 70%);
  filter: blur(5px);
  animation: petShadow 3.2s ease-in-out infinite;
}

.pet-orbit-character {
  inset: 42px 13px 8px;
  opacity: 0.42;
  filter: blur(0.4px);
}

.pet-portrait {
  position: absolute;
  left: 16px;
  bottom: 15px;
  display: block;
  width: 122px;
  height: 174px;
  transform-origin: center bottom;
  animation: petFloat 3.2s ease-in-out infinite;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.pet-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  transform: translate(calc(var(--look-x) * 0.22), calc(var(--look-y) * 0.18));
  transition: transform 0.12s linear;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 10px rgba(63, 144, 255, 0.42))
    drop-shadow(0 18px 20px rgba(0, 0, 0, 0.46));
}

.pet-halo {
  position: absolute;
  left: 50%;
  top: 20px;
  z-index: 1;
  width: 96px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 14%, rgba(128, 232, 255, 0.45), transparent 22%),
    radial-gradient(circle, rgba(42, 132, 255, 0.24), rgba(53, 17, 118, 0.12) 48%, transparent 70%);
  filter: blur(9px);
  transform: translateX(-50%);
  opacity: 0.76;
}

.companion-pet.is-near .pet-shell,
.companion-pet:focus-visible .pet-shell,
.companion-pet.is-near .pet-portrait,
.companion-pet:focus-visible .pet-portrait {
  animation: none;
  transform: translateY(-8px) scale(1.06);
  box-shadow:
    0 0 0 8px rgba(39, 120, 255, 0.12),
    0 0 46px rgba(84, 230, 255, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -13px 24px rgba(3, 12, 47, 0.55);
}

.companion-pet.is-active .pet-shell,
.companion-pet.is-active .pet-portrait {
  animation: petClick 0.72s cubic-bezier(0.18, 0.9, 0.3, 1.2);
}

.companion-pet.is-active .pet-orbit {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(84, 230, 255, 0.72));
}

.pet-sprite {
  --cell-w: 122px;
  --cell-h: calc(var(--cell-w) * 208 / 192);
  --row-index: 0;
  position: absolute;
  left: 16px;
  bottom: 22px;
  display: block;
  width: var(--cell-w);
  height: var(--cell-h);
  background-image: url("../assets/profile/minicoder3d-spritesheet.webp");
  background-repeat: no-repeat;
  background-size: calc(var(--cell-w) * 8) calc(var(--cell-h) * 9);
  background-position: 0 calc(var(--row-index) * var(--cell-h) * -1);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.42));
  transform-origin: center bottom;
  animation:
    petIdleFrames 4.8s linear infinite,
    petIdleMotion 3.2s ease-in-out infinite;
  image-rendering: auto;
  will-change: transform, background-position;
}

.companion-pet.is-near .pet-sprite,
.companion-pet:focus-visible .pet-sprite {
  --row-index: 3;
  animation:
    petWaveFrames 2.2s linear infinite,
    petHoverMotion 2.4s ease-in-out infinite;
}

.companion-pet.is-active .pet-sprite {
  --row-index: 4;
  animation:
    petJumpFrames 0.9s linear 1,
    petClickSoft 0.9s cubic-bezier(0.18, 0.9, 0.3, 1.2) 1;
}

.companion-pet .pet-shadow {
  left: 36px;
  right: 28px;
  bottom: 12px;
  height: 14px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.34), transparent 70%);
  filter: blur(6px);
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes borderSpin {
  to {
    --border-angle: 360deg;
  }
}

@keyframes titleGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes thanksTextFluidDrift {
  0% {
    background-position: 0 78%;
  }
  100% {
    background-position: 0.95em 78%;
  }
}

@keyframes petFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes petShadow {
  0%,
  100% {
    opacity: 0.48;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.28;
    transform: scaleX(0.78);
  }
}

@keyframes petOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes petBlink {
  0%,
  92%,
  100% {
    scale: 1 1;
  }
  95% {
    scale: 1 0.12;
  }
}

@keyframes petClick {
  0% {
    transform: translateY(-8px) scale(1.06);
  }
  42% {
    transform: translateY(-18px) scale(1.14) rotate(3deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(-1deg);
  }
}

@keyframes miniCoderSprite {
  0%,
  12.49% {
    background-position: 0 calc(var(--row-index) * var(--cell-h) * -1);
  }
  12.5%,
  24.99% {
    background-position: calc(var(--cell-w) * -1) calc(var(--row-index) * var(--cell-h) * -1);
  }
  25%,
  37.49% {
    background-position: calc(var(--cell-w) * -2) calc(var(--row-index) * var(--cell-h) * -1);
  }
  37.5%,
  49.99% {
    background-position: calc(var(--cell-w) * -3) calc(var(--row-index) * var(--cell-h) * -1);
  }
  50%,
  62.49% {
    background-position: calc(var(--cell-w) * -4) calc(var(--row-index) * var(--cell-h) * -1);
  }
  62.5%,
  74.99% {
    background-position: calc(var(--cell-w) * -5) calc(var(--row-index) * var(--cell-h) * -1);
  }
  75%,
  87.49% {
    background-position: calc(var(--cell-w) * -6) calc(var(--row-index) * var(--cell-h) * -1);
  }
  87.5%,
  100% {
    background-position: calc(var(--cell-w) * -7) calc(var(--row-index) * var(--cell-h) * -1);
  }
}

@keyframes petIdleFrames {
  0%,
  16.65% {
    background-position: 0 calc(var(--row-index) * var(--cell-h) * -1);
  }
  16.66%,
  33.32% {
    background-position: calc(var(--cell-w) * -1) calc(var(--row-index) * var(--cell-h) * -1);
  }
  33.33%,
  49.99% {
    background-position: calc(var(--cell-w) * -2) calc(var(--row-index) * var(--cell-h) * -1);
  }
  50%,
  66.65% {
    background-position: calc(var(--cell-w) * -3) calc(var(--row-index) * var(--cell-h) * -1);
  }
  66.66%,
  83.32% {
    background-position: calc(var(--cell-w) * -4) calc(var(--row-index) * var(--cell-h) * -1);
  }
  83.33%,
  100% {
    background-position: calc(var(--cell-w) * -5) calc(var(--row-index) * var(--cell-h) * -1);
  }
}

@keyframes petWaveFrames {
  0%,
  24.99% {
    background-position: 0 calc(var(--row-index) * var(--cell-h) * -1);
  }
  25%,
  49.99% {
    background-position: calc(var(--cell-w) * -1) calc(var(--row-index) * var(--cell-h) * -1);
  }
  50%,
  74.99% {
    background-position: calc(var(--cell-w) * -2) calc(var(--row-index) * var(--cell-h) * -1);
  }
  75%,
  100% {
    background-position: calc(var(--cell-w) * -3) calc(var(--row-index) * var(--cell-h) * -1);
  }
}

@keyframes petJumpFrames {
  0%,
  19.99% {
    background-position: 0 calc(var(--row-index) * var(--cell-h) * -1);
  }
  20%,
  39.99% {
    background-position: calc(var(--cell-w) * -1) calc(var(--row-index) * var(--cell-h) * -1);
  }
  40%,
  59.99% {
    background-position: calc(var(--cell-w) * -2) calc(var(--row-index) * var(--cell-h) * -1);
  }
  60%,
  79.99% {
    background-position: calc(var(--cell-w) * -3) calc(var(--row-index) * var(--cell-h) * -1);
  }
  80%,
  100% {
    background-position: calc(var(--cell-w) * -4) calc(var(--row-index) * var(--cell-h) * -1);
  }
}

@keyframes petIdleMotion {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg) scale(1);
  }
  50% {
    transform: translateY(-9px) rotate(1.2deg) scale(1.025);
  }
}

@keyframes petHoverMotion {
  0%,
  100% {
    transform: translateY(-7px) rotate(-2deg) scale(1.06);
  }
  50% {
    transform: translateY(-15px) rotate(2deg) scale(1.08);
  }
}

@keyframes petClickSoft {
  0% {
    transform: translateY(-7px) rotate(0deg) scale(1.06);
  }
  45% {
    transform: translateY(-24px) rotate(4deg) scale(1.16);
  }
  100% {
    transform: translateY(-7px) rotate(0deg) scale(1.06);
  }
}

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

@media (max-width: 1200px) {
  .site-nav {
    top: 14px;
    width: calc(100% - 24px);
    min-height: 78px;
    gap: 18px;
    padding: 8px 22px;
  }

  .nav-brand {
    gap: 12px;
    font-size: 20px;
  }

  .nav-brand::after {
    height: 28px;
    margin-left: 22px;
  }

  .brand-home-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand-home-icon svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(7px 0 0 rgba(21, 86, 255, 0.85));
  }

  .nav-center {
    gap: clamp(10px, 2vw, 30px);
    transform: none;
  }

  .nav-center a,
  .nav-action {
    font-size: 15px;
  }

  .nav-action {
    padding: 9px 18px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(8px, 1.4vw, 14px);
  }

  .nav-center {
    display: flex;
    justify-content: space-around;
    justify-self: stretch;
    gap: clamp(4px, 1.2vw, 12px);
    overflow: visible;
  }

  .nav-action {
    display: flex;
  }

  .hero-shell {
    min-height: auto;
    padding: 128px 16px 76px;
  }

  .hero-video-frame {
    width: min(94vw, 880px);
  }

  .profile-card {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 34px;
  }

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

  .directory-section .section-wrap,
  .profile-section,
  .works-section,
  .visuals-section {
    overflow: visible;
    padding-bottom: 12px;
  }

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

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

  .visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 34px;
  }

  .project-card,
  .promo-card {
    height: 390px;
  }

  .promo-card {
    grid-column: 1 / -1;
  }

  .companion-pet {
    right: 16px;
    bottom: 16px;
    --pet-scale: 1.32;
  }

}

@media (max-width: 640px) {
  .site-nav {
    top: 6px;
    width: calc(100% - 10px);
    min-height: clamp(40px, 11.5vw, 54px);
    gap: clamp(4px, 1.4vw, 8px);
    padding: 4px clamp(7px, 2vw, 12px);
    border-width: 1px;
  }

  .nav-brand {
    gap: clamp(3px, 1vw, 7px);
    font-size: clamp(8px, 2.4vw, 13px);
  }

  .nav-brand::after {
    height: clamp(16px, 5vw, 26px);
    margin-left: clamp(3px, 1vw, 7px);
  }

  .brand-home-icon {
    width: clamp(22px, 7vw, 36px);
    height: clamp(22px, 7vw, 36px);
    flex-basis: clamp(22px, 7vw, 36px);
  }

  .brand-home-icon svg {
    width: clamp(21px, 6.6vw, 34px);
    height: clamp(21px, 6.6vw, 34px);
    filter: drop-shadow(3px 0 0 rgba(21, 86, 255, 0.82));
  }

  .nav-center {
    gap: clamp(1px, 0.7vw, 4px);
  }

  .nav-center a {
    min-width: 0;
    padding: 5px clamp(1px, 0.55vw, 3px);
    font-size: clamp(7px, 2vw, 11px);
  }

  .nav-action {
    padding: 5px clamp(5px, 1.5vw, 9px);
    font-size: clamp(7px, 2vw, 11px);
  }

  .hero-copy h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-copy p:not(.hero-kicker) {
    font-size: 15px;
  }

  .hero-video-frame {
    margin-top: 36px;
    padding: 8px;
    width: min(94vw, 1080px);
  }

  .section-wrap {
    width: calc(100% - 12px);
  }

  .nav-pill {
    padding-inline: 8px;
  }

  .directory-section {
    padding: 64px 0 72px;
  }

  .profile-section {
    padding-top: 72px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    min-width: 0;
    min-height: 0;
    padding: 28px 18px;
  }

  .profile-hello {
    font-size: clamp(56px, 18vw, 76px);
  }

  .profile-hello em {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    margin-top: 12px;
    font-size: 30px;
  }

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

  .profile-side-title {
    align-self: flex-start;
    text-align: left;
  }

  .profile-side-title strong {
    font-size: 38px;
  }

  .profile-portrait {
    min-height: 420px;
  }

  .profile-ratio {
    gap: 26px;
  }

  .profile-capabilities {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-blue-tags {
    margin-top: -24px;
    padding-inline: 10px;
  }

  .directory-title {
    font-size: clamp(40px, 13vw, 56px);
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
  }

  .directory-card {
    min-height: 0;
    aspect-ratio: 3.25 / 1;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .directory-icon {
    width: 32px;
    height: 32px;
  }

  .directory-icon svg {
    width: 17px;
    height: 17px;
  }

  .directory-card strong {
    font-size: 12px;
  }

  .directory-card em {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.35;
  }

  .directory-card i {
    bottom: 7px;
    left: 53px;
    width: 22px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }

  .visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
  }

  .project-card,
  .promo-card {
    height: auto;
    aspect-ratio: 1.08 / 1;
  }

  .promo-card {
    grid-column: 1 / -1;
    aspect-ratio: 2.16 / 1;
  }

  .project-info {
    right: 7px;
    bottom: 7px;
    left: 7px;
    gap: 3px;
    padding: 9px;
  }

  .project-info small {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .project-info strong {
    font-size: 13px;
  }

  .project-info em {
    font-size: 8px;
  }

  .project-info .glossy-mini {
    min-height: 22px;
    width: fit-content;
    margin-top: 2px;
    padding: 0 10px;
    font-size: 8px;
  }

  .visual-item {
    aspect-ratio: 1 / 1;
  }

  .visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section-heading {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 18px;
    padding-top: 52px;
  }

  .section-heading h2 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .companion-pet {
    right: 10px;
    bottom: 10px;
    --pet-scale: 0.78;
  }

}

body.is-mobile-device .hero-shell {
  min-height: auto;
  padding: 112px 16px 76px;
}

body.is-mobile-device .hero-video-frame {
  width: min(94vw, 720px);
  margin-top: 34px;
  padding: 8px;
}

body.is-mobile-device .hero-video-frame::after {
  display: none;
}

body.is-mobile-device .hero-video {
  display: block;
  background: #000;
}

body.is-mobile-device,
html.is-mobile-device {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.is-mobile-device .nav-text,
html.is-mobile-device .nav-text {
  font-synthesis: none;
}

body.is-mobile-device .hero-copy h1 {
  font-size: clamp(42px, 14vw, 64px);
}

body.is-mobile-device .hero-copy p:not(.hero-kicker) {
  font-size: 15px;
}

/* The supplied navbar artwork is the visual source of truth; links sit invisibly above it. */
.site-nav {
  position: fixed;
  top: 0;
  left: 50vw;
  z-index: 50;
  display: block;
  width: min(100vw, 1920px);
  min-height: 0;
  aspect-ratio: 1920 / 184;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}

.nav-reference {
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.nav-hotspots {
  position: absolute;
  inset: 0;
}

.nav-glass-glider {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(169, 222, 255, 0.54);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(68, 161, 255, 0.24), rgba(18, 87, 219, 0.46));
  box-shadow:
    inset 1px 1px 5px rgba(255, 255, 255, 0.28),
    inset -1px -1px 7px rgba(0, 18, 65, 0.3),
    0 0 18px rgba(65, 164, 255, 0.34),
    0 5px 14px rgba(0, 11, 42, 0.2);
  backdrop-filter: blur(12px);
  pointer-events: none;
  transition:
    left 0.5s cubic-bezier(0.37, 1.65, 0.66, 0.72),
    top 0.35s ease,
    width 0.42s cubic-bezier(0.37, 1.35, 0.66, 0.72),
    height 0.35s ease,
    opacity 0.2s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.nav-home-icon-hit {
  position: absolute;
  left: 4.35%;
  top: 27%;
  width: 4%;
  height: 36%;
}

.nav-text {
  position: absolute;
  top: 47.3%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "MiSans", "Microsoft YaHei", sans-serif;
  font-size: min(1.458vw, 28px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.nav-text span {
  display: block;
  transition: color 0.24s ease, text-shadow 0.24s ease, transform 0.24s ease;
}

.nav-text:hover span,
.nav-text:focus-visible span {
  color: #fff;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.96),
    0 0 17px rgba(105, 172, 255, 0.95),
    0 0 32px rgba(31, 94, 255, 0.8);
  transform: scale(1.1);
}

.nav-text:focus-visible {
  outline: none;
}

.nav-text-home {
  left: 12.42%;
  font-size: min(1.823vw, 35px);
  font-weight: 500;
}

.nav-text-directory {
  left: 32.68%;
}

.nav-text-profile {
  left: 42.55%;
}

.nav-text-works {
  left: 52.47%;
}

.nav-text-campaign {
  left: 62.37%;
}

.nav-text-other {
  left: 72.24%;
}

.nav-text-action {
  left: 90.1%;
  font-size: min(1.375vw, 26.4px);
  letter-spacing: 0.05em;
}

#directory,
#profile,
#works,
#visuals,
#thanks {
  scroll-margin-top: clamp(70px, 8vw, 160px);
}

@media (min-width: 0px) {
  .hero-psd-layout {
    display: block;
    width: 100%;
    height: min(56.25vw, 1080px);
    min-height: 0;
    padding: 0;
    background:
      linear-gradient(rgba(92, 174, 238, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(92, 174, 238, 0.045) 1px, transparent 1px),
      radial-gradient(circle at 76% 6%, rgba(45, 133, 223, 0.22), transparent 32rem),
      #061a2b;
    background-size: 96px 96px, 96px 96px, auto, auto;
  }

  .hero-psd-layout::before {
    display: block;
    z-index: 0;
    background-image:
      linear-gradient(rgba(126, 211, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(126, 211, 255, 0.04) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(ellipse 70% 68% at 50% 26%, #000, transparent 88%);
    opacity: 0.58;
  }

  .hero-psd-layout::after {
    z-index: 2;
    background: linear-gradient(180deg, transparent 72%, rgba(2, 8, 18, 0.18) 100%);
  }

  .hero-light-beam {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: fill;
    user-select: none;
  }

  .hero-psd-layout .hero-copy {
    position: absolute;
    top: min(15vw, 288px);
    left: 50vw;
    z-index: 3;
    width: min(82.1875vw, 1578px);
    max-width: none;
    text-align: center;
    transform: translateX(-50%);
  }

  .hero-psd-layout .hero-copy.reveal-section {
    transform: translate(-50%, 30px);
  }

  .hero-psd-layout .hero-copy.reveal-section.is-visible {
    transform: translate(-50%, 0);
  }

  .hero-title-art {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-psd-layout .hero-kicker {
    width: max-content;
    margin: 0;
    margin-inline: auto;
    color: #5699ff;
    font-family: "Source Han Sans CN", "Microsoft YaHei", sans-serif;
    font-size: min(1.77vw, 34px);
    font-weight: 200;
    line-height: 1.03;
    letter-spacing: 0.075em;
    text-transform: none;
  }

  .hero-psd-layout .hero-copy h1 {
    width: max-content;
    max-width: none;
    margin: min(2.92vw, 56px) auto 0;
    color: #fff;
    font-family: "Source Han Sans CN", Inter, sans-serif;
    font-size: min(6.52vw, 125px);
    font-weight: 200;
    line-height: 0.77;
    letter-spacing: 0;
    white-space: nowrap;
    text-transform: none;
    text-shadow: 0 12px 38px rgba(0, 28, 88, 0.28);
    transform: none;
  }

  .hero-psd-layout .hero-copy .hero-cn-title {
    width: max-content;
    max-width: none;
    margin: min(4.74vw, 91px) auto 0;
    color: transparent;
    font-family: "Source Han Sans CN", "Microsoft YaHei", sans-serif;
    font-size: min(6.25vw, 120px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: 0.2em;
    white-space: nowrap;
    background: linear-gradient(180deg, #53a6f3 0%, #1563ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: none;
  }

  .hero-psd-layout .hero-actions {
    position: relative;
    left: min(0.0261vw, 0.5px);
    display: flex;
    justify-content: center;
    gap: min(4.95vw, 95px);
    margin-top: min(8.8vw, 169px);
  }

  .hero-psd-button {
    position: relative;
    display: grid;
    width: min(14.22vw, 273px);
    aspect-ratio: 273 / 76;
    place-items: center;
    transition: transform 0.28s ease, filter 0.28s ease;
  }

  .hero-psd-button img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-psd-button span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: "Source Han Sans CN", "Microsoft YaHei", sans-serif;
    font-size: min(2.08vw, 40px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.1em;
    text-shadow: 0 0 16px rgba(101, 203, 255, 0.72);
  }

  .hero-psd-button:hover,
  .hero-psd-button:focus-visible {
    filter: brightness(1.15) drop-shadow(0 0 24px rgba(36, 137, 255, 0.72));
    transform: scale(1.055);
  }

  .hero-video-section {
    position: relative;
    margin-top: -1px;
    padding: 0 24px 96px;
    background:
      linear-gradient(rgba(92, 174, 238, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(92, 174, 238, 0.045) 1px, transparent 1px),
      radial-gradient(ellipse 58% 18% at 50% 0%, rgba(28, 105, 176, 0.1), transparent 100%),
      linear-gradient(180deg, rgba(6, 26, 43, 0.98) 0%, rgba(6, 26, 43, 0.98) 100%);
    background-size: 96px 96px, 96px 96px, auto, auto;
  }

  .hero-video-stage {
    position: relative;
    z-index: 2;
    width: min(90vw, 1710px);
    margin: 0 auto;
  }

  .video-top-glow {
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    z-index: 1;
    width: min(102.3%, 1750px);
    height: auto;
    max-width: none;
    pointer-events: none;
    transform: translate3d(-50%, 0, 0);
    user-select: none;
  }

  .hero-video-section .hero-video-frame {
    z-index: 2;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 640px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-nav {
    top: max(0px, env(safe-area-inset-top));
    width: min(100vw, 1920px);
    aspect-ratio: 1920 / 184;
    transform: translateX(-50%);
  }

  .nav-text {
    font-size: min(1.458vw, 28px);
  }

  .nav-text-home {
    font-size: min(1.823vw, 35px);
  }

  .nav-text-action {
    font-size: min(1.375vw, 26.4px);
  }

  .hero-psd-layout {
    width: 100vw;
    height: 56.25vw;
    overflow: hidden;
  }

  .hero-psd-layout .hero-copy {
    top: 15vw;
    left: 50vw;
    width: 82.1875vw;
  }

  .hero-psd-layout .hero-actions {
    gap: 4.95vw;
    margin-top: 8.8vw;
  }

  .hero-psd-button {
    width: 14.22vw;
  }

  .hero-psd-button span {
    font-size: 2.08vw;
  }

  .hero-video-section {
    padding-inline: 0;
    padding-bottom: 13.4vw;
  }

  .hero-video-stage {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }

  .video-top-glow {
    left: 50%;
    width: 100vw;
    transform: translate3d(-50%, 0, 0);
  }

  body.is-mobile-device .hero-video-frame {
    width: 100%;
    padding: 0;
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.is-mobile-device .hero-video-frame.glow-border::before {
    display: none;
  }

  body.is-mobile-device .hero-video {
    border-radius: 0;
  }

  body.is-mobile-device .hero-video-fallback {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .section-wrap,
  .profile-section,
  .works-section,
  .visuals-section {
    width: min(96vw, 1200px);
  }

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

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

  .project-card,
  .promo-card,
  .visual-item,
  .directory-card {
    min-width: 0;
  }

  .thanks-particles img {
    width: 82vw;
  }
}

/* Keep PSD card proportions after legacy responsive card rules. */
.project-card.psd-project-card {
  height: auto;
  aspect-ratio: 427 / 708;
  border-radius: clamp(10px, 1.5vw, 24px);
  background: transparent;
  box-shadow: 0 26px 72px rgba(0, 8, 28, 0.24);
}

.project-card.psd-project-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.project-card.wide-project-card {
  grid-column: 1 / span 3;
  width: 100%;
  aspect-ratio: 1259 / 708;
  justify-self: start;
}

@media (max-width: 960px) {
  .project-card.wide-project-card {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .project-card.psd-project-card {
    height: auto;
    aspect-ratio: 427 / 708;
  }

  .project-card.wide-project-card {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 1259 / 708;
  }
}
