:root {
  --bg: #eee9dd;
  --paper: #f4efe4;
  --paper-warm: #e8dfd0;
  --ink: #1f1f1d;
  --text: #24231f;
  --muted: #6f6a60;
  --accent: #476d68;
  --accent-2: #b17456;
  --border: rgba(31, 31, 29, 0.16);
  --line: rgba(31, 31, 29, 0.22);
  --shadow: 0 22px 70px rgba(53, 43, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(244, 239, 228, 0.92), rgba(238, 233, 221, 0.96)),
    url("../images/pink_house.webp") top center / cover fixed no-repeat,
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(31, 31, 29, 0.16) 0.55px, transparent 0.65px),
    radial-gradient(rgba(31, 31, 29, 0.08) 0.5px, transparent 0.65px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.025));
  background-position:
    0 0,
    9px 13px,
    0 0;
  background-size:
    22px 22px,
    18px 18px,
    100% 100%;
  opacity: 0.36;
  pointer-events: none;
  z-index: 2;
}

.background-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 13%, rgba(31, 31, 29, 0.045) 13.04%, transparent 13.14% 100%),
    linear-gradient(180deg, transparent 0 18%, rgba(31, 31, 29, 0.04) 18.05%, transparent 18.16% 100%);
  background-size: 310px 360px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.aurora {
  position: fixed;
  border-radius: 45% 55% 52% 48%;
  filter: blur(42px);
  opacity: 0.14;
  pointer-events: none;
}

.aurora-one {
  width: 280px;
  height: 280px;
  background: #c9bea9;
  top: 8%;
  left: -5%;
}

.aurora-two {
  width: 320px;
  height: 320px;
  background: #b9c8c1;
  bottom: 10%;
  right: -8%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.45rem clamp(1.25rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.brand {
  flex: 0 0 auto;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.45rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow:
    0 1px 18px rgba(0, 0, 0, 0.46),
    0 0 18px rgba(255, 255, 255, 0.12);
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.1rem, 2.8vw, 3rem);
  min-width: 0;
}

.nav-links a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(0.82rem, 1.25vw, 1rem);
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 1px 18px rgba(0, 0, 0, 0.58),
    0 0 12px rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  opacity: 0.88;
  transition:
    opacity 0.2s ease,
    color 0.22s ease,
    text-shadow 0.22s ease,
    transform 0.22s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.42),
    0 1px 22px rgba(0, 0, 0, 0.5);
}

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

body.is-past-hero .site-header {
  background: linear-gradient(180deg, rgba(244, 239, 228, 0.78), rgba(244, 239, 228, 0.2));
  border-bottom-color: rgba(31, 31, 29, 0.06);
}

body.is-past-hero .brand,
body.is-past-hero .nav-links a {
  color: var(--ink);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 28px rgba(50, 42, 29, 0.1);
}

body.is-past-hero .nav-links a:hover,
body.is-past-hero .nav-links a.active {
  color: var(--ink);
  text-shadow:
    0 0 14px rgba(71, 109, 104, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.55);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 4rem;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 12vw, 10rem) 0;
  scroll-margin-top: 5rem;
}

main > .section:not(.hero) {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

main > .section:not(.hero)::before,
main > .section:not(.hero)::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
  background-repeat: no-repeat;
  background-size: contain;
  filter: contrast(120%);
}

main > .section:not(.hero)::before {
  top: 2.5rem;
  left: max(-9vw, -100px);
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231f1f1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 112c26-35 58-55 100-61'/%3E%3Cpath d='M52 110c8-23 18-44 36-64'/%3E%3Cpath d='M74 93c21-3 42-1 64 7'/%3E%3Cpath d='M47 127c24-10 55-12 85-2'/%3E%3Cpath d='M101 54c8 10 11 21 9 34'/%3E%3C/g%3E%3C/svg%3E");
  animation: sketchFloat 9s ease-in-out infinite;
}

main > .section:not(.hero)::after {
  right: max(-8vw, -90px);
  bottom: 2rem;
  width: 130px;
  height: 130px;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231f1f1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M42 116c18-8 31-23 39-45'/%3E%3Cpath d='M82 69c15 8 27 20 36 37'/%3E%3Cpath d='M61 93c-15-3-27-10-36-22'/%3E%3Cpath d='M91 91c15-4 28-12 39-25'/%3E%3Cpath d='M79 72c2-15-2-28-12-40'/%3E%3C/g%3E%3C/svg%3E");
  animation: sketchFloat 11s ease-in-out 1.2s infinite reverse;
}

.hero {
  --parallax-x: 50%;
  --parallax-y: 50%;
  position: relative;
  display: grid;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  padding: clamp(5.8rem, 11vh, 7.6rem) 0 clamp(1.2rem, 3vh, 2.2rem);
  overflow: hidden;
  isolation: isolate;
}

.background,
.overlay,
.gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background {
  background-image: url("../images/pink_house.webp");
  background-size: cover;
  background-position: var(--parallax-x) var(--parallax-y);
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: background-position 0.45s ease-out;
  z-index: -3;
}

.overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.42) 40%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.32) 100%),
    radial-gradient(circle at 68% 38%, rgba(244, 239, 228, 0.08), rgba(0, 0, 0, 0.24) 44%, rgba(0, 0, 0, 0.54) 100%);
  z-index: -2;
}

.gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 68%,
    rgba(247, 241, 231, 0.1) 84%,
    rgba(238, 233, 221, 0.34) 95%,
    var(--bg) 100%
  );
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(1.6rem, 6vw, 5.2rem);
  align-items: end;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-character-stage {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  transform: translateY(clamp(0.4rem, 1.2vh, 1rem));
}

.hero-character-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 1%;
  height: 42%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(83, 216, 222, 0.16), transparent 60%),
    radial-gradient(circle at 52% 42%, rgba(247, 241, 231, 0.2), transparent 46%);
  filter: blur(22px);
  opacity: 0;
  animation: heroAuraIn 1.3s ease-out 0.3s forwards;
  z-index: -1;
}

.hero-character {
  width: min(88%, 450px);
  max-height: 78vh;
  object-fit: contain;
  filter:
    drop-shadow(0 34px 44px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 22px rgba(83, 216, 222, 0.12));
  opacity: 0;
  transform: translate3d(-34px, 42px, 0) scale(0.96);
  animation:
    heroCharacterIn 1.15s cubic-bezier(0.18, 0.82, 0.24, 1) 0.15s forwards,
    heroCharacterFloat 6.8s ease-in-out 1.4s infinite;
}

.intro-card {
  position: absolute;
  left: clamp(250px, 27vw, 360px);
  top: clamp(8.8rem, 22vh, 14rem);
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 0.74rem 1.12rem 0.78rem;
  border: 1px solid rgba(247, 241, 231, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, rgba(247, 241, 231, 0.11), rgba(83, 216, 222, 0.035)),
    rgba(5, 8, 10, 0.035);
  backdrop-filter: blur(10px) saturate(122%);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -12px 26px rgba(83, 216, 222, 0.035);
  color: #f7f1e7;
  opacity: 0;
  transform: translate3d(34px, 24px, 0);
  animation: introCardIn 0.95s ease-out 0.55s forwards;
  overflow: hidden;
  cursor: default;
  transition:
    width 0.46s ease,
    min-width 0.46s ease,
    min-height 0.46s ease,
    padding 0.46s ease,
    border-radius 0.46s ease,
    background 0.46s ease,
    border-color 0.46s ease,
    backdrop-filter 0.46s ease,
    box-shadow 0.46s ease,
    translate 0.46s ease;
}

.intro-card:hover,
.intro-card:focus-within {
  width: min(390px, 100%);
  min-width: min(390px, calc(100vw - 2rem));
  min-height: 16.5rem;
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  border-radius: 18px;
  border-color: rgba(247, 241, 231, 0.26);
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.42), transparent 24%),
    radial-gradient(circle at 82% 84%, rgba(83, 216, 222, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(247, 241, 231, 0.14), rgba(83, 216, 222, 0.05)),
    rgba(5, 8, 10, 0.07);
  backdrop-filter: blur(13px) saturate(132%);
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -18px 32px rgba(83, 216, 222, 0.045);
  translate: 0 -6px;
}

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

.intro-card::before {
  inset: 7px;
  border-radius: inherit;
  border-top: 1px solid rgba(247, 241, 231, 0.2);
  border-bottom: 1px solid rgba(83, 216, 222, 0.09);
}

.intro-card::after {
  width: 46%;
  height: 1px;
  right: 1rem;
  top: 1.05rem;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(83, 216, 222, 0.38));
  box-shadow: 0 0 12px rgba(83, 216, 222, 0.18);
  transition: opacity 0.3s ease;
}

.intro-card:hover::after,
.intro-card:focus-within::after {
  opacity: 1;
}

.intro-card h1 {
  margin: 0;
  color: #f7f1e7;
  font-family: "Newsreader", serif;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.08;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.42);
  white-space: nowrap;
}

.intro-name-cn {
  margin: 0.25rem 0 1.15rem;
  color: rgba(247, 241, 231, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.intro-meta {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 1.1rem;
  color: rgba(247, 241, 231, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.intro-description {
  max-width: 330px;
  margin: 0;
  color: rgba(247, 241, 231, 0.68);
  font-size: 0.92rem;
  line-height: 1.7;
}

.intro-card h1,
.intro-name-cn,
.intro-meta,
.intro-description {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.44s ease,
    transform 0.44s ease,
    max-height 0.44s ease,
    margin 0.44s ease;
}

.intro-card h1 {
  opacity: 0.82;
  transform: translateY(0);
}

.intro-name-cn {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition-delay: 0.04s;
}

.intro-meta {
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition-delay: 0.1s;
}

.intro-description {
  max-height: 0;
  overflow: hidden;
  transition-delay: 0.16s;
}

.intro-card:hover h1,
.intro-card:focus-within h1 {
  opacity: 1;
  white-space: normal;
}

.intro-card:hover .intro-name-cn,
.intro-card:focus-within .intro-name-cn,
.intro-card:hover .intro-meta,
.intro-card:focus-within .intro-meta,
.intro-card:hover .intro-description,
.intro-card:focus-within .intro-description {
  opacity: 1;
  transform: translateY(0);
  max-height: 7rem;
}

.intro-card:hover .intro-name-cn,
.intro-card:focus-within .intro-name-cn {
  margin-top: 0.25rem;
  margin-bottom: 1.15rem;
}

.intro-card:hover .intro-meta,
.intro-card:focus-within .intro-meta {
  margin-bottom: 1.1rem;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.1;
  color: var(--ink);
}

h1 {
  font-family: "Newsreader", serif;
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.86;
}

h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(2.2rem, 5.8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  max-width: 850px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 520px;
}

.hero .eyebrow {
  color: rgba(214, 238, 231, 0.86);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.hero h1 {
  color: #f7f1e7;
  text-shadow:
    0 4px 34px rgba(0, 0, 0, 0.46),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero .hero-subtitle {
  color: rgba(247, 241, 231, 0.78);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.48);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 1.8rem;
}

.tag-list span {
  border: 1px solid rgba(31, 31, 29, 0.18);
  color: var(--accent);
  background: rgba(244, 239, 228, 0.42);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.18rem;
  border-radius: 999px;
  text-decoration: none;
  margin-right: 0.9rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.hero .tag-list span {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(247, 241, 231, 0.88);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.btn-secondary {
  color: var(--ink);
  border: 1px solid var(--border);
  background: rgba(244, 239, 228, 0.42);
}

.hero .btn-primary {
  background: #f7f1e7;
  color: #1f1f1d;
}

.hero .btn-secondary {
  color: #f7f1e7;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.magic-stage {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  overflow: visible;
  isolation: isolate;
}

.magic-stage::before {
  content: "";
  position: absolute;
  inset: 13% 2% 8% 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(110, 231, 255, 0.18), transparent 58%),
    radial-gradient(circle at 68% 34%, rgba(139, 92, 246, 0.16), transparent 40%);
  filter: blur(18px);
  opacity: 0;
  animation: stageGlow 5.8s ease-out 0.8s forwards;
  z-index: 0;
}

.magic-stage::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 16%;
  width: 50%;
  height: 46%;
  border-radius: 50%;
  background: conic-gradient(
    from -60deg,
    transparent 0 18%,
    rgba(110, 231, 255, 0.12) 28%,
    rgba(110, 231, 255, 0.78) 40%,
    rgba(167, 243, 255, 0.24) 48%,
    transparent 62% 100%
  );
  filter: blur(1px) drop-shadow(0 0 18px rgba(110, 231, 255, 0.64));
  opacity: 0;
  transform: rotate(-36deg) scale(0.7);
  animation: pngBranchSweep 2.3s cubic-bezier(0.2, 0.78, 0.22, 1) 0.95s forwards;
  z-index: 3;
  pointer-events: none;
}

.particle-field,
.energy-ring,
.holo-panels,
.character-wrap {
  position: absolute;
  inset: 0;
}

.particle-field {
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.energy-ring {
  display: grid;
  place-items: center;
  transform: translate(-19%, -11%) rotate(-28deg);
  z-index: 2;
  pointer-events: none;
}

.energy-ring svg {
  width: 86%;
  height: 86%;
  overflow: visible;
  filter:
    drop-shadow(0 0 10px rgba(71, 109, 104, 0.42))
    drop-shadow(0 0 24px rgba(71, 109, 104, 0.18));
}

.energy-path {
  fill: none;
  stroke: rgba(71, 109, 104, 0.72);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 868;
  stroke-dashoffset: 868;
  opacity: 0;
  animation: drawEnergy 2.4s cubic-bezier(0.22, 0.78, 0.21, 1) 1.05s forwards;
}

.energy-path-secondary {
  stroke: rgba(177, 116, 86, 0.32);
  stroke-width: 2;
  animation-delay: 1.28s;
}

.character-wrap {
  z-index: 4;
  transform-origin: 52% 43%;
  animation: characterArrive 1.1s ease-out both;
}

.ai-girl {
  position: absolute;
  right: -1%;
  bottom: 0;
  width: min(78%, 390px);
  max-height: 96%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.52));
  animation: characterFloat 5.8s ease-in-out 1.2s infinite;
}

.branch-aura {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 8%, rgba(110, 231, 255, 0.92) 13%, transparent 58%),
    radial-gradient(circle, rgba(110, 231, 255, 0.28), transparent 66%);
  filter:
    blur(0.2px)
    drop-shadow(0 0 12px rgba(71, 109, 104, 0.45))
    drop-shadow(0 0 30px rgba(177, 116, 86, 0.2));
  opacity: 0;
  transform: scale(0.4);
  animation: branchAura 2.4s ease-out 0.95s forwards;
  z-index: 5;
  pointer-events: none;
}

.holo-panels {
  z-index: 6;
  pointer-events: none;
}

.holo-panel {
  position: absolute;
  min-width: 148px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(110, 231, 255, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 239, 228, 0.78), rgba(232, 223, 208, 0.58)),
    rgba(244, 239, 228, 0.66);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: none;
  box-shadow:
    0 18px 34px rgba(53, 43, 28, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  opacity: 0;
  transform: translate3d(35px, 26px, 0) scale(0.82) rotateY(28deg);
  animation:
    panelEmerge 0.86s cubic-bezier(0.2, 0.78, 0.24, 1.14) forwards,
    panelFloat 4.6s ease-in-out infinite;
}

.holo-panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-top: 1px solid rgba(31, 31, 29, 0.16);
  border-bottom: 1px solid rgba(31, 31, 29, 0.08);
  opacity: 0.72;
}

.panel-one {
  left: 11%;
  top: 23%;
  animation-delay: 3.2s, 4.1s;
}

.panel-two {
  left: 2%;
  top: 45%;
  animation-delay: 3.38s, 4.28s;
}

.panel-three {
  left: 21%;
  top: 64%;
  animation-delay: 3.56s, 4.46s;
}

.panel-four {
  left: 32%;
  top: 37%;
  min-width: 192px;
  animation-delay: 3.74s, 4.64s;
}

.card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.35rem 0 0;
  box-shadow: none;
}

.card h3,
.timeline-item h3 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0;
}

.card p,
.card li,
.timeline-item p,
.contact-card li {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.about-grid,
.research-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
}

.publication-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.meta {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-heading {
  margin-bottom: clamp(2.2rem, 6vw, 5rem);
}

.section-heading h2 {
  max-width: 820px;
}

.about-title {
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.journey-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.journey-entry {
  display: grid;
  grid-template-columns: minmax(130px, 0.26fr) 1fr;
  gap: clamp(1rem, 4vw, 2.8rem);
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
}

.journey-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.journey-content {
  position: relative;
  padding-left: 1rem;
}

.journey-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #4379b8;
  box-shadow: 0 0 0 3px rgba(67, 121, 184, 0.12);
}

.journey-content h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 800;
  line-height: 1.35;
}

.journey-content p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.04rem);
  line-height: 1.65;
}

.publication-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) 1fr;
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: start;
  padding: 1.8rem 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.publication-figure {
  margin: 0;
}

.publication-figure img {
  display: block;
  width: 100%;
  border: 2px solid rgba(31, 31, 29, 0.82);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(53, 43, 28, 0.12);
}

.publication-content h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.publication-authors,
.publication-summary,
.publication-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.04rem);
  line-height: 1.65;
}

.publication-note {
  font-size: 0.88rem;
  font-style: italic;
}

.publication-venue {
  margin: 0.8rem 0 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 800;
}

.publication-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.publication-actions a {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.publication-actions a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.5rem 0;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@keyframes characterArrive {
  from {
    opacity: 0;
    transform: translate3d(44px, 22px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroCharacterIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroCharacterFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes heroAuraIn {
  to {
    opacity: 1;
  }
}

@keyframes introCardIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes characterFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pngBranchSweep {
  0% {
    opacity: 0;
    transform: rotate(-72deg) scale(0.55);
  }
  22% {
    opacity: 0.92;
  }
  78% {
    opacity: 0.76;
    transform: rotate(238deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(276deg) scale(1.04);
  }
}

@keyframes branchAura {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  28% {
    opacity: 1;
    transform: scale(0.9);
  }
  72% {
    opacity: 0.92;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.58;
    transform: scale(0.78);
  }
}

@keyframes drawEnergy {
  0% {
    opacity: 0;
    stroke-dashoffset: 868;
  }
  16% {
    opacity: 1;
  }
  76% {
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0.74;
    stroke-dashoffset: 0;
  }
}

@keyframes panelEmerge {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes stageGlow {
  to {
    opacity: 1;
  }
}

@keyframes sketchFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(1.5deg);
  }
}

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

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

@media (max-width: 860px) {
  .content,
  .about-grid,
  .research-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 1rem 1rem 0.8rem;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav-links {
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  main {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero {
    gap: 1rem;
    min-height: 100svh;
    padding-top: 5.6rem;
    padding-bottom: 1.2rem;
  }

  .magic-stage {
    width: min(440px, 100%);
  }

  .hero-character-stage {
    min-height: 54vh;
    order: 1;
    transform: translateY(0.4rem);
  }

  .hero-character {
    width: min(78%, 320px);
    max-height: 54vh;
  }

  .intro-card {
    left: auto;
    right: 0.8rem;
    top: 42vh;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    margin-bottom: 0;
  }

  .intro-card:hover,
  .intro-card:focus-within {
    width: min(100%, 360px);
    min-width: min(360px, calc(100vw - 2rem));
    min-height: 15.5rem;
  }

  .holo-panel {
    min-width: 132px;
    padding: 0.62rem 0.72rem;
    font-size: 0.76rem;
  }

  .panel-one {
    left: 5%;
    top: 18%;
  }

  .panel-two {
    left: 0;
    top: 43%;
  }

  .panel-three {
    left: 14%;
    top: 68%;
  }

  .panel-four {
    left: 28%;
    min-width: 160px;
  }

  main > .section:not(.hero) {
    width: min(100% - 1.5rem, 980px);
  }

  main > .section:not(.hero)::before,
  main > .section:not(.hero)::after {
    width: 92px;
    height: 92px;
    opacity: 0.09;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-card li {
    display: grid;
  }

  .journey-entry {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 1.35rem 0;
  }

  .journey-content {
    padding-left: 0.95rem;
  }

  .publication-item {
    grid-template-columns: 1fr;
  }
}

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

  .energy-path,
  .holo-panel,
  .magic-stage::before {
    opacity: 1;
  }

  .energy-path {
    stroke-dashoffset: 0;
  }

  .holo-panel,
  .character-wrap,
  .magic-stage::after,
  .branch-aura {
    transform: none;
  }

  .particle-field {
    display: none;
  }

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