:root {
  --bg: #070707;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f7f2ee;
  --muted: #9d948e;
  --dim: #5f5752;
  --orange: #ff6a2a;
  --orange-soft: rgba(255, 106, 42, 0.2);
  --cyan: #57dfff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 62% 24%, rgba(255, 106, 42, 0.16), transparent 32rem),
    radial-gradient(circle at 18% 70%, rgba(87, 223, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, #0b0b0b 0%, var(--bg) 46%, #050505 100%);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
}

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

button {
  font: inherit;
}

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

#space {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 22rem;
  height: 22rem;
  left: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 42, 0.16), transparent 66%);
  transform: translate(-50%, -50%);
  opacity: 0.75;
  mix-blend-mode: screen;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.74), rgba(7, 7, 7, 0));
  backdrop-filter: blur(16px);
}

.brand {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.nav nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

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

.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(6rem, 9vw, 8rem) clamp(1.2rem, 5vw, 5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr);
  align-items: center;
  gap: 2rem;
  padding-top: 7rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.hero h1 {
  margin: 0;
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-shadow: 0 0 32px rgba(255, 106, 42, 0.22);
}

.hero h1 span {
  background: linear-gradient(110deg, #fff, #ffd1b6 45%, #fff4e9 70%, #ff8a48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role {
  margin: 1.2rem 0 0;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.intro {
  max-width: 33rem;
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.8rem;
  min-height: 2.8rem;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 42, 0.75);
  box-shadow: 0 0 28px rgba(255, 106, 42, 0.2);
}

.btn.primary {
  color: #130a05;
  border-color: transparent;
  background: linear-gradient(135deg, #ffefe1, var(--orange));
}

.avatar-stage {
  position: relative;
  min-height: clamp(31rem, 54vw, 45rem);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.avatar-halo {
  position: absolute;
  width: min(35rem, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 106, 42, 0.23), transparent 58%),
    conic-gradient(from 20deg, transparent, rgba(255, 106, 42, 0.65), transparent, rgba(87, 223, 255, 0.4), transparent);
  filter: blur(2px);
  animation: breathe 5s ease-in-out infinite;
}

.energy-ring {
  position: absolute;
  width: min(28rem, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 24px rgba(255, 106, 42, 0.14), 0 0 40px rgba(255, 106, 42, 0.11);
}

.ring-a {
  animation: spin 18s linear infinite;
}

.ring-b {
  width: min(22rem, 58vw);
  border-color: rgba(87, 223, 255, 0.18);
  animation: spin 26s linear infinite reverse;
}

.orbit {
  position: absolute;
  width: min(34rem, 82vw);
  aspect-ratio: 1 / 0.56;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.orbit-two {
  width: min(28rem, 72vw);
  transform: rotate(22deg);
  border-color: rgba(255, 106, 42, 0.2);
}

.avatar {
  position: relative;
  z-index: 2;
  width: min(26rem, 70vw);
  max-height: 36rem;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 106, 42, 0.36)) drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.7));
  animation: float 5.5s ease-in-out infinite;
}

.avatar-shadow {
  position: absolute;
  bottom: 6%;
  width: min(23rem, 58vw);
  height: 3rem;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 106, 42, 0.28), transparent 65%);
  filter: blur(10px);
}

.spark-btn {
  position: absolute;
  right: 12%;
  bottom: 18%;
  z-index: 3;
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.spark-btn span {
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.signal-panel {
  position: absolute;
  left: clamp(1.2rem, 5vw, 5rem);
  right: clamp(1.2rem, 5vw, 5rem);
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.signal-panel span {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-title {
  max-width: 52rem;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.fragment-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.art-home .fragment-field {
  align-items: stretch;
  perspective: 900px;
}

.art-home .fragment {
  min-height: 22rem;
  transform-style: preserve-3d;
  animation: fragmentFloat 6.5s ease-in-out infinite;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.26s ease,
    background 0.26s ease,
    box-shadow 0.26s ease;
}

.art-home .fragment:nth-child(1) {
  animation-delay: 0s;
}

.art-home .fragment:nth-child(2) {
  animation-delay: -1.2s;
}

.art-home .fragment:nth-child(3) {
  animation-delay: -2.4s;
}

.art-home .fragment:nth-child(4) {
  animation-delay: -3.6s;
}

.art-home .fragment:nth-child(2),
.art-home .fragment:nth-child(4) {
  margin-top: 2.4rem;
}

.art-home .fragment::before {
  background:
    linear-gradient(135deg, rgba(216, 155, 90, 0.18), transparent 42%),
    radial-gradient(circle at var(--mx, 70%) var(--my, 25%), rgba(255, 122, 47, 0.2), transparent 12rem);
}

.art-home .fragment::after {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 0.9rem 0.8rem 0;
}

.art-home .fragment .scan-line {
  display: none;
}

.art-home .fragment:hover {
  animation-play-state: paused;
  transform: translateY(-0.75rem) scale(1.025);
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
}

.art-home .fragment h3::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 1.1rem;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 122, 47, 0.5), transparent);
  opacity: 0;
  transform: translateX(-40%);
  animation: fragmentScan 3.6s ease-in-out infinite;
}

.art-home .fragment:nth-child(2) h3::after {
  animation-delay: -0.8s;
}

.art-home .fragment:nth-child(3) h3::after {
  animation-delay: -1.6s;
}

.art-home .fragment:nth-child(4) h3::after {
  animation-delay: -2.4s;
}

.art-home .fragment h3,
.art-home .fragment p,
.art-home .fragment span {
  transform: translateZ(18px);
}

.art-home .fragment p {
  transition: color 0.24s ease, transform 0.34s ease;
}

.art-home .fragment:hover p {
  color: rgba(245, 238, 232, 0.78);
  transform: translateZ(26px) translateY(-0.2rem);
}

.art-home .fragment span::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 0.6rem;
  content: "";
  background: linear-gradient(90deg, var(--orange), transparent);
  transition: width 0.28s ease;
}

.art-home .fragment:hover span::after {
  width: 3.5rem;
}

.fragment,
.console-card,
.portal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(20px);
}

.fragment::before,
.console-card::before,
.portal::before {
  position: absolute;
  inset: -1px;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 106, 42, 0.28), transparent);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 0.35s ease, transform 0.55s ease;
}

.fragment:hover::before,
.console-card:hover::before,
.portal:hover::before {
  opacity: 1;
  transform: translateX(70%);
}

.fragment {
  min-height: 19rem;
  padding: 1.4rem;
  border-radius: 1.3rem;
}

.fragment span,
.card-top span,
.portal span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.fragment h3,
.console-card h3 {
  position: relative;
  margin: 5.5rem 0 0.8rem;
  font-size: 1.35rem;
}

.fragment p,
.console-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.console-card {
  min-height: 22rem;
  padding: 1.5rem;
  border-radius: 1.3rem;
}

.card-top {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.card-top b {
  color: rgba(255, 255, 255, 0.2);
  font-size: 3rem;
}

.meter {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  box-shadow: 0 0 20px rgba(255, 106, 42, 0.45);
}

.world-constellation,
.anime-card,
.photo-tile {
  position: relative;
}

.world-constellation {
  min-height: 42rem;
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(22rem, 1fr) minmax(13rem, 0.75fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.world-constellation::before {
  position: absolute;
  inset: 8% 5%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.world-lane {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
  z-index: 2;
}

.lane-left {
  align-items: flex-start;
}

.lane-right {
  align-items: flex-end;
}

.world-node {
  width: min(100%, 20rem);
  position: relative;
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(18px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.world-node.offset {
  transform: translateX(3rem);
}

.lane-right .world-node.offset {
  transform: translateX(-3rem);
}

.world-node:hover,
.world-node.active {
  border-color: rgba(255, 106, 42, 0.68);
  background: linear-gradient(135deg, rgba(255, 106, 42, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: 0 0 30px rgba(255, 106, 42, 0.16);
}

.world-node:hover {
  transform: translateY(-4px);
}

.world-node.offset:hover {
  transform: translate(3rem, -4px);
}

.lane-right .world-node.offset:hover {
  transform: translate(-3rem, -4px);
}

.world-node span {
  position: absolute;
  left: 1rem;
  top: -1.45rem;
  color: rgba(255, 106, 42, 0.8);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.world-node strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.2;
}

.world-node small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.world-core {
  position: relative;
  min-height: 36rem;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.1);
  isolation: isolate;
}

.world-core img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.08) contrast(1.08);
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.world-core:hover img {
  opacity: 0.74;
  transform: scale(1.04);
}

.world-core::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  background:
    radial-gradient(circle at 50% 38%, transparent, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.world-core-orbit {
  position: absolute;
  inset: 11%;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-13deg);
  box-shadow: 0 0 40px rgba(255, 106, 42, 0.12);
}

.world-core-orbit::before {
  position: absolute;
  top: 13%;
  right: 16%;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
}

.world-core-copy {
  position: absolute;
  left: 1.7rem;
  right: 1.7rem;
  bottom: 1.7rem;
  z-index: 3;
}

.world-core-copy span {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.world-core-copy h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.world-core-copy p {
  max-width: 32rem;
  margin: 0.9rem 0 1rem;
  color: rgba(247, 242, 238, 0.74);
  line-height: 1.85;
}

.world-core-copy b {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #120905;
  background: linear-gradient(135deg, #ffefe1, var(--orange));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.portfolio-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1rem;
}

.portfolio-main,
.portfolio-stack article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(20px);
}

.portfolio-main {
  min-height: 28rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 106, 42, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.portfolio-main span,
.portfolio-stack b {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.portfolio-main h3 {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.portfolio-main p {
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.9;
}

.portfolio-main a {
  width: fit-content;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.portfolio-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portfolio-actions a:nth-child(2) {
  border-color: rgba(117, 217, 204, 0.38);
  color: #9debe3;
}

.portfolio-stack {
  display: grid;
  gap: 1rem;
}

.portfolio-stack article {
  position: relative;
  overflow: hidden;
  min-height: 8.7rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.portfolio-stack article::after {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  content: attr(data-index);
  color: rgba(255, 106, 42, 0.22);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translate(18px, -50%) scale(0.92);
  text-shadow: 0 0 26px rgba(255, 106, 42, 0.45);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.portfolio-stack article:hover {
  border-color: rgba(255, 106, 42, 0.58);
  background: linear-gradient(135deg, rgba(255, 106, 42, 0.14), rgba(255, 255, 255, 0.045));
  transform: translateX(0.35rem);
}

.portfolio-stack article:hover::after {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.portfolio-stack article:hover b {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.portfolio-stack strong,
.portfolio-stack small {
  position: relative;
  z-index: 1;
  display: block;
}

.portfolio-stack b {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-stack strong {
  margin-top: 1rem;
  font-size: 1.15rem;
}

.portfolio-stack small {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.contact-card {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(20px);
  transition: border-color 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.contact-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 85% 18%, rgba(255, 106, 42, 0.2), transparent 12rem);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.contact-card::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 190, 145, 0.8);
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.contact-card:hover {
  border-color: rgba(255, 106, 42, 0.45);
  background: linear-gradient(135deg, rgba(255, 106, 42, 0.12), rgba(255, 255, 255, 0.045));
  transform: translateY(-3px);
}

.contact-card:hover::before,
.contact-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.contact-email::after {
  content: "@";
}

.contact-wechat::after {
  content: "WX";
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contact-phone::after {
  content: "☎";
}

.contact-card span {
  position: relative;
  z-index: 1;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.contact-card h3 {
  position: relative;
  z-index: 1;
  margin: 4.5rem 0 0.55rem;
  font-size: 1.35rem;
}

.contact-card a,
.contact-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.7;
  word-break: break-word;
}

.interest-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.interest-hero h1,
.hometown-hero-copy h1 {
  margin: 0;
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(4.8rem, 12vw, 10rem);
  line-height: 0.95;
  font-weight: 400;
}

.interest-hero-copy p:last-child,
.hometown-hero-copy p:last-child {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.08rem;
}

.interest-orbit {
  position: relative;
  min-height: 36rem;
}

.orbit-main {
  position: absolute;
  inset: 10% 8% 10% 8%;
  width: 84%;
  height: 80%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2rem;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.55);
}

.orbit-card,
.heat-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.orbit-card {
  width: 12rem;
  height: 9rem;
  object-fit: cover;
}

.card-a {
  right: 0;
  top: 8%;
}

.heat-card {
  left: 0;
  bottom: 12%;
  width: 14rem;
  padding: 1rem;
}

.heat-card span,
.anime-feature span,
.anime-strip span,
.menu-board-title span,
.menu-grid span,
.pet-photo-stack span,
.map-node span,
.memory-ribbon span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.heat-card strong {
  display: block;
  margin-top: 0.6rem;
}

.anime-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1rem;
}

.anime-feature,
.anime-strip,
.menu-board,
.pet-wall,
.map-node,
.memory-ribbon article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(20px);
}

.anime-feature {
  min-height: 35rem;
  position: relative;
  border-radius: 1.5rem;
}

.anime-feature img,
.map-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.anime-feature:hover img,
.map-node:hover img {
  transform: scale(1.05);
}

.anime-feature::after,
.map-node::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78));
}

.anime-feature div,
.map-node div {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1;
}

.anime-feature h3,
.map-node h3 {
  margin: 0.35rem 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.anime-feature p,
.map-node p,
.anime-strip p {
  margin: 0;
  color: rgba(247, 242, 238, 0.72);
  line-height: 1.7;
}

.thumb-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.thumb-rail button {
  width: 4rem;
  height: 2.7rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.thumb-rail.mini button {
  width: 2.7rem;
  height: 2rem;
  border-radius: 0.42rem;
}

.thumb-rail button:hover,
.thumb-rail button.active {
  opacity: 1;
  border-color: rgba(255, 106, 42, 0.8);
  transform: translateY(-2px);
}

.thumb-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-side-list {
  display: grid;
  gap: 1rem;
}

.anime-strip {
  min-height: 10.65rem;
  display: grid;
  grid-template-columns: 9rem 1fr;
  border-radius: 1rem;
}

.anime-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-strip div {
  padding: 1rem;
}

.anime-strip h3 {
  margin: 0.5rem 0 0.35rem;
}

.menu-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1.5rem;
}

.menu-board::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(255, 106, 42, 0.14);
  border-radius: 1rem;
  pointer-events: none;
}

.menu-board-title {
  padding: 1rem;
}

.menu-board-title h3 {
  margin: 0.6rem 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.menu-board-title p {
  color: var(--muted);
  line-height: 1.8;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.menu-grid article {
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
}

.menu-grid h4 {
  margin: 0.65rem 0 0.25rem;
}

.menu-grid p {
  color: var(--muted);
}

.menu-grid i {
  display: block;
  height: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.pet-wall {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1.5rem;
}

.pet-photo-stack {
  position: relative;
}

.pet-photo-stack img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  border-radius: 1.1rem;
}

.pet-photo-stack span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
}

.pet-story h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.pet-story p {
  color: var(--muted);
  line-height: 1.9;
}

.pet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pet-tags span {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.hometown-hero-v2 {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hometown-hero-v2 > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hometown-hero-v2::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), #070707 92%);
}

.hometown-hero-copy {
  position: relative;
  z-index: 1;
}

.map-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 16rem;
  gap: 1rem;
}

.map-node {
  position: relative;
  border-radius: 1.2rem;
}

.map-node.tall {
  grid-row: span 2;
}

.map-node.wide {
  grid-column: span 2;
}

.memory-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.memory-ribbon article {
  min-height: 13rem;
  padding: 1.2rem;
  border-radius: 1.1rem;
}

.memory-ribbon h3 {
  margin: 1rem 0 0.45rem;
}

.memory-ribbon p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hover-index,
.portfolio-stack article[data-index],
.menu-grid article,
.memory-ribbon article {
  position: relative;
  overflow: hidden;
}

.menu-grid article:nth-child(1),
.memory-ribbon article:nth-child(1) {
  --hover-index: "01";
}

.menu-grid article:nth-child(2),
.memory-ribbon article:nth-child(2) {
  --hover-index: "02";
}

.menu-grid article:nth-child(3),
.memory-ribbon article:nth-child(3) {
  --hover-index: "03";
}

.menu-grid article:nth-child(4) {
  --hover-index: "04";
}

.hover-index::after,
.portfolio-stack article[data-index]::after,
.menu-grid article::after,
.memory-ribbon article::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: attr(data-index);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(0.4rem, 2vw, 1.2rem);
  color: transparent;
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.08em;
  opacity: 0;
  transform: translateY(0.8rem) scale(0.985);
  -webkit-text-stroke: 1px rgba(255, 190, 145, 0.22);
  text-shadow:
    0 0 14px rgba(255, 106, 42, 0.14),
    0 0 34px rgba(255, 106, 42, 0.08);
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.menu-grid article::after,
.memory-ribbon article::after {
  content: var(--hover-index);
}

.hover-index::before,
.portfolio-stack article[data-index]::before,
.menu-grid article::before,
.memory-ribbon article::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 82% 35%, rgba(255, 106, 42, 0.14), transparent 18rem),
    linear-gradient(120deg, transparent 40%, rgba(255, 106, 42, 0.055), transparent 76%);
  opacity: 0;
  transform: none;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.hover-index:hover::after,
.portfolio-stack article[data-index]:hover::after,
.menu-grid article:hover::after,
.memory-ribbon article:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hover-index:hover::before,
.portfolio-stack article[data-index]:hover::before,
.menu-grid article:hover::before,
.memory-ribbon article:hover::before {
  opacity: 1;
}

.hover-index:hover,
.portfolio-stack article[data-index]:hover,
.menu-grid article:hover,
.memory-ribbon article:hover {
  border-color: rgba(255, 106, 42, 0.42);
}

.portfolio-stack article[data-index]:hover {
  transform: translateY(-2px);
}

.hover-index > *,
.portfolio-stack article[data-index] > *,
.menu-grid article > *,
.memory-ribbon article > * {
  position: relative;
  z-index: 2;
}

.hover-index:hover > span:first-child,
.hover-index:hover > b:first-child,
.portfolio-stack article[data-index]:hover > b:first-child,
.menu-grid article:hover > span:first-child,
.memory-ribbon article:hover > span:first-child {
  opacity: 0;
  transform: translateY(-0.25rem);
}

.hover-index > span:first-child,
.hover-index > b:first-child,
.portfolio-stack article[data-index] > b:first-child,
.menu-grid article > span:first-child,
.memory-ribbon article > span:first-child {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portfolio-stack article[data-index]::after,
.menu-grid article::after,
.memory-ribbon article::after,
.anime-strip.hover-index::after {
  font-size: clamp(4.2rem, 12vw, 8rem);
  -webkit-text-stroke-width: 1px;
}

@keyframes slowZoom {
  to {
    transform: scale(1.08);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
}

.modal-panel {
  position: relative;
  width: min(72rem, 96vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 106, 42, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(8, 8, 8, 0.98));
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.72);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-copy {
  max-width: 48rem;
  margin-bottom: 1.4rem;
}

.modal-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.modal-copy p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.modal-gallery figure {
  position: relative;
  min-height: 13rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  min-height: 13rem;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.modal-gallery figure:hover img {
  transform: scale(1.04);
}

.modal-gallery figcaption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 2px 12px #000;
}

.modal-extra {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.mini-card {
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
}

.detail-page .section {
  min-height: auto;
}

.detail-hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.95;
  font-family: "Ma Shan Zheng", cursive;
  font-weight: 400;
  color: var(--text);
  text-shadow: 0 0 34px rgba(255, 106, 42, 0.22);
}

.detail-lead {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.detail-section {
  position: relative;
  z-index: 1;
  padding: 4rem clamp(1.2rem, 5vw, 5rem);
}

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

.anime-card {
  border-radius: 1.2rem;
  color: var(--text);
}

.anime-card img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.anime-card div {
  padding: 1rem;
}

.anime-card span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.anime-card h3 {
  margin: 0.55rem 0 0.35rem;
}

.anime-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.pet-showcase {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: center;
}

.pet-showcase > img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
}

.pet-showcase h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.pet-showcase p {
  color: var(--muted);
  line-height: 1.9;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 14rem;
  gap: 1rem;
}

.photo-tile {
  border-radius: 1.2rem;
}

.photo-tile.tall {
  grid-row: span 2;
}

.photo-tile.wide {
  grid-column: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile div {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.photo-tile h3 {
  margin: 0;
  font-size: 1.3rem;
}

.photo-tile p {
  margin: 0.3rem 0 0;
  color: rgba(247, 242, 238, 0.7);
}

.mini-card span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.mini-card h3 {
  margin: 0.65rem 0 0.35rem;
  font-size: 1.05rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.burst {
  position: fixed;
  z-index: 30;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
  pointer-events: none;
  animation: burst 680ms ease-out forwards;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

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

@keyframes burst {
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.2);
  }
}

@media (max-width: 900px) {
  .hero,
  .fragment-field,
  .deck,
  .world-constellation,
  .portfolio-showcase,
  .interest-hero,
  .anime-feature-grid,
  .menu-board,
  .menu-grid,
  .pet-wall,
  .map-board,
  .memory-ribbon,
  .contact-grid,
  .anime-grid,
  .mini-grid,
  .pet-showcase,
  .photo-mosaic,
  .modal-gallery,
  .modal-extra {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .art-home .fragment:nth-child(2),
  .art-home .fragment:nth-child(4) {
    margin-top: 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .signal-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .fragment,
  .console-card,
  .world-core {
    min-height: 16rem;
  }

  .world-constellation {
    min-height: auto;
  }

  .world-constellation::before {
    display: none;
  }

  .world-lane {
    gap: 1rem;
  }

  .world-node,
  .world-node.offset,
  .lane-right .world-node.offset {
    width: 100%;
    transform: none;
  }

  .world-node:hover,
  .world-node.offset:hover,
  .lane-right .world-node.offset:hover {
    transform: translateY(-3px);
  }

  .photo-tile.tall,
  .photo-tile.wide,
  .map-node.tall,
  .map-node.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .interest-orbit {
    min-height: 28rem;
  }

  .anime-strip {
    grid-template-columns: 7rem 1fr;
  }
}

.ability-carousel {
  position: relative;
  min-height: clamp(28rem, 52vw, 36rem);
  display: grid;
  place-items: center;
  perspective: 1200px;
  overflow: hidden;
}

.ability-stage {
  position: relative;
  width: min(100%, 68rem);
  height: clamp(23rem, 40vw, 30rem);
  transform-style: preserve-3d;
}

.ability-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(21rem, 40vw, 31rem);
  min-height: clamp(17rem, 27vw, 21rem);
  transform-style: preserve-3d;
  cursor: pointer;
  transition:
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.48s ease,
    filter 0.48s ease,
    border-color 0.3s ease;
}

.ability-card.active {
  border-color: rgba(216, 155, 90, 0.52);
}

.ability-card h3 {
  margin-top: 3.5rem;
}

.ability-pillar {
  display: none;
}

.ability-pillar span {
  position: absolute;
  left: 50%;
  top: -9%;
  width: 74%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(216, 155, 90, 0.24);
  background: radial-gradient(ellipse, rgba(255, 122, 47, 0.18), transparent 68%);
}

.ability-nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ability-nav:hover {
  border-color: rgba(216, 155, 90, 0.5);
  background: rgba(255, 122, 47, 0.1);
}

.ability-prev {
  left: clamp(0rem, 3vw, 2rem);
}

.ability-next {
  right: clamp(0rem, 3vw, 2rem);
}

.ability-dots {
  position: absolute;
  bottom: 1rem;
  z-index: 8;
  display: flex;
  gap: 0.55rem;
}

.ability-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ability-dots button.active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 122, 47, 0.5);
}

@media (max-width: 900px) {
  .ability-carousel {
    min-height: 34rem;
  }

  .ability-stage {
    height: 25rem;
  }

  .ability-card {
    width: min(84vw, 27rem);
  }
}

@media (max-width: 640px) {
  .nav nav {
    gap: 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .avatar-stage {
    min-height: 27rem;
  }
}

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

/* Performance pass: keep the site alive, but remove the heavy always-running layers. */
.stage-texture,
.art-home::before,
.art-home .world-constellation::after {
  animation: none;
}

.stage-texture {
  opacity: 0.15;
}

.art-home::before {
  opacity: 0.34;
  filter: blur(60px);
}

.hero-signals span::after,
.art-home .fragment-field::before,
.art-home .portfolio-showcase::before,
.art-home .world-constellation::before,
.art-home .world-core,
.art-home .world-core-orbit,
.art-home .portfolio-stack article,
.ai-launcher {
  animation-duration: 12s;
}

.art-home .fragment {
  animation: none;
}

.art-home .portfolio-stack article {
  animation: none;
}

.poster-badge,
.hero-nameplate h1 span,
.art-home .contact-card span::before {
  animation-duration: 8s;
}

.poster-avatar {
  max-height: min(78vh, 41rem);
  object-fit: contain;
}

/* Art direction refresh */
.art-home {
  --bg: #050505;
  --bg-secondary: #0b0a09;
  --text: #f5eee8;
  --muted: #a59a91;
  --dim: #6d625a;
  --orange: #ff7a2f;
  --gold: #d89b5a;
  --cyan: #64d8ff;
  --line: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 122, 47, 0.12), transparent 32rem),
    radial-gradient(circle at 18% 76%, rgba(100, 216, 255, 0.045), transparent 28rem),
    linear-gradient(180deg, #080706 0%, #050505 46%, #070604 100%);
}

.art-home::before {
  opacity: 0.58;
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 58% 20%, black, transparent 78%);
}

.stage-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.24;
  background:
    radial-gradient(ellipse at 64% 22%, rgba(255, 122, 47, 0.18), transparent 34rem),
    repeating-linear-gradient(118deg, transparent 0 24px, rgba(216, 155, 90, 0.035) 25px 26px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 34%, transparent 66%, rgba(255, 255, 255, 0.025));
}

.art-nav {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0));
}

.art-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  padding-top: 6.5rem;
  overflow: hidden;
}

.art-hero::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92vw;
  height: 1px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(216, 155, 90, 0.28), transparent);
}

.hero-nameplate {
  position: relative;
  z-index: 3;
}

.hero-nameplate h1 {
  margin: 0;
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(4.8rem, 12vw, 12rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hero-nameplate h1 span {
  color: transparent;
  background: linear-gradient(110deg, #fff9f2, #ffc79b 42%, #f5eee8 58%, #d89b5a);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 34px rgba(255, 122, 47, 0.18);
}

.hero-nameplate .role {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: #fff5ec;
}

.hero-nameplate .intro {
  max-width: 35rem;
  color: var(--muted);
}

.poster-stage {
  position: relative;
  min-height: clamp(35rem, 70vw, 48rem);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.poster-aura {
  position: absolute;
  width: min(38rem, 80vw);
  aspect-ratio: 1;
  border-radius: 44% 56% 48% 52%;
  background:
    radial-gradient(circle, rgba(255, 122, 47, 0.24), transparent 60%),
    conic-gradient(from 130deg, transparent, rgba(216, 155, 90, 0.48), transparent 42%, rgba(100, 216, 255, 0.2), transparent);
  filter: blur(1px);
  animation: auraDrift 9s ease-in-out infinite;
}

.ink-ring {
  position: absolute;
  width: min(33rem, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(216, 155, 90, 0.28);
  box-shadow: inset 0 0 34px rgba(255, 122, 47, 0.08), 0 0 58px rgba(255, 122, 47, 0.12);
  transform: rotate(-12deg);
  animation: slowSpin 30s linear infinite;
}

.poster-lines {
  position: absolute;
  width: min(35rem, 78vw);
  height: min(35rem, 78vw);
  border-radius: 50%;
  background: repeating-conic-gradient(from 20deg, rgba(255, 255, 255, 0.08) 0 1deg, transparent 1deg 12deg);
  mask-image: radial-gradient(circle, transparent 0 48%, black 49% 51%, transparent 52%);
  opacity: 0.5;
  animation: slowSpin 44s linear infinite reverse;
}

.poster-character {
  position: relative;
  z-index: 3;
  width: min(29rem, 72vw);
  max-height: 42rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  --walk-x: 0px;
  --walk-y: 0px;
  --face: 1;
  transform: translate3d(var(--walk-x), var(--walk-y), 0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.poster-character:hover .poster-avatar {
  filter:
    drop-shadow(0 0 4px rgba(255, 220, 180, 0.95))
    drop-shadow(0 0 34px rgba(255, 122, 47, 0.34))
    drop-shadow(0 2.6rem 4rem rgba(0, 0, 0, 0.82));
}

.poster-character.chatting .character-bubble {
  opacity: 1;
  transform: translate(-50%, -0.4rem) scale(1);
}

.poster-character.working {
  --walk-x: 0px;
  --walk-y: 18px;
}

.poster-character.working .poster-avatar {
  opacity: 0;
  transform: scaleX(var(--face)) translateY(2rem) scale(0.86);
  animation: none;
}

.poster-character.working .sitting-avatar {
  opacity: 1;
  transform: translate(-50%, 1.2rem) scale(1);
  animation: typingBody 0.46s ease-in-out infinite;
}

.poster-character.working .workstation {
  opacity: 0;
  transform: translate(-50%, 1.2rem) scale(0.94);
}

.poster-avatar {
  position: relative;
  width: min(29rem, 72vw);
  max-height: 42rem;
  object-fit: contain;
  transform: scaleX(var(--face));
  filter:
    drop-shadow(0 0 3px rgba(255, 190, 145, 0.9))
    drop-shadow(0 0 24px rgba(255, 122, 47, 0.28))
    drop-shadow(0 2.6rem 4rem rgba(0, 0, 0, 0.82));
  animation: heroFloat 7s ease-in-out infinite;
  transition: filter 0.28s ease, transform 0.45s ease;
}

.sitting-avatar {
  position: absolute;
  left: 50%;
  bottom: -2.4rem;
  z-index: 3;
  width: min(33rem, 78vw);
  max-height: 43rem;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, 2.5rem) scale(0.96);
  filter:
    drop-shadow(0 0 3px rgba(255, 190, 145, 0.85))
    drop-shadow(0 0 22px rgba(255, 122, 47, 0.22))
    drop-shadow(0 2.4rem 4rem rgba(0, 0, 0, 0.82));
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.typing-loop {
  width: min(31rem, 76vw);
}

.character-bubble {
  position: absolute;
  left: 50%;
  top: 4%;
  z-index: 5;
  min-width: max-content;
  max-width: 18rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 26px rgba(255, 122, 47, 0.18);
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.3rem) scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.character-spark {
  position: fixed;
  z-index: 50;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 190, 145, 0.95);
  box-shadow: 0 0 18px rgba(255, 122, 47, 0.9);
  pointer-events: none;
  animation: characterSpark 760ms ease-out forwards;
}

.workstation {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 7;
  width: min(24rem, 78vw);
  height: 13rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1.2rem) scale(0.94);
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.monitor {
  position: absolute;
  left: 50%;
  bottom: 6.4rem;
  width: 12rem;
  height: 7rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(10, 18, 20, 0.92), rgba(6, 7, 8, 0.92));
  box-shadow: 0 0 30px rgba(100, 216, 255, 0.12), inset 0 0 20px rgba(100, 216, 255, 0.06);
}

.monitor span {
  position: absolute;
  inset: 0.7rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(90deg, rgba(100, 216, 255, 0.18) 0 1px, transparent 1px 18px),
    linear-gradient(rgba(255, 122, 47, 0.22), rgba(100, 216, 255, 0.12));
  opacity: 0.72;
}

.monitor i {
  position: absolute;
  left: 50%;
  bottom: -1.6rem;
  width: 3rem;
  height: 1.6rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035));
  clip-path: polygon(36% 0, 64% 0, 78% 100%, 22% 100%);
}

.keyboard {
  position: absolute;
  left: 50%;
  bottom: 4.35rem;
  width: 13rem;
  height: 2.1rem;
  transform: translateX(-50%) perspective(300px) rotateX(55deg);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 18px rgba(255, 122, 47, 0.1);
}

.keyboard em {
  position: relative;
  display: inline-block;
  width: 1.4rem;
  height: 0.35rem;
  margin: 0.85rem 0.25rem 0;
  border-radius: 999px;
  background: rgba(245, 238, 232, 0.42);
  animation: keyTap 0.6s ease-in-out infinite;
}

.keyboard em:nth-child(2) { animation-delay: 0.08s; }
.keyboard em:nth-child(3) { animation-delay: 0.16s; }
.keyboard em:nth-child(4) { animation-delay: 0.24s; }
.keyboard em:nth-child(5) { animation-delay: 0.32s; }

.desk {
  position: absolute;
  left: 50%;
  bottom: 2.6rem;
  width: 22rem;
  height: 1.2rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(216, 155, 90, 0.52), transparent);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.5), 0 0 26px rgba(255, 122, 47, 0.16);
}

.poster-shadow {
  position: absolute;
  bottom: 8%;
  z-index: 1;
  width: min(24rem, 60vw);
  height: 3.6rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 122, 47, 0.24), transparent 66%);
  filter: blur(12px);
}

.poster-badge {
  position: absolute;
  right: 8%;
  bottom: 18%;
  z-index: 4;
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.poster-badge span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.poster-badge strong {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.hero-signals {
  position: absolute;
  left: clamp(1.2rem, 5vw, 5rem);
  right: clamp(1.2rem, 5vw, 5rem);
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.hero-signals span {
  padding: 0.72rem 0.9rem;
  border-top: 1px solid rgba(216, 155, 90, 0.22);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent);
}

.section-title h2 {
  max-width: 48rem;
}

.art-home .fragment,
.art-home .console-card,
.art-home .portfolio-main,
.art-home .portfolio-stack article,
.art-home .contact-card {
  border-color: rgba(255, 255, 255, 0.095);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.art-home .fragment:hover,
.art-home .console-card:hover,
.art-home .portfolio-stack article:hover {
  border-color: rgba(216, 155, 90, 0.42);
  background: linear-gradient(135deg, rgba(255, 122, 47, 0.095), rgba(255, 255, 255, 0.04));
}

.art-home .hover-index::after,
.art-home .portfolio-stack article[data-index]::after,
.art-home .menu-grid article::after,
.art-home .memory-ribbon article::after {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 190, 145, 0.18);
  text-shadow: 0 0 22px rgba(255, 122, 47, 0.08);
}

.art-home .hover-index::before,
.art-home .portfolio-stack article[data-index]::before,
.art-home .menu-grid article::before,
.art-home .memory-ribbon article::before {
  background:
    radial-gradient(circle at 82% 35%, rgba(255, 122, 47, 0.12), transparent 18rem),
    linear-gradient(120deg, transparent 42%, rgba(216, 155, 90, 0.04), transparent 76%);
}

.art-home .world-constellation::before {
  border-color: rgba(216, 155, 90, 0.12);
}

.art-home .world-core {
  border-radius: 2.2rem;
  border-color: rgba(216, 155, 90, 0.18);
}

.art-home .world-node {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.art-home .world-node:hover,
.art-home .world-node.active {
  border-color: rgba(216, 155, 90, 0.48);
  background: linear-gradient(135deg, rgba(255, 122, 47, 0.12), rgba(255, 255, 255, 0.045));
}

@keyframes auraDrift {
  0%,
  100% {
    transform: scale(0.96) rotate(0deg);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.05) rotate(10deg);
    opacity: 1;
  }
}

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

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-0.9rem) translateX(0.25rem);
  }
}

@keyframes fragmentFloat {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg);
  }
  50% {
    transform: translateY(-0.85rem) rotateZ(0.35deg);
  }
}

@keyframes fragmentScan {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-42%);
  }
  42% {
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  78% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes characterSpark {
  to {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) scale(0.25);
  }
}

@keyframes keyTap {
  0%,
  100% { transform: translateY(0); opacity: 0.45; }
  45% { transform: translateY(0.18rem); opacity: 1; }
}

@keyframes typingBody {
  0%,
  100% { transform: translate(-50%, 1.2rem) scale(1); }
  50% { transform: translate(-50%, 1.05rem) scale(1.004); }
}


@media (max-width: 900px) {
  .art-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 3rem;
  }

  .hero-nameplate h1 {
    font-size: clamp(3.8rem, 21vw, 7rem);
  }

  .poster-stage {
    min-height: 31rem;
    order: -1;
  }

  .hero-signals {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }
}

.ai-launcher {
  position: fixed;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.6rem;
  padding: 0.68rem 1rem 0.68rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 210, 125, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(32, 36, 48, 0.92), rgba(10, 12, 18, 0.88));
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.36), 0 0 2rem rgba(255, 185, 92, 0.16);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-launcher span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #151515;
  font-weight: 900;
  background: linear-gradient(135deg, #fff4c8, #ffb25e 58%, #ff7e7e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), 0 0 1.2rem rgba(255, 185, 92, 0.46);
}

.ai-launcher strong {
  font-size: 0.92rem;
  letter-spacing: 0;
}

.ai-launcher:hover {
  transform: translateY(-0.28rem);
  border-color: rgba(255, 218, 150, 0.62);
  box-shadow: 0 1.35rem 3.8rem rgba(0, 0, 0, 0.44), 0 0 2.4rem rgba(255, 185, 92, 0.28);
}

.ai-panel {
  position: fixed;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: 5.7rem;
  z-index: 70;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(25rem, calc(100vw - 2rem));
  height: min(38rem, calc(100vh - 7rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.35rem;
  color: #f7f2ea;
  background:
    linear-gradient(145deg, rgba(18, 20, 28, 0.94), rgba(7, 9, 15, 0.9)),
    radial-gradient(circle at 85% 8%, rgba(255, 185, 92, 0.22), transparent 34%);
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.ai-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 2.7rem 2.7rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

.ai-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.7rem;
}

.ai-panel-head span {
  display: block;
  margin-bottom: 0.2rem;
  color: #ffcf8d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
}

.ai-panel-head h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.ai-close {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.ai-quick {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 1.15rem 0.85rem;
  scrollbar-width: none;
}

.ai-quick::-webkit-scrollbar {
  display: none;
}

.ai-quick button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.5rem 0.72rem;
  color: #f8efe2;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 0.78rem;
}

.ai-messages {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  padding: 0.4rem 1.15rem 1rem;
}

.ai-message {
  max-width: 88%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.72rem 0.82rem;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.ai-message.assistant {
  align-self: flex-start;
  color: #f6efe5;
  background: rgba(255, 255, 255, 0.075);
}

.ai-message.user {
  align-self: flex-end;
  color: #1a150f;
  background: linear-gradient(135deg, #fff1bd, #ffb86f);
  border-color: rgba(255, 226, 168, 0.7);
}

.ai-message.loading {
  color: rgba(246, 239, 229, 0.72);
}

.ai-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.ai-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.78rem 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.ai-form input:focus {
  border-color: rgba(255, 206, 134, 0.65);
  box-shadow: 0 0 0 0.18rem rgba(255, 185, 92, 0.12);
}

.ai-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 1rem;
  color: #18140f;
  background: linear-gradient(135deg, #fff0bd, #ffad63);
  font-weight: 900;
  cursor: pointer;
}

.anime-world-redesign {
  position: relative;
}

.anime-world-redesign::before {
  content: "";
  position: absolute;
  inset: 4rem -6vw auto;
  height: 28rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 118, 70, 0.16), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(101, 223, 255, 0.12), transparent 30%);
  filter: blur(8px);
}

.anime-cinema {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(22rem, 1.18fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
  max-width: 66rem;
  margin: 0 auto;
}

.anime-hero-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
  min-height: 0;
  padding: 1rem;
  border-radius: 1.65rem;
  isolation: isolate;
  box-shadow: 0 1.25rem 3.2rem rgba(0, 0, 0, 0.28);
}

.anime-poster-pair {
  position: relative;
  inset: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  height: clamp(13rem, 23vw, 18rem);
}

.anime-hero-card::before {
  display: none;
}

.anime-hero-card::after {
  display: none;
}

.anime-poster-pair img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(6, 7, 12, 0.74);
  filter: saturate(0.98) contrast(0.98);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 7rem;
  border: 1px solid rgba(255, 205, 137, 0.24);
  border-radius: 1rem;
  color: rgba(255, 238, 213, 0.88);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 164, 91, 0.2), transparent 34%),
    radial-gradient(circle at 72% 70%, rgba(95, 215, 255, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(31, 35, 48, 0.9), rgba(9, 11, 18, 0.86));
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
}

.anime-hero-card:hover .anime-poster-pair img {
  transform: translateY(-0.25rem);
  border-color: rgba(255, 200, 132, 0.34);
}

.anime-hero-copy {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  max-width: 24rem;
  z-index: 2;
  padding: 0 0.25rem 0.25rem;
}

.anime-hero-copy h3 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.anime-hero-copy p {
  font-size: 0.92rem;
}

.anime-hero-copy h3 {
  text-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
}

.anime-radar {
  display: grid;
  gap: 0.85rem;
}

.anime-radar-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.46fr) minmax(0, 0.54fr);
  gap: 0.85rem;
  min-height: 9.2rem;
  padding: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.anime-radar-card:nth-child(2) {
  transform: translateX(-1.25rem);
}

.anime-radar-card:nth-child(3) {
  transform: translateX(0.8rem);
}

.anime-radar-card:hover {
  transform: translateY(-0.45rem) translateX(0);
  border-color: rgba(255, 190, 125, 0.52);
  box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.28);
}

.anime-radar-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  transition: transform 0.5s ease;
}

.anime-radar-card:hover img {
  transform: translateY(-0.18rem);
}

.anime-radar-card::after {
  display: none;
}

.anime-radar-image {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  min-height: 7.6rem;
  overflow: hidden;
}

.anime-radar-image.single {
  grid-template-columns: 1fr;
}

.anime-radar-image.duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.anime-radar-image img {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.75rem;
  background: rgba(5, 6, 10, 0.72);
}

.anime-radar-image .image-fallback {
  min-height: 7.6rem;
  border-radius: 0.75rem;
  font-size: 0.86rem;
}

.anime-radar-card > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: auto;
  padding: 0;
}

.anime-radar-card > .anime-radar-image {
  display: grid;
}

.anime-radar-card span,
.anime-flow span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.anime-radar-card h3 {
  margin: 0.45rem 0 0.3rem;
  font-size: 1.35rem;
}

.anime-radar-card p {
  margin: 0;
  color: rgba(247, 242, 238, 0.76);
  line-height: 1.55;
  font-size: 0.88rem;
}

.anime-flow {
  display: flex;
  gap: 0.75rem;
  overflow: hidden;
  margin-top: 1rem;
  padding: 0.25rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.anime-flow span {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 244, 230, 0.84);
  background: rgba(255, 255, 255, 0.055);
  animation: animeKeywordDrift 7s ease-in-out infinite;
}

.anime-flow span:nth-child(2n) {
  animation-delay: -2.4s;
}

.anime-flow span:nth-child(3n) {
  animation-delay: -4.1s;
}

.cuisine-redesign {
  position: relative;
}

.cuisine-redesign::before {
  content: "";
  position: absolute;
  right: 4vw;
  top: 9rem;
  width: 12rem;
  height: 12rem;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 181, 104, 0.18), transparent 65%);
  animation: cookingSteamGlow 4.8s ease-in-out infinite;
}

.cooking-gallery.menu-board {
  grid-template-columns: minmax(17rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1rem, 2vw, 1.4rem);
}

.cooking-gallery .menu-board-title {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30rem;
  overflow: hidden;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 20% 12%, rgba(255, 173, 95, 0.22), transparent 34%);
}

.cooking-gallery .menu-board-title::before,
.cooking-gallery .menu-board-title::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 7.5rem;
  width: 0.55rem;
  height: 8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  filter: blur(4px);
  opacity: 0.56;
  animation: steamRise 4.2s ease-in-out infinite;
}

.cooking-gallery .menu-board-title::after {
  left: 34%;
  bottom: 8.8rem;
  height: 7rem;
  animation-delay: -1.7s;
}

.cooking-gallery .menu-board-title > * {
  position: relative;
  z-index: 1;
}

.cooking-grid.menu-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(11.5rem, auto);
  gap: 0.85rem;
}

.dish-card {
  position: relative;
  grid-column: span 3;
  min-height: 15rem;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(0);
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.dish-card.tall {
  grid-column: span 3;
  grid-row: span 2;
}

.dish-card.wide {
  grid-column: span 6;
}

.dish-card:hover {
  transform: translateY(-0.45rem);
  border-color: rgba(255, 197, 130, 0.52);
  box-shadow: 0 1.3rem 3.2rem rgba(0, 0, 0, 0.28);
}

.dish-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.dish-card:hover img {
  transform: scale(1.1);
  filter: saturate(1.12) contrast(1.04);
}

.dish-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 15% 12%, rgba(255, 204, 132, 0.28), transparent 32%);
}

.dish-card div {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.dish-card h4 {
  margin: 0.45rem 0 0.25rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.dish-card p {
  margin: 0;
  max-width: 31rem;
  color: rgba(247, 242, 238, 0.78);
  line-height: 1.7;
}

.image-credit {
  margin: 0.8rem 0 0;
  color: rgba(247, 242, 238, 0.46);
  font-size: 0.78rem;
}

@keyframes animeKeywordDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

@keyframes cookingSteamGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-1.1rem) scale(1.12);
    opacity: 0.9;
  }
}

@keyframes steamRise {
  0%,
  100% {
    transform: translateY(1.2rem) translateX(0) scaleY(0.78);
    opacity: 0;
  }
  40% {
    opacity: 0.62;
  }
  70% {
    transform: translateY(-2rem) translateX(0.8rem) scaleY(1.05);
    opacity: 0.16;
  }
}

@media (max-width: 640px) {
  .ai-panel {
    right: 0.75rem;
    bottom: 5.2rem;
    width: calc(100vw - 1.5rem);
    height: min(36rem, calc(100vh - 6.5rem));
    border-radius: 1.1rem;
  }

  .ai-launcher {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (max-width: 900px) {
  .anime-cinema,
  .cooking-gallery.menu-board,
  .cooking-grid.menu-grid {
    grid-template-columns: 1fr;
  }

  .anime-radar-card,
  .anime-radar-card:nth-child(2),
  .anime-radar-card:nth-child(3) {
    transform: none;
  }

  .anime-radar-card:hover {
    transform: translateY(-0.35rem);
  }

  .cooking-gallery .menu-board-title {
    min-height: 18rem;
  }

  .dish-card,
  .dish-card.tall,
  .dish-card.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 18rem;
  }
}

/* Visual polish pass: homepage motion system, leaving the capability carousel untouched. */
.art-home {
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 155, 90, 0.1), transparent 26rem),
    radial-gradient(circle at 86% 34%, rgba(95, 215, 255, 0.07), transparent 28rem),
    linear-gradient(135deg, #07080d 0%, #0d0f16 48%, #08090e 100%);
}

.art-home::before {
  content: "";
  position: fixed;
  inset: -18vh -18vw;
  z-index: -2;
  pointer-events: none;
  background:
    conic-gradient(from 110deg at 50% 50%, transparent 0deg, rgba(216, 155, 90, 0.08) 46deg, transparent 92deg, rgba(92, 205, 235, 0.06) 148deg, transparent 214deg, rgba(255, 255, 255, 0.035) 268deg, transparent 360deg);
  filter: blur(44px);
  opacity: 0.68;
  animation: galleryAurora 18s ease-in-out infinite;
}

.stage-texture {
  animation: textureDrift 22s linear infinite;
}

.art-nav {
  box-shadow: 0 1px rgba(255, 255, 255, 0.06);
}

.art-nav nav a {
  position: relative;
}

.art-nav nav a::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: -0.35rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 146, 0.9), transparent);
  opacity: 0;
  transform: scaleX(0.18);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

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

.hero-nameplate h1 span {
  background-size: 220% 100%;
  animation: nameSheen 7s ease-in-out infinite;
}

.hero-nameplate::after {
  content: "";
  position: absolute;
  left: -0.3rem;
  bottom: -1.2rem;
  width: min(20rem, 62vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 207, 151, 0.9), rgba(92, 205, 235, 0.35), transparent);
  transform-origin: left;
  animation: heroLineScan 4.8s ease-in-out infinite;
}

.poster-badge {
  animation: badgePulse 3.8s ease-in-out infinite;
}

.hero-signals span {
  position: relative;
  overflow: hidden;
}

.hero-signals span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.22), transparent 48%);
  transform: translateX(-130%);
  animation: signalSweep 5.5s ease-in-out infinite;
}

.hero-signals span:nth-child(2)::after {
  animation-delay: 0.9s;
}

.hero-signals span:nth-child(3)::after {
  animation-delay: 1.8s;
}

.art-home .fragment-field {
  position: relative;
}

.art-home .fragment-field::before {
  content: "";
  position: absolute;
  inset: 12% 4%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(216, 155, 90, 0.18), transparent),
    linear-gradient(0deg, transparent, rgba(92, 205, 235, 0.1), transparent);
  background-size: 100% 1px, 1px 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.42;
  animation: fragmentNetwork 6.5s ease-in-out infinite;
}

.art-home .fragment {
  transition: transform 0.36s ease, border-color 0.36s ease, box-shadow 0.36s ease, background 0.36s ease;
}

.art-home .fragment::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 62%) var(--my, 34%), rgba(255, 210, 146, 0.18), transparent 13rem),
    linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.055), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.art-home .fragment:hover::before {
  opacity: 1;
}

.art-home .fragment h3,
.art-home .fragment p,
.art-home .fragment span {
  position: relative;
  z-index: 1;
}

.art-home .portfolio-showcase {
  position: relative;
}

.art-home .portfolio-showcase::before {
  content: "";
  position: absolute;
  left: 38%;
  top: -1rem;
  bottom: -1rem;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 204, 146, 0.28), transparent);
  animation: archiveCursor 4.6s ease-in-out infinite;
}

.art-home .portfolio-main {
  position: relative;
  isolation: isolate;
}

.art-home .portfolio-main::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  opacity: 0.78;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.art-home .portfolio-stack article {
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.art-home .portfolio-stack article:nth-child(1) {
  animation: archiveFloat 5.8s ease-in-out infinite;
}

.art-home .portfolio-stack article:nth-child(2) {
  animation: archiveFloat 6.4s ease-in-out infinite -1.2s;
}

.art-home .portfolio-stack article:nth-child(3) {
  animation: archiveFloat 7s ease-in-out infinite -2.1s;
}

.art-home .world-constellation::before {
  animation: worldOrbitBreath 9s ease-in-out infinite;
}

.art-home .world-constellation::after {
  content: "";
  position: absolute;
  inset: 14% 12%;
  pointer-events: none;
  border: 1px dashed rgba(92, 205, 235, 0.12);
  border-radius: 50%;
  transform: rotate(16deg);
  animation: worldDashedOrbit 18s linear infinite;
}

.art-home .world-node {
  overflow: visible;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.art-home .world-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.38rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 205, 146, 0.9);
  box-shadow: 0 0 1.2rem rgba(255, 205, 146, 0.7);
  transform: translateY(-50%) scale(0.72);
  opacity: 0.46;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.art-home .world-node:hover::after,
.art-home .world-node.active::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.22);
}

.art-home .world-core {
  animation: worldCoreFloat 7.2s ease-in-out infinite;
}

.art-home .world-core-orbit {
  animation: slowSpin 18s linear infinite;
}

.art-home .contact-grid {
  position: relative;
}

.art-home .contact-grid::before {
  content: "";
  position: absolute;
  inset: 12% -2%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(216, 155, 90, 0.16), transparent);
  opacity: 0.52;
  transform: skewY(-2deg);
}

.art-home .contact-card {
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease, background 0.34s ease;
}

.art-home .contact-card:hover {
  box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, 0.24), 0 0 2.2rem rgba(216, 155, 90, 0.12);
}

.art-home .contact-card span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.art-home .contact-card span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #71e4ff;
  box-shadow: 0 0 0.9rem rgba(113, 228, 255, 0.72);
  animation: contactStatusBlink 2.4s ease-in-out infinite;
}

.ai-launcher {
  animation: aiLauncherBreath 4.2s ease-in-out infinite;
}

@keyframes galleryAurora {
  0%,
  100% {
    transform: translate3d(-1.2%, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(1.4%, -1.1%, 0) rotate(8deg) scale(1.04);
  }
}

@keyframes textureDrift {
  to {
    background-position: 42px 28px, 80px 120px, 0 0;
  }
}

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

@keyframes heroLineScan {
  0%,
  100% {
    transform: scaleX(0.42);
    opacity: 0.46;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes badgePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(216, 155, 90, 0);
  }
  50% {
    transform: translateY(-0.35rem);
    box-shadow: 0 0 1.7rem rgba(216, 155, 90, 0.18);
  }
}

@keyframes signalSweep {
  0%,
  58% {
    transform: translateX(-130%);
  }
  78%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes fragmentNetwork {
  0%,
  100% {
    opacity: 0.22;
    transform: scaleX(0.88);
  }
  50% {
    opacity: 0.56;
    transform: scaleX(1);
  }
}

@keyframes archiveCursor {
  0%,
  100% {
    opacity: 0.24;
    transform: translateY(-1rem);
  }
  50% {
    opacity: 0.85;
    transform: translateY(1rem);
  }
}

@keyframes archiveFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.45rem);
  }
}

@keyframes worldOrbitBreath {
  0%,
  100% {
    opacity: 0.38;
    transform: rotate(-8deg) scale(0.985);
  }
  50% {
    opacity: 0.78;
    transform: rotate(-4deg) scale(1.018);
  }
}

@keyframes worldDashedOrbit {
  to {
    transform: rotate(376deg);
  }
}

@keyframes worldCoreFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.6rem);
  }
}

@keyframes contactStatusBlink {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82);
  }
  45% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes aiLauncherBreath {
  0%,
  100% {
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.36), 0 0 2rem rgba(255, 185, 92, 0.16);
  }
  50% {
    box-shadow: 0 1.3rem 3.6rem rgba(0, 0, 0, 0.42), 0 0 2.8rem rgba(255, 185, 92, 0.28);
  }
}

/* Image visibility fix: local placeholders should read as images, not dark overlays. */
img {
  display: block;
}

.poster-avatar {
  opacity: 1 !important;
  visibility: visible !important;
}

.world-core img {
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.02) brightness(1.05);
}

.world-core::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.orbit-main,
.orbit-card,
.anime-poster-pair img,
.anime-radar-image img,
.dish-card img,
.pet-photo-stack img,
.hometown-hero-v2 > img,
.map-node img,
.gallery-main,
.thumb-rail img {
  opacity: 1;
  visibility: visible;
}

.hometown-hero-v2 > img {
  filter: saturate(1.05) contrast(1.02);
}

/* Home performance mode */
.art-home .cursor-glow {
  display: none;
}

.art-home .poster-lines,
.art-home .ink-ring {
  display: none;
}

.art-home .poster-aura {
  opacity: 0.42;
  filter: none;
}

.art-home .poster-avatar {
  width: min(23rem, 58vw);
  max-height: min(74vh, 38rem);
  filter: drop-shadow(0 2rem 2.6rem rgba(0, 0, 0, 0.62)) !important;
  transition: transform 0.28s ease;
}

.art-home .poster-character:hover .poster-avatar {
  filter: drop-shadow(0 2rem 2.6rem rgba(0, 0, 0, 0.62)) !important;
}

.art-home .poster-character {
  width: min(23rem, 58vw);
}

.art-home .poster-stage {
  contain: layout paint;
}

.art-home .nav,
.art-home .world-node,
.art-home .contact-card,
.art-home .portfolio-main,
.art-home .portfolio-stack article,
.art-home .fragment,
.art-home .console-card {
  backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .art-home::before,
  .stage-texture,
  .hero-nameplate h1 span,
  .hero-nameplate::after,
  .poster-badge,
  .hero-signals span::after,
  .art-home .fragment-field::before,
  .art-home .portfolio-showcase::before,
  .art-home .portfolio-stack article,
  .art-home .world-constellation::before,
  .art-home .world-constellation::after,
  .art-home .world-core,
  .art-home .world-core-orbit,
  .art-home .contact-card span::before,
  .ai-launcher {
    animation: none;
  }
}

/* Visual upgrade v1: refined homepage layer, capability console intentionally untouched. */
.art-home {
  color: #f6f0df;
  background:
    linear-gradient(115deg, rgba(212, 162, 93, 0.11), transparent 27%),
    linear-gradient(245deg, rgba(84, 196, 184, 0.1), transparent 31%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 72px),
    #101112;
}

.art-home::before {
  opacity: 0.46;
  background:
    linear-gradient(100deg, transparent 0%, rgba(255, 225, 168, 0.08) 28%, transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%, rgba(0, 0, 0, 0.36));
  mix-blend-mode: screen;
  animation: galleryLightDrift 18s ease-in-out infinite;
}

.stage-texture {
  opacity: 0.36;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  animation: refinedTextureShift 22s linear infinite;
}

.art-nav {
  border: 1px solid rgba(255, 232, 186, 0.16);
  background: rgba(15, 16, 17, 0.78);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28);
}

.art-nav .brand {
  color: #ffd184;
  text-shadow: 0 0 1.5rem rgba(255, 185, 92, 0.42);
}

.art-nav nav a {
  color: rgba(246, 240, 223, 0.74);
}

.art-nav nav a:hover {
  color: #ffe4b3;
}

.art-hero {
  min-height: 96vh;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5.6rem);
}

.hero-nameplate {
  position: relative;
  padding-left: clamp(1rem, 2vw, 1.6rem);
}

.hero-nameplate::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #ffd184 18%, #54c4b8 58%, transparent);
  box-shadow: 0 0 1.6rem rgba(255, 209, 132, 0.42);
  animation: verticalSignal 4.8s ease-in-out infinite;
}

.hero-nameplate .eyebrow,
.section-title .eyebrow {
  color: #75d9cc;
  letter-spacing: 0.13em;
}

.hero-nameplate h1 {
  white-space: nowrap;
}

.hero-nameplate h1 span {
  color: transparent;
  background: linear-gradient(92deg, #fff8e9 0%, #ffd184 34%, #72dfd0 62%, #fff8e9 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.32);
  animation: refinedNameFlow 8s ease-in-out infinite;
}

.hero-nameplate .role {
  color: rgba(255, 232, 186, 0.86);
}

.hero-nameplate .intro {
  color: rgba(246, 240, 223, 0.76);
}

.btn {
  border-radius: 999px;
}

.btn.primary {
  background: linear-gradient(135deg, #ffd184, #d98552);
  box-shadow: 0 1.2rem 2.8rem rgba(217, 133, 82, 0.28);
}

.btn.ghost {
  border-color: rgba(117, 217, 204, 0.42);
  color: #dffcf8;
}

.poster-stage {
  min-height: min(76vh, 42rem);
  border-radius: 0;
}

.poster-stage::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 34%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 209, 132, 0.22), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3.8rem);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  transform: perspective(38rem) rotateX(66deg);
  transform-origin: bottom;
  opacity: 0.56;
  pointer-events: none;
}

.poster-stage::after {
  content: "";
  position: absolute;
  inset: 12% 7% 10%;
  border: 1px solid rgba(255, 232, 186, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 209, 132, 0.07), transparent 31%),
    linear-gradient(90deg, transparent, rgba(117, 217, 204, 0.1), transparent);
  transform: skewY(-4deg);
  pointer-events: none;
}

.art-home .poster-avatar {
  width: min(24.5rem, 57vw);
  max-height: min(78vh, 41rem);
  animation: refinedAvatarPresence 7s ease-in-out infinite;
}

.poster-character {
  z-index: 3;
}

.poster-shadow {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62), transparent 66%);
  filter: blur(0.2rem);
}

.poster-badge {
  right: 9%;
  bottom: 16%;
  border-radius: 999px;
  border-color: rgba(255, 209, 132, 0.36);
  background: rgba(16, 17, 18, 0.74);
}

.character-bubble {
  border-color: rgba(117, 217, 204, 0.28);
  background: rgba(14, 16, 17, 0.82);
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.34);
}

.hero-signals {
  border-top: 1px solid rgba(255, 232, 186, 0.12);
  border-bottom: 1px solid rgba(255, 232, 186, 0.12);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
}

.hero-signals span {
  color: rgba(246, 240, 223, 0.68);
}

.identity,
.portfolio,
.world,
.contact {
  position: relative;
}

.identity::before,
.portfolio::before,
.world::before,
.contact::before {
  content: "";
  position: absolute;
  left: max(1rem, 5vw);
  right: max(1rem, 5vw);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 132, 0.36), rgba(117, 217, 204, 0.24), transparent);
  opacity: 0.72;
}

.section-title h2 {
  color: #fff4df;
  text-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.32);
}

.fragment-field {
  gap: 1px;
  background: rgba(255, 232, 186, 0.12);
  border: 1px solid rgba(255, 232, 186, 0.13);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.26);
}

.fragment {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.025)),
    rgba(16, 17, 18, 0.84);
  overflow: hidden;
  transition: transform 0.38s ease, background 0.38s ease, color 0.38s ease;
}

.fragment::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 209, 132, 0.16), transparent);
  transform: translateX(-115%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.fragment:hover {
  transform: translateY(-0.55rem);
  background:
    linear-gradient(145deg, rgba(255, 209, 132, 0.12), rgba(117, 217, 204, 0.07)),
    rgba(16, 17, 18, 0.92);
}

.fragment:hover::before {
  transform: translateX(115%);
}

.fragment span {
  color: #ffd184;
}

.portfolio-showcase {
  align-items: stretch;
  border: 1px solid rgba(255, 232, 186, 0.14);
  background:
    linear-gradient(125deg, rgba(255, 209, 132, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(117, 217, 204, 0.09), transparent 38%),
    rgba(14, 15, 16, 0.75);
  box-shadow: 0 2rem 5.5rem rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.portfolio-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 5.2rem, rgba(255, 255, 255, 0.035) 5.2rem 5.25rem);
  opacity: 0.52;
  pointer-events: none;
}

.portfolio-main {
  position: relative;
  min-height: 24rem;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(12, 13, 14, 0.82);
}

.portfolio-main::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  height: 4.4rem;
  border: 1px solid rgba(255, 209, 132, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 209, 132, 0.12) 0 1px, transparent 1px 1.25rem),
    linear-gradient(90deg, rgba(117, 217, 204, 0.13), transparent);
  opacity: 0.74;
  animation: archiveMeter 5.8s ease-in-out infinite;
}

.portfolio-main span {
  color: #75d9cc;
}

.portfolio-main h3 {
  color: #fff4df;
}

.portfolio-main p {
  color: rgba(246, 240, 223, 0.74);
}

.portfolio-main a {
  color: #ffd184;
}

.portfolio-stack {
  gap: 1px;
  background: rgba(255, 232, 186, 0.1);
}

.portfolio-stack article {
  border: 0;
  border-radius: 0;
  background: rgba(16, 17, 18, 0.78);
  transform-origin: center;
  transition: transform 0.38s ease, background 0.38s ease;
}

.portfolio-stack article:hover {
  transform: translateX(-0.6rem);
  background: rgba(255, 209, 132, 0.095);
}

.world-constellation {
  min-height: 35rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.world-constellation::before,
.world-constellation::after {
  opacity: 0.46;
}

.world-lane {
  gap: clamp(1rem, 2vw, 1.4rem);
}

.world-node {
  border-radius: 0;
  border-color: rgba(255, 232, 186, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 16, 0.82);
  box-shadow: 0 1.2rem 3.8rem rgba(0, 0, 0, 0.22);
  transition: transform 0.42s ease, border-color 0.42s ease, background 0.42s ease;
}

.world-node:hover {
  transform: translateY(-0.5rem) scale(1.015);
  border-color: rgba(255, 209, 132, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 209, 132, 0.12), rgba(117, 217, 204, 0.06)),
    rgba(14, 15, 16, 0.9);
}

.world-node span {
  color: #ffd184;
}

.world-core {
  min-height: 31rem;
  border-radius: 0;
  border: 1px solid rgba(255, 232, 186, 0.14);
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.38);
  overflow: hidden;
  animation: worldCoreLift 6.5s ease-in-out infinite;
}

.world-core img {
  height: 100%;
  transform: scale(1.04);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.world-core:hover img {
  transform: scale(1.1);
  filter: saturate(1.14) contrast(1.08) brightness(1.04);
}

.world-core-copy {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.world-core-copy span {
  color: #75d9cc;
}

.world-core-copy h3 {
  color: #fff4df;
}

.world-core-copy b {
  color: #ffd184;
}

.world-core-orbit {
  border-color: rgba(255, 209, 132, 0.3);
}

.contact-grid {
  gap: 1px;
  border: 1px solid rgba(255, 232, 186, 0.13);
  background: rgba(255, 232, 186, 0.1);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.contact-card {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 16, 0.82);
  transition: transform 0.34s ease, background 0.34s ease;
}

.contact-card:hover {
  transform: translateY(-0.45rem);
  background: rgba(255, 209, 132, 0.085);
}

.contact-card span {
  color: #75d9cc;
}

.contact-card h3 {
  color: #fff4df;
}

.contact-card a,
.contact-card p {
  color: rgba(246, 240, 223, 0.82);
}

.ai-launcher {
  border: 1px solid rgba(255, 209, 132, 0.28);
  background: linear-gradient(135deg, rgba(255, 209, 132, 0.96), rgba(117, 217, 204, 0.9));
}

@keyframes galleryLightDrift {
  0%,
  100% {
    transform: translateX(-1.2%);
  }
  50% {
    transform: translateX(1.6%);
  }
}

@keyframes refinedTextureShift {
  to {
    background-position: 120px 0, 0 0;
  }
}

@keyframes verticalSignal {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.54;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

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

@keyframes refinedAvatarPresence {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-0.45rem) rotate(0.6deg);
  }
}

@keyframes archiveMeter {
  0%,
  100% {
    opacity: 0.48;
    transform: translateY(0);
  }
  50% {
    opacity: 0.86;
    transform: translateY(-0.35rem);
  }
}

@keyframes worldCoreLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.42rem);
  }
}

@media (max-width: 900px) {
  .art-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .poster-stage {
    min-height: 31rem;
  }

  .world-constellation {
    min-height: auto;
  }

  .world-core {
    min-height: 28rem;
  }
}

/* Visual upgrade v2: soften the gallery modules, keep the hero character stage unchanged. */
.art-home {
  background:
    linear-gradient(120deg, rgba(255, 204, 125, 0.1), transparent 30%),
    linear-gradient(240deg, rgba(92, 214, 192, 0.09), transparent 34%),
    radial-gradient(ellipse at 50% -15%, rgba(255, 241, 208, 0.08), transparent 46%),
    #101112;
}

.art-nav {
  border-radius: 999px;
  border-color: rgba(255, 234, 194, 0.2);
  background: rgba(18, 19, 20, 0.76);
}

.hero-signals {
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 186, 0.13);
  overflow: hidden;
}

.identity::before,
.portfolio::before,
.world::before,
.contact::before {
  left: 50%;
  width: min(38rem, 72vw);
  right: auto;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 209, 132, 0.42), transparent);
}

.fragment-field {
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  border: 0;
  border-radius: 2rem;
  background: transparent;
  box-shadow: none;
}

.fragment {
  border: 1px solid rgba(255, 232, 186, 0.16);
  border-radius: 1.45rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.026)),
    rgba(19, 20, 21, 0.7);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
}

.fragment::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1rem;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 209, 132, 0.68), rgba(117, 217, 204, 0.56), transparent);
  opacity: 0.42;
  transform: scaleX(0.62);
  transform-origin: left;
  transition: transform 0.42s ease, opacity 0.42s ease;
}

.fragment:hover {
  border-color: rgba(255, 209, 132, 0.36);
  transform: translateY(-0.55rem) scale(1.012);
}

.fragment:hover::after {
  opacity: 0.92;
  transform: scaleX(1);
}

.portfolio-showcase {
  border-radius: 2.2rem;
  border-color: rgba(255, 232, 186, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 209, 132, 0.09), rgba(117, 217, 204, 0.06)),
    rgba(17, 18, 19, 0.72);
  box-shadow: 0 1.6rem 4.8rem rgba(0, 0, 0, 0.28);
}

.portfolio-showcase::after {
  border-radius: inherit;
  opacity: 0.24;
}

.portfolio-main {
  border-radius: 1.65rem;
  margin: clamp(0.75rem, 1.6vw, 1.05rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03)),
    rgba(15, 16, 17, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 186, 0.11);
}

.portfolio-main::before {
  border-radius: 1rem;
}

.portfolio-stack {
  padding: clamp(0.75rem, 1.6vw, 1.05rem);
  gap: 0.85rem;
  background: transparent;
}

.portfolio-stack article {
  border: 1px solid rgba(255, 232, 186, 0.13);
  border-radius: 1.25rem;
  background: rgba(17, 18, 19, 0.66);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.16);
}

.portfolio-stack article:hover {
  transform: translateX(-0.45rem) translateY(-0.18rem);
  border-color: rgba(117, 217, 204, 0.36);
}

.world-constellation {
  border-radius: 2.4rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.018);
}

.world-node {
  border-radius: 1.55rem;
  border-color: rgba(255, 232, 186, 0.15);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(18, 19, 20, 0.74);
}

.world-node:hover {
  transform: translateY(-0.55rem) scale(1.02);
  box-shadow: 0 1.4rem 3.8rem rgba(0, 0, 0, 0.26), 0 0 2rem rgba(255, 209, 132, 0.11);
}

.world-core {
  border-radius: 2rem;
  border-color: rgba(255, 232, 186, 0.17);
  box-shadow: 0 2rem 5.5rem rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.world-core::after {
  border-radius: inherit;
}

.world-core-copy {
  border-radius: 0 0 2rem 2rem;
}

.contact-grid {
  gap: clamp(0.85rem, 1.8vw, 1.1rem);
  border: 0;
  border-radius: 2rem;
  background: transparent;
  box-shadow: none;
}

.contact-card {
  border: 1px solid rgba(255, 232, 186, 0.15);
  border-radius: 1.45rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022)),
    rgba(17, 18, 19, 0.72);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
  border-color: rgba(255, 209, 132, 0.32);
  transform: translateY(-0.45rem) scale(1.01);
}

.ai-panel {
  border-radius: 1.6rem;
}

.ai-quick button,
.ai-form input,
.ai-form button,
.ai-message {
  border-radius: 1rem;
}

@media (max-width: 720px) {
  .art-nav {
    border-radius: 1.25rem;
  }

  .hero-signals {
    border-radius: 1.25rem;
  }

  .fragment-field,
  .portfolio-showcase,
  .world-constellation,
  .contact-grid {
    border-radius: 1.35rem;
  }

  .fragment,
  .portfolio-main,
  .portfolio-stack article,
  .world-node,
  .world-core,
  .contact-card {
    border-radius: 1.15rem;
  }
}

/* Module motion v1: idle movement for non-hero, non-capability modules. */
.fragment,
.portfolio-main,
.portfolio-stack article,
.world-node,
.contact-card {
  will-change: translate, filter;
}

.fragment {
  animation: moduleFloatA 7.8s ease-in-out infinite;
}

.fragment:nth-child(2) {
  animation-delay: -1.7s;
}

.fragment:nth-child(3) {
  animation-delay: -3.2s;
}

.fragment:nth-child(4) {
  animation-delay: -4.8s;
}

.fragment:hover,
.portfolio-main:hover,
.portfolio-stack article:hover,
.world-node:hover,
.contact-card:hover {
  animation-play-state: paused;
}

.portfolio-main {
  animation: moduleFloatB 9.2s ease-in-out infinite;
}

.portfolio-stack article {
  animation: moduleSlideBreath 8.6s ease-in-out infinite;
}

.portfolio-stack article:nth-child(2) {
  animation-delay: -2.1s;
}

.portfolio-stack article:nth-child(3) {
  animation-delay: -4.4s;
}

.world-node {
  animation: moduleFloatC 8.4s ease-in-out infinite;
}

.world-node:nth-child(2) {
  animation-delay: -2.6s;
}

.lane-right .world-node:nth-child(1) {
  animation-delay: -1.2s;
}

.lane-right .world-node:nth-child(2) {
  animation-delay: -4.1s;
}

.contact-card {
  animation: moduleFloatB 8.8s ease-in-out infinite;
}

.contact-card:nth-child(2) {
  animation-delay: -2.7s;
}

.contact-card:nth-child(3) {
  animation-delay: -5.1s;
}

.fragment-field,
.portfolio-showcase,
.world-constellation,
.contact-grid {
  position: relative;
}

.fragment-field::after,
.portfolio-showcase::before,
.world-constellation::after,
.contact-grid::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 8%, rgba(255, 209, 132, 0.16), transparent 38%, rgba(117, 217, 204, 0.12), transparent 72%);
  opacity: 0;
  transform: translateX(-18%);
  animation: moduleLightPass 9s ease-in-out infinite;
}

.portfolio-showcase::before {
  animation-delay: -2.2s;
}

.world-constellation::after {
  animation-delay: -4.4s;
}

.contact-grid::before {
  animation-delay: -6.2s;
}

.world-node span,
.portfolio-stack article b,
.fragment span {
  animation: indexPulse 4.8s ease-in-out infinite;
}

.portfolio-stack article:nth-child(2) b,
.fragment:nth-child(2) span {
  animation-delay: -1.4s;
}

.portfolio-stack article:nth-child(3) b,
.fragment:nth-child(3) span {
  animation-delay: -2.8s;
}

.fragment:nth-child(4) span {
  animation-delay: -3.6s;
}

@keyframes moduleFloatA {
  0%,
  100% {
    translate: 0 0;
    filter: brightness(1);
  }
  45% {
    translate: 0 -0.42rem;
    filter: brightness(1.045);
  }
  70% {
    translate: 0.18rem -0.12rem;
  }
}

@keyframes moduleFloatB {
  0%,
  100% {
    translate: 0 0;
    filter: brightness(1);
  }
  50% {
    translate: 0 -0.36rem;
    filter: brightness(1.035);
  }
}

@keyframes moduleFloatC {
  0%,
  100% {
    translate: 0 0;
    filter: brightness(1);
  }
  40% {
    translate: -0.16rem -0.34rem;
    filter: brightness(1.04);
  }
  72% {
    translate: 0.14rem 0.04rem;
  }
}

@keyframes moduleSlideBreath {
  0%,
  100% {
    translate: 0 0;
  }
  48% {
    translate: -0.28rem -0.18rem;
  }
}

@keyframes moduleLightPass {
  0%,
  64%,
  100% {
    opacity: 0;
    transform: translateX(-22%);
  }
  76% {
    opacity: 0.68;
  }
  88% {
    opacity: 0;
    transform: translateX(22%);
  }
}

@keyframes indexPulse {
  0%,
  100% {
    opacity: 0.78;
    text-shadow: 0 0 0 rgba(255, 209, 132, 0);
  }
  48% {
    opacity: 1;
    text-shadow: 0 0 1.4rem rgba(255, 209, 132, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fragment,
  .portfolio-main,
  .portfolio-stack article,
  .world-node,
  .contact-card,
  .fragment-field::after,
  .portfolio-showcase::before,
  .world-constellation::after,
  .contact-grid::before,
  .world-node span,
  .portfolio-stack article b,
  .fragment span {
    animation: none;
  }
}

/* Portfolio entry preview */
.portfolio-preview-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(26rem, 100%);
  margin: 1.2rem 0 1.35rem;
}

.portfolio-preview-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 232, 186, 0.16);
  box-shadow: 0 0.9rem 2.2rem rgba(0, 0, 0, 0.22);
  transform: translateY(0) rotate(-1.5deg);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.portfolio-preview-strip img:nth-child(2) {
  transform: translateY(-0.55rem) rotate(1.2deg);
}

.portfolio-preview-strip img:nth-child(3) {
  transform: translateY(0.18rem) rotate(-0.6deg);
}

.portfolio-main:hover .portfolio-preview-strip img {
  filter: saturate(1.08) contrast(1.05);
}

.portfolio-main:hover .portfolio-preview-strip img:nth-child(1) {
  transform: translateY(-0.25rem) rotate(-2.4deg);
}

.portfolio-main:hover .portfolio-preview-strip img:nth-child(2) {
  transform: translateY(-0.85rem) rotate(1.8deg);
}

.portfolio-main:hover .portfolio-preview-strip img:nth-child(3) {
  transform: translateY(-0.1rem) rotate(0.6deg);
}

.portfolio-stack article a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.85rem;
  color: #ffd184;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.portfolio-stack article a::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  margin-left: 0.55rem;
  background: currentColor;
  transform: scaleX(0.62);
  transform-origin: left;
  transition: transform 0.26s ease;
}

.portfolio-stack article:hover a::after {
  transform: scaleX(1);
}

/* Performance pass after portfolio integration */
.fragment,
.portfolio-main,
.portfolio-stack article,
.world-node,
.contact-card {
  will-change: transform;
}

.fragment-field::after,
.portfolio-showcase::before,
.world-constellation::after,
.contact-grid::before {
  animation: none;
  opacity: 0;
}

.world-node span,
.portfolio-stack article b,
.fragment span {
  animation-duration: 7.2s;
}

.fragment {
  animation-duration: 11s;
}

.portfolio-main,
.contact-card {
  animation-duration: 12s;
}

.portfolio-stack article,
.world-node {
  animation-duration: 11.5s;
}

@keyframes moduleFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -0.28rem, 0);
  }
}

@keyframes moduleFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -0.22rem, 0);
  }
}

@keyframes moduleFloatC {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-0.12rem, -0.22rem, 0);
  }
}

@keyframes moduleSlideBreath {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-0.16rem, -0.1rem, 0);
  }
}

/* Hobbies page v3: anime gallery and six-dish cooking menu. */
.anime-gallery-v3 .anime-gallery-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(24rem, 1.08fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: stretch;
}

.anime-display-card,
.anime-collection-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 186, 0.15);
  border-radius: 1.65rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(15, 16, 18, 0.78);
  box-shadow: 0 1.2rem 3.8rem rgba(0, 0, 0, 0.24);
}

.anime-display-card {
  display: grid;
  grid-template-rows: minmax(18rem, 1fr) auto;
  min-height: 43rem;
}

.anime-display-media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr);
  gap: 0.7rem;
  padding: 0.85rem;
}

.anime-display-media img,
.anime-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 10, 0.7);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.anime-display-media img:first-child {
  min-height: 31rem;
}

.anime-display-media img:nth-child(2) {
  min-height: 31rem;
  transform: translateY(2.2rem);
}

.anime-display-card:hover .anime-display-media img:first-child {
  transform: translateY(-0.35rem) scale(1.018);
}

.anime-display-card:hover .anime-display-media img:nth-child(2) {
  transform: translateY(1.65rem) scale(1.018);
}

.anime-display-copy {
  padding: 0 1.25rem 1.25rem;
}

.anime-display-copy span,
.anime-collection-card span,
.anime-mini-tags b {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.anime-display-copy h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
}

.anime-display-copy p,
.anime-collection-card p {
  margin: 0;
  color: rgba(247, 242, 238, 0.75);
  line-height: 1.7;
}

.anime-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.anime-mini-tags b {
  display: inline-flex;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(255, 232, 186, 0.14);
  border-radius: 999px;
  color: rgba(255, 236, 204, 0.86);
  background: rgba(255, 255, 255, 0.045);
}

.anime-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1rem);
}

.anime-collection-card {
  display: grid;
  grid-template-rows: 15rem auto auto auto;
  padding: 0.85rem;
  transition: transform 0.36s ease, border-color 0.36s ease, box-shadow 0.36s ease;
}

.anime-collection-card:nth-child(2) {
  transform: translateY(1.2rem);
}

.anime-collection-card:nth-child(3) {
  transform: translateY(-0.5rem);
}

.anime-collection-card:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(255, 197, 130, 0.44);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
}

.anime-collection-card:nth-child(2):hover,
.anime-collection-card:nth-child(3):hover {
  transform: translateY(-0.35rem);
}

.anime-cover {
  display: grid;
  gap: 0.45rem;
  min-height: 0;
  margin-bottom: 0.9rem;
}

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

.anime-cover.two img:first-child {
  transform: translateY(0.45rem);
}

.anime-cover.two img:nth-child(2) {
  transform: translateY(-0.25rem);
}

.anime-collection-card:hover .anime-cover img {
  filter: saturate(1.08) contrast(1.04);
}

.anime-collection-card h3 {
  margin: 0.38rem 0 0.32rem;
  font-size: 1.28rem;
}

.anime-flow {
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.cooking-menu-v2 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.cooking-menu-v2 .dish-card {
  grid-column: span 4;
  min-height: 18rem;
  border-radius: 1.45rem;
  background: rgba(20, 15, 12, 0.72);
}

.cooking-menu-v2 .dish-card.tall {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 37rem;
}

.cooking-menu-v2 .dish-card.soup {
  grid-column: span 4;
}

.cooking-menu-v2 .dish-card.wide {
  grid-column: span 7;
}

.cooking-menu-v2 .dish-card::before {
  content: attr(data-dish);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.46rem 0.72rem;
  border: 1px solid rgba(255, 232, 186, 0.24);
  border-radius: 999px;
  color: rgba(255, 239, 213, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.28);
}

.cooking-menu-v2 .dish-card img {
  object-fit: cover;
}

.cooking-menu-v2 .dish-card div {
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.3));
}

.cooking-menu-v2 .dish-card h4 {
  color: #fff3dd;
}

.cooking-menu-v2 .dish-card p {
  max-width: 24rem;
}

@media (max-width: 980px) {
  .anime-gallery-v3 .anime-gallery-shell,
  .anime-collection-grid {
    grid-template-columns: 1fr;
  }

  .anime-display-card {
    min-height: auto;
  }

  .anime-display-media img:first-child,
  .anime-display-media img:nth-child(2) {
    min-height: 22rem;
  }

  .anime-collection-card,
  .anime-collection-card:nth-child(2),
  .anime-collection-card:nth-child(3) {
    transform: none;
  }

  .cooking-menu-v2 .dish-card,
  .cooking-menu-v2 .dish-card.tall,
  .cooking-menu-v2 .dish-card.soup,
  .cooking-menu-v2 .dish-card.wide {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 20rem;
  }
}

@media (max-width: 620px) {
  .anime-display-media {
    grid-template-columns: 1fr;
  }

  .anime-display-media img:nth-child(2),
  .anime-display-card:hover .anime-display-media img:nth-child(2) {
    transform: none;
  }

  .anime-cover.two {
    grid-template-columns: 1fr;
  }
}

/* Hobbies layout v2: cleaner rounded bento system. */
.interests-page .interest-hero {
  grid-template-columns: minmax(18rem, 0.82fr) minmax(22rem, 1.18fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
}

.interest-overview-v2 {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: repeat(2, minmax(12rem, 1fr));
  gap: 1rem;
  min-height: 30rem;
}

.interest-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 186, 0.16);
  border-radius: 1.7rem;
  color: #fff3df;
  text-decoration: none;
  background: rgba(18, 19, 20, 0.72);
  box-shadow: 0 1rem 3.2rem rgba(0, 0, 0, 0.24);
  transition: transform 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease;
}

.interest-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.76));
}

.interest-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.interest-tile span,
.interest-tile strong {
  position: relative;
  z-index: 2;
}

.interest-tile span {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 232, 186, 0.2);
  border-radius: 999px;
  color: #ffd184;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: rgba(0, 0, 0, 0.24);
}

.interest-tile strong {
  padding: 1.1rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.interest-tile:hover {
  transform: translateY(-0.45rem);
  border-color: rgba(255, 209, 132, 0.46);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.32);
}

.interest-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.06);
}

.anime-tile {
  grid-row: 1 / -1;
}

.anime-gallery-v3 .anime-gallery-shell {
  grid-template-columns: minmax(17rem, 0.62fr) minmax(24rem, 1.38fr);
  gap: clamp(1rem, 2vw, 1.25rem);
}

.anime-intro-panel {
  position: sticky;
  top: 6rem;
  min-height: 26rem;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  border: 1px solid rgba(255, 232, 186, 0.16);
  border-radius: 1.8rem;
  background:
    linear-gradient(145deg, rgba(255, 209, 132, 0.08), rgba(117, 217, 204, 0.045)),
    rgba(15, 16, 18, 0.78);
  box-shadow: 0 1.2rem 3.8rem rgba(0, 0, 0, 0.24);
}

.anime-intro-panel span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.anime-intro-panel h3 {
  margin: 0.8rem 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.18;
}

.anime-intro-panel p {
  margin: 0;
  color: rgba(247, 242, 238, 0.74);
  line-height: 1.8;
}

.anime-collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.anime-collection-card {
  grid-template-rows: minmax(13rem, 16rem) auto auto 1fr;
  border-radius: 1.55rem;
}

.anime-collection-card:nth-child(2),
.anime-collection-card:nth-child(3) {
  transform: none;
}

.anime-collection-card:nth-child(1) {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 1rem;
}

.anime-collection-card:nth-child(1) .anime-cover {
  grid-row: 1 / 4;
  margin: 0;
}

.anime-collection-card:nth-child(1) h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.anime-cover img {
  object-position: center top;
}

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

.anime-collection-card:hover,
.anime-collection-card:nth-child(2):hover,
.anime-collection-card:nth-child(3):hover {
  transform: translateY(-0.35rem);
}

.cuisine-console .menu-board {
  border-radius: 2rem;
}

.cooking-menu-v2 {
  align-items: stretch;
}

.cooking-menu-v2 .dish-card {
  min-height: 16.5rem;
  border-radius: 1.55rem;
}

.cooking-menu-v2 .dish-card.tall {
  min-height: 34rem;
}

.cooking-menu-v2 .dish-card.soup {
  grid-column: span 5;
}

.cooking-menu-v2 .dish-card.wide {
  grid-column: span 7;
}

.pet-memory .pet-wall {
  border-radius: 2rem;
  border-color: rgba(255, 232, 186, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 209, 132, 0.08), rgba(117, 217, 204, 0.04)),
    rgba(15, 16, 18, 0.76);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.25);
}

.pet-photo-stack img {
  border-radius: 1.55rem;
}

.pet-tags span {
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 980px) {
  .interests-page .interest-hero,
  .anime-gallery-v3 .anime-gallery-shell {
    grid-template-columns: 1fr;
  }

  .anime-intro-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .interest-overview-v2,
  .anime-collection-grid,
  .anime-collection-card:nth-child(1) {
    grid-template-columns: 1fr;
  }

  .anime-tile,
  .anime-collection-card:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
  }

  .anime-collection-card:nth-child(1) .anime-cover {
    grid-row: auto;
  }
}

/* Hobbies rail v1: horizontal poster wall and cooking menu rail. */
.anime-poster-wall {
  position: relative;
  overflow: hidden;
}

.anime-wall-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.anime-wall-head span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.anime-wall-head h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.18;
}

.anime-wall-head p {
  max-width: 24rem;
  margin: 0;
  color: rgba(247, 242, 238, 0.7);
  line-height: 1.7;
}

.anime-poster-track,
.cooking-rail {
  display: grid;
  grid-auto-flow: column;
  gap: clamp(0.9rem, 1.8vw, 1.2rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1rem, 5vw);
  padding: 0.45rem 0 1.15rem;
  -webkit-overflow-scrolling: touch;
}

.anime-poster-track::-webkit-scrollbar,
.cooking-rail::-webkit-scrollbar {
  height: 0.55rem;
}

.anime-poster-track::-webkit-scrollbar-track,
.cooking-rail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.anime-poster-track::-webkit-scrollbar-thumb,
.cooking-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 209, 132, 0.74), rgba(117, 217, 204, 0.48));
  border-radius: 999px;
}

.anime-poster-slide {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: clamp(17rem, 28vw, 24rem);
  min-height: 33rem;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 232, 186, 0.16);
  border-radius: 1.65rem;
  color: #fff4df;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.024)),
    rgba(15, 16, 18, 0.82);
  box-shadow: 0 1.2rem 3.8rem rgba(0, 0, 0, 0.25);
  transition: transform 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease;
}

.anime-poster-slide.is-wide {
  width: clamp(24rem, 42vw, 35rem);
}

.anime-poster-slide:hover {
  transform: translateY(-0.55rem);
  border-color: rgba(255, 209, 132, 0.45);
  box-shadow: 0 1.6rem 4.5rem rgba(0, 0, 0, 0.34);
}

.anime-poster-media {
  position: relative;
  display: grid;
  min-height: 24rem;
  padding: 0.85rem;
}

.anime-poster-media.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.anime-poster-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.18rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 10, 0.72);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.anime-poster-media.two img:first-child {
  transform: translateY(0.55rem);
}

.anime-poster-media.two img:nth-child(2) {
  transform: translateY(-0.35rem);
}

.anime-poster-slide:hover .anime-poster-media img {
  filter: saturate(1.12) contrast(1.06);
}

.anime-poster-slide:hover .anime-poster-media.two img:first-child {
  transform: translateY(0.15rem) scale(1.02);
}

.anime-poster-slide:hover .anime-poster-media.two img:nth-child(2) {
  transform: translateY(-0.65rem) scale(1.02);
}

.anime-poster-copy {
  position: relative;
  z-index: 2;
  padding: 0 1.15rem 1.15rem;
}

.anime-poster-copy span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.anime-poster-copy h3 {
  margin: 0.48rem 0 0.38rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.anime-poster-copy p {
  margin: 0;
  color: rgba(247, 242, 238, 0.74);
  line-height: 1.62;
}

.cooking-rail-board {
  border-radius: 2rem;
  overflow: hidden;
}

.cooking-rail {
  margin-top: 1.2rem;
}

.dish-slide {
  position: relative;
  width: clamp(17rem, 28vw, 23rem);
  min-height: 30rem;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 232, 186, 0.16);
  border-radius: 1.65rem;
  background: rgba(18, 13, 10, 0.82);
  box-shadow: 0 1.1rem 3.5rem rgba(0, 0, 0, 0.25);
  transition: transform 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease;
}

.dish-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.78));
}

.dish-slide::before {
  content: attr(data-dish);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.46rem 0.72rem;
  border: 1px solid rgba(255, 232, 186, 0.24);
  border-radius: 999px;
  color: rgba(255, 239, 213, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.28);
}

.dish-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.dish-slide div {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
}

.dish-slide span {
  color: #ffd184;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.dish-slide h4 {
  margin: 0.45rem 0 0.3rem;
  color: #fff3dd;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.dish-slide p {
  margin: 0;
  color: rgba(247, 242, 238, 0.78);
  line-height: 1.62;
}

.dish-slide:hover {
  transform: translateY(-0.55rem);
  border-color: rgba(255, 209, 132, 0.46);
  box-shadow: 0 1.5rem 4.2rem rgba(0, 0, 0, 0.34);
}

.dish-slide:hover img {
  transform: scale(1.07);
  filter: saturate(1.1) contrast(1.05);
}

@media (max-width: 760px) {
  .anime-wall-head {
    display: block;
  }

  .anime-wall-head p {
    margin-top: 0.75rem;
  }

  .anime-poster-slide,
  .anime-poster-slide.is-wide,
  .dish-slide {
    width: min(82vw, 24rem);
  }

  .anime-poster-media.two {
    grid-template-columns: 1fr;
  }
}

/* Entry experience */
.entry-locked {
  overflow: hidden;
}

.entry-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f7ead2;
  background:
    radial-gradient(circle at 52% 42%, rgba(117, 217, 204, 0.18), transparent 32rem),
    radial-gradient(circle at 46% 58%, rgba(255, 177, 93, 0.2), transparent 28rem),
    linear-gradient(135deg, #0c0d0b 0%, #111514 46%, #15110e 100%);
  transition: opacity 0.86s ease, visibility 0.86s ease, transform 0.86s ease;
}

.entry-veil::before {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(255, 218, 156, 0.13) 48%, transparent 50%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
  opacity: 0.62;
  transform: translate3d(-1.5%, 0, 0);
  animation: entryGridDrift 14s linear infinite;
}

.entry-veil::after {
  content: "";
  position: absolute;
  width: min(54vw, 42rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 209, 132, 0.16);
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 216, 151, 0.16), transparent 35%),
    radial-gradient(circle at 70% 72%, rgba(98, 211, 201, 0.18), transparent 42%);
  filter: blur(0.2px);
  animation: entryHaloMorph 8s ease-in-out infinite;
}

.entry-noise {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 192, 111, 0.56) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 64%, rgba(117, 217, 204, 0.44) 0 1px, transparent 1.5px);
  background-size: 18rem 18rem, 24rem 24rem;
  animation: entryDustFloat 10s ease-in-out infinite alternate;
}

.entry-gate {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.82rem;
  min-width: min(82vw, 36rem);
  padding: clamp(2.2rem, 6vw, 4.6rem) clamp(1.6rem, 5vw, 4rem);
  border: 1px solid rgba(255, 232, 186, 0.18);
  border-radius: 2.2rem;
  color: inherit;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 10, 0.5);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  transform: translateY(0);
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.entry-gate::before,
.entry-gate::after {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border-radius: 1.55rem;
  pointer-events: none;
}

.entry-gate::before {
  border: 1px solid rgba(117, 217, 204, 0.16);
}

.entry-gate::after {
  opacity: 0;
  background: radial-gradient(circle at 50% 44%, rgba(255, 209, 132, 0.24), transparent 34%);
  transform: scale(0.72);
}

.entry-gate:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(255, 209, 132, 0.38);
  box-shadow: 0 2.4rem 8rem rgba(0, 0, 0, 0.5), 0 0 3rem rgba(117, 217, 204, 0.1);
}

.entry-kicker,
.entry-hint {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.entry-kicker {
  color: #75d9cc;
}

.entry-gate strong {
  position: relative;
  font-family: "Ma Shan Zheng", "Noto Sans SC", sans-serif;
  font-size: clamp(5.6rem, 18vw, 13rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(100deg, #ffe4aa 0%, #ffbd73 36%, #7fddd2 68%, #d9f6d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0.85rem 1.8rem rgba(0, 0, 0, 0.28));
}

.entry-gate em {
  color: rgba(247, 234, 210, 0.76);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-style: normal;
}

.entry-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 7vh, 4.8rem);
  z-index: 2;
  margin: 0;
  color: rgba(247, 234, 210, 0.5);
  transform: translateX(-50%);
  white-space: nowrap;
}

.entry-drop {
  position: absolute;
  top: -7rem;
  left: 50%;
  z-index: 4;
  width: 2.15rem;
  height: 3rem;
  opacity: 0;
  transform: translateX(-50%) translateY(0) rotate(42deg) scale(0.9);
  transform-origin: 50% 70%;
  filter: drop-shadow(0 0 1.2rem rgba(117, 217, 204, 0.45));
}

.entry-drop span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 80% 0 72% 50% / 78% 0 88% 50%;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, #ffe2a2 0%, #ffb165 42%, #77dacd 100%);
  box-shadow: inset -0.35rem -0.45rem 0.8rem rgba(0, 0, 0, 0.18);
}

.entry-veil.is-entering .entry-drop {
  opacity: 1;
  animation: gjhDropFall 1.08s cubic-bezier(0.62, 0.02, 0.28, 1.02) forwards;
}

.entry-veil.is-entering .entry-gate {
  animation: entryGateSettle 1.48s ease forwards;
}

.entry-veil.is-entering .entry-gate::after {
  animation: entrySplash 1.05s ease 0.92s forwards;
}

.entry-veil.is-entering .entry-gate strong {
  animation: entryNameBloom 1.35s ease 0.72s forwards;
}

.entry-veil.is-open {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}

body.entry-ready .hero-nameplate h1 span {
  animation: heroNameWake 1.3s ease both;
}

@keyframes gjhDropFall {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) rotate(42deg) scale(0.72);
  }
  18% {
    opacity: 1;
  }
  78% {
    transform: translateX(-50%) translateY(44vh) rotate(42deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(46vh) rotate(42deg) scale(0.22);
  }
}

@keyframes entrySplash {
  0% {
    opacity: 0.9;
    transform: scale(0.34);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes entryNameBloom {
  0%, 52% {
    filter: drop-shadow(0 0.85rem 1.8rem rgba(0, 0, 0, 0.28));
    transform: translateY(0);
  }
  72% {
    filter: drop-shadow(0 0 2rem rgba(117, 217, 204, 0.44)) drop-shadow(0 0 2.8rem rgba(255, 189, 115, 0.22));
    transform: translateY(0.18rem) scale(1.018);
  }
  100% {
    filter: drop-shadow(0 0.85rem 1.8rem rgba(0, 0, 0, 0.28));
    transform: translateY(0);
  }
}

@keyframes entryGateSettle {
  0%, 68% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(0.32rem) scale(0.995);
  }
  100% {
    transform: translateY(-0.15rem);
  }
}

@keyframes heroNameWake {
  0% {
    filter: saturate(0.92) brightness(0.88);
    text-shadow: none;
  }
  48% {
    filter: saturate(1.2) brightness(1.18);
    text-shadow: 0 0 2.1rem rgba(117, 217, 204, 0.36), 0 0 3.4rem rgba(255, 177, 93, 0.18);
  }
  100% {
    filter: none;
  }
}

@keyframes entryGridDrift {
  to {
    transform: translate3d(1.5%, 0, 0);
  }
}

@keyframes entryHaloMorph {
  0%, 100% {
    transform: rotate(-4deg) scale(1);
    border-radius: 48% 52% 46% 54%;
  }
  50% {
    transform: rotate(5deg) scale(1.05);
    border-radius: 56% 44% 54% 46%;
  }
}

@keyframes entryDustFloat {
  to {
    background-position: 2rem -1.5rem, -2.5rem 1.5rem;
  }
}

@media (max-width: 760px) {
  .entry-gate {
    min-width: min(88vw, 28rem);
    border-radius: 1.55rem;
  }

  .entry-gate::before,
  .entry-gate::after {
    inset: 0.75rem;
    border-radius: 1.1rem;
  }

  .entry-hint {
    width: 88vw;
    text-align: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-veil::before,
  .entry-veil::after,
  .entry-noise,
  .entry-veil.is-entering .entry-drop,
  .entry-veil.is-entering .entry-gate,
  .entry-veil.is-entering .entry-gate::after,
  .entry-veil.is-entering .entry-gate strong,
  body.entry-ready .hero-nameplate h1 span {
    animation: none !important;
  }
}

/* Local preview: ink entrance + quieter gallery motion */
.entry-veil {
  place-items: center;
  background: #020202;
}

.entry-veil::before,
.entry-veil::after,
.entry-noise,
.entry-drop {
  display: none !important;
}

.entry-ink-field {
  position: absolute;
  inset: 0;
  background: #020202;
}

.entry-gate {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-tap-highlight-color: transparent;
}

.entry-gate:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.entry-gate::before,
.entry-gate::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  pointer-events: none;
  opacity: 0;
}

.entry-gate::before {
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 232, 205, 0.9), rgba(117, 217, 204, 0.26) 34%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.35);
  filter: blur(0.2rem);
}

.entry-gate::after {
  width: min(72vw, 44rem);
  height: min(28vw, 15rem);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(246, 232, 205, 0.26) 0 12%, rgba(117, 217, 204, 0.14) 24%, transparent 62%),
    radial-gradient(ellipse at 36% 46%, rgba(255, 177, 93, 0.18), transparent 38%);
  transform: translate(-50%, -50%) scale(0.08);
  filter: blur(0.65rem);
}

.entry-gate strong {
  display: block;
  font-size: clamp(6rem, 19vw, 14rem);
  color: #f1eadc;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 0.18rem rgba(246, 232, 205, 0.12);
  filter: none;
  transition: color 0.36s ease, letter-spacing 0.36s ease, filter 0.36s ease;
}

.entry-gate:hover strong {
  color: #fff4df;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 0 1.2rem rgba(255, 209, 132, 0.12));
}

.entry-hint {
  bottom: clamp(2rem, 8vh, 5rem);
  color: rgba(241, 234, 220, 0.34);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
}

.entry-ink-dot {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  border-radius: 64% 36% 58% 42% / 44% 58% 42% 56%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 246, 225, 0.88), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(117, 217, 204, 0.42), rgba(255, 177, 93, 0.23) 42%, rgba(241, 234, 220, 0.08) 72%, transparent 100%);
  mix-blend-mode: screen;
  filter: blur(0.35rem);
  transform: translate(-50%, -50%) scale(0.2) rotate(0);
  animation: entryInkScatter 1.34s cubic-bezier(0.18, 0.72, 0.18, 1) var(--delay, 0s) forwards;
}

.entry-veil.is-entering .entry-gate strong {
  animation: entryInkNameDissolve 1.36s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.entry-veil.is-entering .entry-gate::before {
  animation: entryInkCore 0.82s ease 0.12s forwards;
}

.entry-veil.is-entering .entry-gate::after {
  animation: entryInkWash 1.26s ease 0.18s forwards;
}

.entry-veil.is-entering .entry-hint {
  opacity: 0;
  transition: opacity 0.32s ease;
}

@keyframes entryInkNameDissolve {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  38% {
    opacity: 1;
    letter-spacing: 0.045em;
    filter: blur(0.05rem) drop-shadow(0 0 1.4rem rgba(117, 217, 204, 0.16));
  }
  100% {
    opacity: 0;
    letter-spacing: 0.18em;
    transform: translateY(-0.35rem) scale(1.08);
    filter: blur(1.15rem) drop-shadow(0 0 2.8rem rgba(255, 209, 132, 0.14));
  }
}

@keyframes entryInkCore {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes entryInkWash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
  }
  36% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@keyframes entryInkScatter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12) rotate(0);
  }
  22% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.28) rotate(var(--r));
  }
}

@media (max-width: 760px) {
  .entry-gate strong {
    font-size: clamp(5rem, 28vw, 8rem);
  }

  .entry-hint {
    letter-spacing: 0.18em;
  }
}

/* Requested interaction layer */
@media (pointer: fine) {
  body,
  body * {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: #ffd184;
  box-shadow: 0 0 1rem rgba(255, 209, 132, 0.68);
}

.cursor-ring {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(117, 217, 204, 0.55);
  border-radius: 999px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

body.cursor-active .cursor-ring {
  transform: translate(-50%, -50%) scale(1.38);
  border-color: rgba(255, 209, 132, 0.72);
  background: rgba(255, 209, 132, 0.08);
}

.ambient-motion {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-motion span {
  position: absolute;
  width: clamp(14rem, 24vw, 27rem);
  aspect-ratio: 1;
  border-radius: 42% 58% 56% 44%;
  opacity: 0.22;
  filter: blur(2.2rem);
  background: radial-gradient(circle at 36% 34%, rgba(255, 209, 132, 0.34), rgba(117, 217, 204, 0.18) 48%, transparent 72%);
  animation: ambientInkFloat 16s ease-in-out infinite alternate;
}

.ambient-motion span:nth-child(1) {
  left: 7vw;
  top: 18vh;
}

.ambient-motion span:nth-child(2) {
  right: 8vw;
  top: 36vh;
  animation-delay: -5s;
  animation-duration: 19s;
}

.ambient-motion span:nth-child(3) {
  left: 38vw;
  bottom: 4vh;
  animation-delay: -9s;
  animation-duration: 21s;
}

.real-photo-card {
  position: absolute;
  right: min(-7vw, -4.5rem);
  top: 9%;
  z-index: 8;
  width: clamp(8.8rem, 15vw, 12.5rem);
  padding: 0.55rem;
  border: 1px solid rgba(255, 232, 186, 0.22);
  border-radius: 1.15rem;
  opacity: 0;
  pointer-events: none;
  background: rgba(11, 12, 13, 0.76);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.38), 0 0 2rem rgba(117, 217, 204, 0.1);
  backdrop-filter: blur(16px);
  transform: translate(1.2rem, 0.8rem) rotate(4deg) scale(0.9);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.2, 0.82, 0.2, 1);
}

.real-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 0.82rem;
}

.real-photo-card span {
  display: block;
  padding: 0.55rem 0.15rem 0.12rem;
  color: rgba(247, 234, 210, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.poster-character:hover .real-photo-card,
.poster-character:focus-visible .real-photo-card {
  opacity: 1;
  transform: translate(0, 0) rotate(-2deg) scale(1);
}

.contact-card button {
  margin-top: 1rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(255, 232, 186, 0.16);
  border-radius: 999px;
  color: rgba(247, 234, 210, 0.88);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-card button:hover {
  transform: translateY(-0.12rem);
  border-color: rgba(255, 209, 132, 0.38);
  background: rgba(255, 209, 132, 0.12);
}

.contact-card.copied {
  border-color: rgba(117, 217, 204, 0.46);
  box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, 0.24), 0 0 2.2rem rgba(117, 217, 204, 0.14);
}

.wechat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wechat-qr {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: max-height 0.42s ease, margin 0.42s ease, opacity 0.32s ease, transform 0.42s ease;
}

.wechat-qr img {
  width: min(100%, 13rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 232, 186, 0.18);
  background: #fff;
}

.wechat-qr small {
  color: rgba(247, 234, 210, 0.66);
  font-weight: 800;
}

.contact-wechat.qr-open .wechat-qr {
  max-height: 18rem;
  margin-top: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.wechat-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 16000;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 3, 3, 0.72);
  backdrop-filter: blur(16px);
}

.wechat-qr-modal.is-open {
  display: grid;
}

.wechat-qr-modal__card {
  position: relative;
  width: min(92vw, 22rem);
  padding: 1rem 1rem 1.15rem;
  border: 1px solid rgba(255, 232, 186, 0.2);
  border-radius: 1.45rem;
  color: #fff3df;
  text-align: center;
  background:
    radial-gradient(circle at 30% 0, rgba(255, 209, 132, 0.16), transparent 12rem),
    rgba(10, 11, 12, 0.92);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.48);
}

.wechat-qr-modal__card span {
  display: block;
  margin-bottom: 0.75rem;
  color: #75d9cc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.wechat-qr-modal__card img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  background: #fff;
}

.wechat-qr-modal__card strong {
  display: block;
  margin-top: 0.8rem;
  color: rgba(255, 243, 223, 0.82);
  font-size: 0.9rem;
}

.wechat-qr-modal__close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 232, 186, 0.18);
  border-radius: 999px;
  color: #fff3df;
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
}

body.qr-modal-open {
  overflow: hidden;
}

.anime-poster-track,
.cooking-rail {
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
}

.anime-poster-track::after,
.cooking-rail::after {
  content: "滚轮可横向浏览";
  position: sticky;
  right: 0.4rem;
  align-self: start;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  color: rgba(247, 234, 210, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hometown-photo-archive {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(13rem, 24vw, 19rem);
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-top: clamp(1rem, 2vw, 1.4rem);
  padding: 0.2rem 0 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}

.hometown-photo-archive::-webkit-scrollbar {
  height: 0.5rem;
}

.hometown-photo-archive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.hometown-photo-archive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 209, 132, 0.74), rgba(117, 217, 204, 0.48));
  border-radius: 999px;
}

.hometown-photo-archive button {
  position: relative;
  min-height: 18rem;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 232, 186, 0.16);
  border-radius: 1.35rem;
  color: #fff3df;
  background: rgba(12, 13, 13, 0.72);
  box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.22);
}

.hometown-photo-archive button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.76));
}

.hometown-photo-archive img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.58s ease, filter 0.58s ease;
}

.hometown-photo-archive span {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  color: rgba(255, 243, 223, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
}

.hometown-photo-archive button:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.hometown-photo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.8rem, 4vw, 3rem);
  padding: clamp(1rem, 2.4vw, 1.45rem);
  border: 1px solid rgba(255, 232, 186, 0.14);
  border-radius: 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 209, 132, 0.1), rgba(117, 217, 204, 0.055)),
    rgba(12, 13, 13, 0.58);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
}

.hometown-photo-head span {
  display: block;
  margin-bottom: 0.45rem;
  color: #ffd184;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hometown-photo-head h3 {
  margin: 0;
  color: #fff3df;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.18;
}

.hometown-photo-head p {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 243, 223, 0.62);
  line-height: 1.8;
}

.hometown-photo-archive {
  grid-auto-flow: initial;
  grid-auto-columns: initial;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(8.2rem, 12vw, 12rem);
  overflow: visible;
  scroll-snap-type: none;
  overscroll-behavior-inline: auto;
  padding: 0;
  margin-top: clamp(0.9rem, 2vw, 1.3rem);
}

.hometown-photo-archive::-webkit-scrollbar {
  display: none;
}

.hometown-photo-archive button {
  min-height: 0;
  height: 100%;
  grid-column: span 3;
  scroll-snap-align: none;
  transform: translateZ(0);
  transition: transform 0.36s ease, border-color 0.36s ease, box-shadow 0.36s ease;
}

.hometown-photo-archive button:nth-child(1) {
  grid-column: span 5;
  grid-row: span 2;
}

.hometown-photo-archive button:nth-child(2) {
  grid-column: span 3;
  grid-row: span 2;
}

.hometown-photo-archive button:nth-child(3),
.hometown-photo-archive button:nth-child(4) {
  grid-column: span 4;
}

.hometown-photo-archive button:nth-child(5) {
  grid-column: span 4;
  grid-row: span 2;
}

.hometown-photo-archive button:nth-child(6),
.hometown-photo-archive button:nth-child(7),
.hometown-photo-archive button:nth-child(8) {
  grid-column: span 4;
}

.hometown-photo-archive button:nth-child(9) {
  grid-column: span 8;
  grid-row: span 2;
}

.hometown-photo-archive button:hover {
  border-color: rgba(255, 209, 132, 0.42);
  box-shadow: 0 1.25rem 3.6rem rgba(0, 0, 0, 0.34), 0 0 2rem rgba(117, 217, 204, 0.08);
  transform: translateY(-0.28rem);
}

.anime-poster-media img,
.dish-slide img,
.pet-photo-stack img,
.interest-tile img,
.hometown-hero-v2 > img,
.map-node > img,
.gallery-main,
.hometown-photo-archive img {
  cursor: pointer;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.4rem);
  background:
    radial-gradient(circle at 50% 50%, rgba(117, 217, 204, 0.12), transparent 34rem),
    rgba(2, 3, 3, 0.88);
  backdrop-filter: blur(18px);
}

.image-lightbox.is-open {
  display: grid;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox figure {
  width: min(88vw, 68rem);
  max-height: 86vh;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.image-lightbox img {
  width: 100%;
  max-height: min(78vh, 50rem);
  object-fit: contain;
  border: 1px solid rgba(255, 232, 186, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.46);
}

.image-lightbox figcaption {
  color: rgba(247, 242, 238, 0.76);
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.image-lightbox__close,
.image-lightbox__nav {
  position: fixed;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 232, 186, 0.2);
  border-radius: 999px;
  color: #fff3df;
  background: rgba(20, 21, 22, 0.72);
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.28);
}

.image-lightbox__close {
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(1rem, 3vw, 2rem);
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1.35rem;
}

.image-lightbox__nav {
  top: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  transform: translateY(-50%);
}

.image-lightbox__prev {
  left: clamp(0.7rem, 2vw, 1.6rem);
}

.image-lightbox__next {
  right: clamp(0.7rem, 2vw, 1.6rem);
}

.image-lightbox__close:hover,
.image-lightbox__nav:hover {
  border-color: rgba(255, 209, 132, 0.62);
  background: rgba(255, 209, 132, 0.14);
}

@media (max-width: 760px) {
  .hometown-photo-archive {
    grid-auto-columns: min(76vw, 20rem);
  }

  .image-lightbox {
    padding: 0.8rem;
  }

  .image-lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 980px) {
  .hometown-photo-head {
    display: block;
  }

  .hometown-photo-head p {
    margin-top: 0.65rem;
  }

  .hometown-photo-archive {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 10rem;
  }

  .hometown-photo-archive button,
  .hometown-photo-archive button:nth-child(n) {
    grid-column: span 3;
    grid-row: span 1;
  }

  .hometown-photo-archive button:nth-child(1),
  .hometown-photo-archive button:nth-child(5),
  .hometown-photo-archive button:nth-child(9) {
    grid-column: span 6;
    grid-row: span 2;
  }
}

@media (max-width: 620px) {
  .hometown-photo-head {
    border-radius: 1.25rem;
  }

  .hometown-photo-archive {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .hometown-photo-archive button,
  .hometown-photo-archive button:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

@keyframes ambientInkFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
    border-radius: 42% 58% 56% 44%;
  }
  100% {
    transform: translate3d(3vw, -2vh, 0) rotate(16deg) scale(1.08);
    border-radius: 58% 42% 45% 55%;
  }
}

@media (max-width: 760px) {
  .custom-cursor {
    display: none;
  }

  .real-photo-card {
    right: 50%;
    top: 4%;
    width: 9rem;
    transform: translate(50%, -0.7rem) scale(0.9);
  }

  .poster-character:hover .real-photo-card,
  .poster-character:focus-visible .real-photo-card {
    transform: translate(50%, 0) scale(1);
  }
}
