:root {
  --bg: #030713;
  --panel: rgba(8, 17, 38, 0.76);
  --panel-soft: rgba(15, 29, 58, 0.72);
  --text: #f7fbff;
  --muted: #a4b8cf;
  --cyan: #34f5ff;
  --green: #3dffb8;
  --magenta: #ff4fd8;
  --violet: #7c6cff;
  --line: rgba(52, 245, 255, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --glow: 0 0 28px rgba(52, 245, 255, 0.28);
  --site-font: Inter, "Arial Narrow", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--site-font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(52, 245, 255, 0.22), transparent 25rem),
    radial-gradient(circle at 86% 18%, rgba(255, 79, 216, 0.16), transparent 26rem),
    radial-gradient(circle at 68% 76%, rgba(61, 255, 184, 0.12), transparent 32rem),
    linear-gradient(180deg, #030713 0%, #060a19 48%, #030713 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0,
    rgba(52, 245, 255, 0.06) 50%,
    transparent 100%
  );
  background-size: 100% 7px;
  mix-blend-mode: screen;
  opacity: 0.35;
}

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

button {
  font: inherit;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.particles-disabled .particle-field {
  display: none;
}

body.timeline-disabled .intro-band {
  grid-template-columns: 1fr;
}

body.timeline-disabled .category-line {
  display: none;
}

.ambient-grid {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 42vh;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(52, 245, 255, 0.13), transparent),
    repeating-linear-gradient(
      90deg,
      transparent 0 80px,
      rgba(52, 245, 255, 0.11) 81px,
      transparent 82px
    );
  transform: perspective(680px) rotateX(64deg) translateY(16vh);
  transform-origin: bottom;
  opacity: 0.5;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero {
  min-height: 92vh;
  padding: 28px clamp(20px, 5vw, 72px) 54px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 78px clamp(20px, 5vw, 72px) 38px;
  z-index: 0;
  border: 1px solid rgba(52, 245, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(52, 245, 255, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.08), transparent 34%);
  clip-path: polygon(0 0, calc(100% - 58px) 0, 100% 58px, 100% 100%, 58px 100%, 0 calc(100% - 58px));
  opacity: 0.78;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 3;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 6px;
  box-shadow: var(--glow);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(52, 245, 255, 0.2);
  border-radius: 9px;
  animation: pulseFrame 2.8s ease-in-out infinite;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  position: relative;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(12px, 3vw, 48px);
  position: relative;
  z-index: 2;
  margin-left: clamp(-58px, -4vw, -22px);
}

.hero-art {
  min-height: 620px;
  position: relative;
  transform: translate3d(calc(var(--tilt-x, 0) * -10px), calc(var(--tilt-y, 0) * -10px), 0);
  transition: transform 250ms ease-out;
}

.j-stroke {
  position: absolute;
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Black", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  line-height: 0.78;
  color: transparent;
  background: linear-gradient(150deg, var(--cyan) 10%, var(--green) 48%, rgba(52, 245, 255, 0.2) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 2px rgba(52, 245, 255, 0.45);
  text-shadow:
    0 0 24px rgba(52, 245, 255, 0.72),
    18px 26px 0 rgba(61, 255, 184, 0.14),
    38px 44px 0 rgba(124, 108, 255, 0.1);
  filter: drop-shadow(0 0 22px rgba(52, 245, 255, 0.5));
  transform: rotate(7deg) skewX(-8deg);
  animation: driftJ 7s ease-in-out infinite;
  user-select: none;
}

.j-one {
  left: -196px;
  top: -34px;
  font-size: 650px;
}

.j-two {
  left: -42px;
  top: 52px;
  font-size: 500px;
  opacity: 0.45;
  animation-delay: -2.2s;
}

.j-three {
  left: 92px;
  top: 136px;
  font-size: 330px;
  opacity: 0.32;
  animation-delay: -4s;
}

.orbital-ring {
  position: absolute;
  border: 1px solid rgba(52, 245, 255, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(52, 245, 255, 0.08), 0 0 40px rgba(124, 108, 255, 0.16);
  animation: rotateRing 18s linear infinite;
}

.orbital-ring::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 18%;
  right: 12%;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 20px var(--magenta);
}

.ring-one {
  width: 460px;
  height: 220px;
  left: -164px;
  top: 138px;
  transform: rotate(-24deg);
}

.ring-two {
  width: 330px;
  height: 146px;
  left: -76px;
  top: 174px;
  transform: rotate(22deg);
  animation-direction: reverse;
  opacity: 0.62;
}

.core-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 166px;
  top: 245px;
  border-radius: 50%;
  background: var(--text);
  box-shadow:
    0 0 18px var(--cyan),
    0 0 46px rgba(255, 79, 216, 0.65);
  animation: pulseCore 1.8s ease-in-out infinite;
}

.hero-copy {
  max-width: 860px;
  margin-left: clamp(-96px, -7vw, -28px);
  transform: translate3d(calc(var(--tilt-x, 0) * 7px), calc(var(--tilt-y, 0) * 7px), 0);
  transition: transform 250ms ease-out;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.portfolio-title {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: clamp(92px, 14vw, 218px);
  line-height: 0.76;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 24px rgba(52, 245, 255, 0.22),
    7px 7px 0 rgba(255, 79, 216, 0.11),
    0 12px 0 rgba(52, 245, 255, 0.08);
  transform: skewX(-5deg);
  position: relative;
}

.portfolio-title::after {
  content: "";
  width: min(34vw, 420px);
  height: 12px;
  position: absolute;
  right: 4px;
  top: 0.52em;
  background: linear-gradient(90deg, var(--text), transparent);
  box-shadow: 0 0 20px rgba(247, 251, 255, 0.22);
}

.portfolio-title span {
  display: block;
  padding-left: clamp(44px, 7vw, 128px);
}

.hero-years {
  margin: 26px 0 20px;
  color: var(--cyan);
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 950;
  text-shadow: 0 0 26px rgba(52, 245, 255, 0.42);
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 30%, rgba(255, 255, 255, 0.42) 48%, transparent 66% 100%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.button:hover::before {
  transform: translateX(120%);
}

.button.primary {
  color: #05101d;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 34px rgba(34, 245, 230, 0.28);
}

.button.ghost {
  color: var(--cyan);
}

.button.contact-button {
  color: var(--text);
  border-color: rgba(255, 79, 216, 0.52);
  background: linear-gradient(120deg, rgba(255, 79, 216, 0.24), rgba(52, 245, 255, 0.14));
  box-shadow: 0 0 30px rgba(255, 79, 216, 0.16);
}

.hero-contact {
  width: min(100%, 620px);
  margin-top: 26px;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(52, 245, 255, 0.16), rgba(255, 79, 216, 0.12)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(52, 245, 255, 0.34);
  border-radius: 8px;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
}

.hero-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.16), transparent 62%);
  transform: translateX(-120%);
  animation: contactSweep 4.2s ease-in-out infinite;
}

.hero-contact span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-contact strong {
  color: var(--green);
  font-size: 22px;
  letter-spacing: 0;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
  position: relative;
}

.contact-banner {
  padding: 34px clamp(20px, 4vw, 42px);
  margin-top: -34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(100deg, rgba(52, 245, 255, 0.16), rgba(255, 79, 216, 0.12)),
    rgba(8, 17, 38, 0.82);
  border: 1px solid rgba(52, 245, 255, 0.38);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 4;
}

.contact-banner h2 {
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.15;
}

.contact-banner a {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #03111b;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 6px;
  font-weight: 950;
  box-shadow: var(--glow);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(max-content, 230px) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
}

.intro-band > div:first-child {
  min-width: max-content;
  display: grid;
  align-content: center;
  gap: 10px;
}

.intro-band h2 {
  white-space: nowrap;
  word-break: keep-all;
  text-wrap: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
}

.category-line {
  min-height: 96px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
  position: relative;
}

.category-line::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(52, 245, 255, 0.78), rgba(34, 245, 230, 0.42), rgba(255, 79, 216, 0.58)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 24px rgba(52, 245, 255, 0.24);
  transform: translateY(-50%);
}

.category-line a {
  min-width: 0;
  min-height: 74px;
  padding-top: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  color: var(--text);
  font-weight: 850;
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.category-line a:hover {
  color: var(--cyan);
  transform: translateY(-3px);
}

.category-line span {
  width: 24px;
  height: 24px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 5px solid rgba(4, 12, 27, 0.96);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow:
    0 0 0 6px rgba(52, 245, 255, 0.08),
    0 0 20px rgba(52, 245, 255, 0.42);
  transform: translate(-50%, -50%);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.filter-bar button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.filter-bar button.active,
.filter-bar button:hover {
  color: #03111b;
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

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

.empty-state {
  grid-column: 1 / -1;
  min-height: 230px;
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(52, 245, 255, 0.1), transparent 32%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(52, 245, 255, 0.4);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(52, 245, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  pointer-events: none;
}

.empty-state span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state strong {
  color: var(--text);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.empty-state p {
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

.project-card {
  min-width: 0;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028)),
    rgba(5, 12, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(52, 245, 255, 0.16) 44%, rgba(255, 79, 216, 0.12) 58%, transparent 74% 100%);
  transform: translateX(-115%);
  transition: transform 520ms ease;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: var(--spot-x, 50%);
  top: var(--spot-y, 50%);
  background: radial-gradient(circle, rgba(52, 245, 255, 0.18), transparent 66%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.project-card:hover,
.project-card.selected {
  transform: translateY(-5px);
  border-color: var(--cyan);
  background: rgba(34, 245, 230, 0.08);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28), var(--glow);
}

.project-card:hover::before,
.project-card.selected::before {
  transform: translateX(115%);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  margin-bottom: 16px;
  filter: saturate(1.08) contrast(1.04);
}

.card-meta {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.project-card strong,
.project-card small {
  display: block;
}

.project-card strong {
  margin-top: 8px;
  font-size: 24px;
}

.project-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.detail-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.project-list {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 10px;
}

.project-list button {
  text-align: left;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.project-list button.active,
.project-list button:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(52, 245, 255, 0.08);
  transform: translateX(4px);
}

.project-list span {
  display: block;
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 8px;
}

.project-list strong,
.project-list small {
  display: block;
}

.project-list small {
  margin-top: 3px;
}

.project-detail {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(16, 25, 54, 0.86), rgba(7, 13, 37, 0.62)),
    rgba(5, 12, 30, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: relative;
}

.project-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(52, 245, 255, 0.16), transparent 16% 84%, rgba(255, 79, 216, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%);
  opacity: 0.72;
}

.detail-copy {
  padding: clamp(22px, 4vw, 38px);
  position: relative;
  z-index: 1;
}

.detail-copy p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-row span {
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(52, 245, 255, 0.06);
}

.viewer {
  position: relative;
  background: #020614;
  z-index: 1;
}

.viewer img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  display: block;
  transition: opacity 180ms ease, transform 220ms ease;
}

.viewer-button {
  width: 44px;
  height: 72px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  background: rgba(5, 12, 30, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.viewer-button:hover {
  background: rgba(34, 245, 230, 0.16);
  box-shadow: var(--glow);
}

#prevImage {
  left: 14px;
}

#nextImage {
  right: 14px;
}

.thumb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  position: relative;
  z-index: 1;
}

.thumb-strip button {
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.66;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.thumb-strip button.active {
  border-color: var(--cyan);
  opacity: 1;
  transform: translateY(-2px);
}

.thumb-strip img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseFrame {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes driftJ {
  0%,
  100% {
    transform: rotate(7deg) skewX(-8deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(10deg) skewX(-8deg) translate3d(10px, -12px, 0);
  }
}

@keyframes contactSweep {
  0%,
  38% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes rotateRing {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@keyframes pulseCore {
  0%,
  100% {
    transform: scale(0.84);
    opacity: 0.68;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

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

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .intro-band,
  .detail-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .hero-copy {
    margin-left: 0;
  }

  .hero-art {
    min-height: 260px;
    order: 2;
  }

  .hero-copy {
    padding-top: 72px;
  }

  .j-one {
    left: -150px;
    top: -28px;
    font-size: 370px;
  }

  .ring-one {
    left: -138px;
    top: 56px;
    width: 318px;
    height: 154px;
  }

  .ring-two {
    left: -40px;
    top: 82px;
    width: 210px;
    height: 98px;
  }

  .core-dot {
    left: 120px;
    top: 150px;
  }

  .j-two {
    left: -34px;
    top: 28px;
    font-size: 260px;
  }

  .j-three {
    left: 70px;
    top: 78px;
    font-size: 170px;
  }

  .category-line,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .category-line {
    min-height: auto;
    gap: 10px;
  }

  .category-line::before {
    display: none;
  }

  .category-line a {
    min-height: 46px;
    padding: 0 0 0 34px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .category-line span {
    left: 9px;
  }

  .section-heading {
    display: block;
  }

  .filter-bar {
    justify-content: start;
    margin-top: 24px;
  }

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

  .contact-banner {
    display: grid;
    margin-top: 0;
  }

  .contact-banner a {
    width: fit-content;
  }

  .project-list button.active,
  .project-list button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: end;
  }

  .portfolio-title {
    font-size: 64px;
  }

  .portfolio-title span {
    padding-left: 38px;
  }

  .portfolio-title::after {
    width: 120px;
    height: 7px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .hero-contact {
    padding: 16px;
  }

  .hero-contact strong {
    font-size: 19px;
  }

  .contact-banner {
    padding: 24px 18px;
  }

  .contact-banner a {
    width: 100%;
  }

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

  .viewer-button {
    width: 36px;
    height: 56px;
    font-size: 34px;
  }
}
