/* ═══════════════════════════════════════════
   JUSTIN FANG · 方 — Jade Cultivation Portfolio
   ═══════════════════════════════════════════ */

:root {
  --ink: #091f15;
  --ink-2: #0e2a1d;
  --ink-3: #133527;
  --jade: #34e89e;
  --jade-soft: #7ef2c0;
  --jade-deep: #0f9b6c;
  --jade-dim: rgba(52, 232, 158, 0.14);
  --gold: #e8c873;
  --mist: #bfe9d6;
  --text: #d7efe2;
  --text-dim: #8fb8a4;
  --serif: "Noto Serif SC", serif;
  --display: "Cinzel", serif;
  --body: "Rajdhani", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
}

::selection { background: var(--jade-deep); color: #fff; }

.jade { color: var(--jade); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--jade-deep), var(--ink-3));
  border-radius: 5px;
}

/* ═══════════ LANDING ═══════════ */

#landing {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(15, 155, 108, 0.26), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(52, 232, 158, 0.13), transparent 60%),
    var(--ink);
  cursor: none;
  transition: opacity 1.1s ease 0.15s;
}
#landing.leaving { opacity: 0; pointer-events: none; }

#landing-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.gate-tree {
  position: absolute;
  top: -5vh;
  right: -50px;
  width: min(40vw, 600px); 
  min-width: 350px;       
  pointer-events: none;
  user-select: none;
  opacity: 0.25;
  filter: saturate(1.05) brightness(1.02)
          drop-shadow(0 0 30px rgba(61, 220, 110, 0.25));
  animation: treeSway 12s ease-in-out infinite alternate;
  transform-origin: 92% 6%;
}
@keyframes treeSway {
  from { transform: rotate(-0.5deg); }
  to { transform: rotate(0.6deg); }
}

.landing-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 45%, rgba(2, 8, 5, 0.5) 100%);
}

#landing, #shatter, #nav, #main-canvas, .main-mist, #main > .section, #main > footer {
  transition: filter 1.2s ease;
}
html.ink #landing,
html.ink #shatter,
html.ink #nav,
html.ink #main-canvas,
html.ink .main-mist,
html.ink #main > .section,
html.ink #main > footer {
  filter: grayscale(0.85);
}

#ink-layer { position: absolute; inset: 0; z-index: 12; pointer-events: none; }

.ink-brush {
  position: absolute;
  left: 50%;
  top: 0;
  height: 50vh;
  transform: translate(-50%, -120%) rotate(-4deg);
  transform-origin: 50% 10%;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
}
#landing.splashing .ink-brush { animation: brushPaint 1.6s cubic-bezier(0.5, 0, 0.25, 1) forwards; }
@keyframes brushPaint {
  0% { transform: translate(calc(-50% - 32vw), -130%) rotate(-8deg); }
  25% { transform: translate(calc(-50% - 32vw), 1vh) rotate(-13deg); }
  31% { transform: translate(calc(-50% - 31vw), 2.5vh) rotate(-15deg); }
  64% { transform: translate(calc(-50% + 32vw), 2vh) rotate(-24deg); }
  74% { transform: translate(calc(-50% + 34vw), 0.5vh) rotate(-18deg); }
  100% { transform: translate(calc(-50% + 40vw), -135%) rotate(-6deg); }
}

.stroke-reveal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.stroke-band {
  position: relative;
  width: min(68vw, 900px);
  height: clamp(80px, 14vh, 130px);
  display: grid;
  place-items: center;
  clip-path: inset(-15% 100% -15% 0);
  opacity: 0;
}

.stroke-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 16px 6px rgba(52, 232, 158, 0.8);
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.stroke-text {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic; 
  font-size: clamp(22px, 4.4vw, 52px);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(126, 242, 192, 0.9),
    0 0 30px rgba(52, 232, 158, 0.7),
    0 0 60px rgba(15, 155, 108, 0.5);
  white-space: nowrap;
  position: relative;
  z-index: 1; 
}

.loading-bar {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 2;
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  box-shadow: 0 0 10px rgba(52, 232, 158, 0.9), 0 0 20px rgba(126, 242, 192, 0.6);
}

#landing.splashing .loading-fill {
  animation: loadProgress 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  40% { width: 65%; } 
  75% { width: 85%; }
  100% { width: 100%; }
}

#landing.splashing .stroke-band {
  animation:
    strokeWipe 0.55s cubic-bezier(0.5, 0, 0.25, 1) 0.5s forwards,
    strokeFade 0.3s ease 2.4s forwards; 
}
@keyframes strokeWipe {
  0% { opacity: 1; clip-path: inset(-15% 100% -15% 0); }
  100% { opacity: 1; clip-path: inset(-15% 0% -15% 0); }
}
@keyframes strokeFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

#landing.splashing { animation: impactJolt 0.4s ease-out 0.42s; }
@keyframes impactJolt {
  0%, 100% { transform: none; }
  25% { transform: translate(-7px, 5px); }
  50% { transform: translate(6px, -4px); }
  75% { transform: translate(-3px, 2px); }
}

.ink-drop {
  position: absolute;
  left: calc(50% - 9px);
  top: 44vh;
  width: 18px; height: 18px;
  border-radius: 50% 50% 60% 60%;
  background: #0c0c0c;
  opacity: 0;
}
#landing.splashing .ink-drop { animation: dropFall 0.22s cubic-bezier(0.5, 0, 1, 0.5) 0.46s forwards; }
@keyframes dropFall {
  0% { opacity: 1; transform: translateY(0) scaleY(1); }
  99% { opacity: 1; transform: translateY(7vh) scaleY(1.7); }
  100% { opacity: 0; transform: translateY(7vh) scaleY(1.7); }
}

.ink-blot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34vmax; height: 34vmax;
  margin: -17vmax 0 0 -17vmax;
  background: radial-gradient(closest-side,
    rgba(8, 8, 8, 0.26) 58%, rgba(8, 8, 8, 0.16) 80%, rgba(8, 8, 8, 0.05) 95%, transparent);
  -webkit-backdrop-filter: grayscale(1);
  backdrop-filter: grayscale(1);
  border-radius: 50%;
  border: 2px solid rgba(214, 255, 240, 0.25);
  box-shadow:
    0 0 34px rgba(126, 242, 192, 0.25),
    inset 0 0 70px rgba(0, 0, 0, 0.45);
  transform: scale(0);
}
#landing.splashing .ink-blot { animation: blotSpread 1.4s cubic-bezier(0.25, 0, 0.4, 1) 0.75s forwards; }
@keyframes blotSpread {
  0% { transform: scale(0); opacity: 1; }
  60% { transform: scale(8.6); opacity: 1; }
  85% { transform: scale(9); opacity: 1; }
  100% { transform: scale(9.2); opacity: 0; }
}

.gate-seal {
  position: absolute;
  font-family: var(--serif);
  font-weight: 900;
  font-size: min(72vh, 72vw);
  color: rgba(52, 232, 158, 0.035);
  user-select: none;
  pointer-events: none;
  animation: sealBreath 9s ease-in-out infinite;
}
@keyframes sealBreath {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.landing-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 24px;
  animation: contentRise 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes contentRise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-kicker {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.6em;
  font-size: clamp(12px, 1.6vw, 16px);
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(232, 200, 115, 0.5);
}

.landing-title { line-height: 1.05; }

.title-cn {
  display: block;
  font-family: var(--serif);
  font-weight: 500; 
  font-size: clamp(22px, 3vw, 28px); 
  letter-spacing: 0.4em;
  color: var(--mist); 
  text-shadow: 0 0 16px rgba(191, 233, 214, 0.4);
  margin-bottom: 12px;
}

.title-en {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 90px);
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.name-jade {
  background: linear-gradient(170deg, #eafff4 10%, var(--jade) 55%, var(--jade-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(52, 232, 158, 0.45));
}

.name-gold {
  background: linear-gradient(170deg, #fffcea 10%, var(--gold) 55%, #bb8f33 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(232, 200, 115, 0.45));
}

.landing-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px auto 44px;
  color: var(--text-dim);
  font-size: clamp(13px, 1.7vw, 17px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.sub-line {
  width: clamp(36px, 8vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jade), transparent);
}

#enter-btn {
  position: relative;
  cursor: none;
  background: rgba(7, 26, 18, 0.6);
  border: 1px solid rgba(52, 232, 158, 0.55);
  color: var(--jade-soft);
  font-family: var(--display);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: 0.4em;
  padding: 20px 54px 20px 60px;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  transition: color 0.35s, background 0.35s, box-shadow 0.35s, transform 0.35s;
  overflow: hidden;
}
#enter-btn .btn-text {
  position: relative;
  z-index: 2;
  transition: letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease 0.08s;
}
#enter-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, var(--jade-deep), var(--jade) 50%, var(--jade-soft));
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#enter-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  z-index: 1;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(126, 242, 192, 0.25), transparent);
  animation: btnSheen 3.2s ease-in-out infinite;
}
@keyframes btnSheen {
  0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; }
}
#enter-btn:hover {
  box-shadow: 0 0 44px rgba(52, 232, 158, 0.65), inset 0 0 18px rgba(52, 232, 158, 0.15);
  transform: translateY(-2px);
}
#enter-btn:hover::after { transform: scaleX(1); }
#enter-btn:hover .btn-text { color: var(--ink); letter-spacing: 0.55em; }

.landing-hint {
  margin-top: 38px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: rgba(143, 184, 164, 0.55);
  font-style: italic;
  animation: hintPulse 4s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.9; } }

.landing-content, .gate-seal {
  transition: filter 1.2s ease, opacity 1.2s ease;
}
#landing.splashing .landing-content,
#landing.splashing .gate-seal {
  filter: blur(12px);
  opacity: 0.05;
  pointer-events: none;
  transition-delay: 0.6s;
}

#slash-layer { position: absolute; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }

#landing.entering { animation: realmShake 1s linear 0.4s; }
@keyframes realmShake {
  0%, 100% { transform: none; }
  10% { transform: translate(-12px, 7px); }
  20% { transform: translate(14px, -9px); }
  30% { transform: translate(-16px, -7px); }
  40% { transform: translate(12px, 11px); }
  50% { transform: translate(-10px, 5px); }
  60% { transform: translate(14px, -7px); }
  70% { transform: translate(-7px, 9px); }
  80% { transform: translate(9px, -5px); }
  90% { transform: translate(-5px, 3px); }
}

.slash {
  position: absolute;
  top: 50%; left: 50%;
  width: 260vmax; height: 18px;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,0.9) 16%, #ffffff 50%, rgba(255,255,255,0.9) 84%, transparent);
  clip-path: polygon(0 50%, 10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%);
  box-shadow:
    0 0 40px 14px rgba(126, 242, 192, 0.95),
    0 0 120px 40px rgba(52, 232, 158, 0.65),
    0 0 280px 110px rgba(52, 232, 158, 0.3);
  opacity: 0;
}
.slash-1 { transform: translate(-50%, -50%) rotate(-24deg) scale(0, 0.3); }
.slash-2 { transform: translate(-50%, -50%) rotate(63deg) scale(0, 0.3); }
.slash-3 { transform: translate(-50%, -50%) rotate(-76deg) scale(0, 0.3); }

#landing.entering .slash-1 { animation: slashCut1 0.55s cubic-bezier(0.8, 0, 0.2, 1) 0.2s forwards; }
#landing.entering .slash-2 { animation: slashCut2 0.55s cubic-bezier(0.8, 0, 0.2, 1) 0.4s forwards; }
#landing.entering .slash-3 { animation: slashCut3 0.55s cubic-bezier(0.8, 0, 0.2, 1) 0.6s forwards; }

@keyframes slashCut1 {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(-24deg) scale(0, 0.3); }
  40% { opacity: 1; transform: translate(-50%, -50%) rotate(-24deg) scale(1, 1.4); }
  70% { opacity: 1; transform: translate(-50%, -50%) rotate(-24deg) scale(1, 1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(1, 0.4); }
}
@keyframes slashCut2 {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(63deg) scale(0, 0.3); }
  40% { opacity: 1; transform: translate(-50%, -50%) rotate(63deg) scale(1, 1.4); }
  70% { opacity: 1; transform: translate(-50%, -50%) rotate(63deg) scale(1, 1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(63deg) scale(1, 0.4); }
}
@keyframes slashCut3 {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(-76deg) scale(0, 0.3); }
  40% { opacity: 1; transform: translate(-50%, -50%) rotate(-76deg) scale(1, 1.4); }
  70% { opacity: 1; transform: translate(-50%, -50%) rotate(-76deg) scale(1, 1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-76deg) scale(1, 0.4); }
}

.slash-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, 1), rgba(234, 255, 244, 0.95) 45%, rgba(52, 232, 158, 0.75) 100%);
  opacity: 0;
}
#landing.entering .slash-flash { animation: flashPop 0.55s ease-out 0.8s forwards; }
@keyframes flashPop {
  0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 1; }
}

#shatter {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: none;
}
#shatter.go { display: block; }

.shard {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #0a2418, #04100b 70%, var(--ink));
  filter: drop-shadow(0 0 22px rgba(52, 232, 158, 0.55));
}
.shard-a { clip-path: polygon(24.5% 0, 100% 0, 100% 28%, 50% 50%); }
.shard-b { clip-path: polygon(100% 28%, 100% 100%, 75.5% 100%, 50% 50%); }
.shard-c { clip-path: polygon(75.5% 100%, 0 100%, 0 72%, 50% 50%); }
.shard-d { clip-path: polygon(0 72%, 0 0, 24.5% 0, 50% 50%); }

#shatter.go .shard-a { animation: shardFlyA 1s cubic-bezier(0.45, 0, 0.8, 0.4) 0.06s forwards; }
#shatter.go .shard-b { animation: shardFlyB 1s cubic-bezier(0.45, 0, 0.8, 0.4) 0.16s forwards; }
#shatter.go .shard-c { animation: shardFlyC 1s cubic-bezier(0.45, 0, 0.8, 0.4) 0.1s forwards; }
#shatter.go .shard-d { animation: shardFlyD 1s cubic-bezier(0.45, 0, 0.8, 0.4) 0.2s forwards; }

@keyframes shardFlyA { to { transform: translate(16%, -125%) rotate(7deg); opacity: 0.4; } }
@keyframes shardFlyB { to { transform: translate(125%, 30%) rotate(-6deg); opacity: 0.4; } }
@keyframes shardFlyC { to { transform: translate(-18%, 125%) rotate(8deg); opacity: 0.4; } }
@keyframes shardFlyD { to { transform: translate(-125%, -25%) rotate(-7deg); opacity: 0.4; } }

.glitch-static {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(126, 242, 192, 0.14) 0 2px, transparent 2px 5px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
#shatter.go .glitch-static { animation: staticFlicker 1.1s steps(12) forwards; }
@keyframes staticFlicker {
  0% { opacity: 0; transform: translateY(0); }
  8% { opacity: 0.6; }
  18% { opacity: 0.15; transform: translateY(-8px); }
  30% { opacity: 0.5; transform: translateY(5px); }
  44% { opacity: 0.2; transform: translateY(-3px); }
  58% { opacity: 0.45; transform: translateY(6px); }
  72% { opacity: 0.15; }
  86% { opacity: 0.35; transform: translateY(-4px); }
  100% { opacity: 0; }
}

.glitch-bars {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    transparent 0 18%, rgba(234, 255, 244, 0.12) 18% 19.5%,
    transparent 19.5% 41%, rgba(126, 242, 192, 0.16) 41% 42%,
    transparent 42% 63%, rgba(234, 255, 244, 0.1) 63% 65%,
    transparent 65% 84%, rgba(126, 242, 192, 0.13) 84% 85%,
    transparent 85%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
#shatter.go .glitch-bars { animation: barsTear 1.1s steps(9) forwards; }
@keyframes barsTear {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.9; transform: translate(-14px, 2%); }
  24% { opacity: 0.25; transform: translate(10px, -4%); }
  38% { opacity: 0.8; transform: translate(-7px, 7%); }
  52% { opacity: 0.3; transform: translate(12px, -2%); }
  66% { opacity: 0.7; transform: translate(-10px, 4%); }
  82% { opacity: 0.2; transform: translate(6px, -5%); }
  100% { opacity: 0; transform: translate(0, 0); }
}

.shatter-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 1;
}
#shatter.go .shatter-flash { animation: shatterFlashFade 0.55s ease-out forwards; }
@keyframes shatterFlashFade { to { opacity: 0; } }

#slash-sword {
  position: absolute;
  top: 50%; left: 50%;
  width: min(58vw, 620px);
  opacity: 0;
  transform: translate(-160%, -50%) rotate(-24deg);
  filter: drop-shadow(0 0 12px rgba(126, 242, 192, 0.8)) drop-shadow(0 0 30px rgba(52, 232, 158, 0.6));
}

#landing.entering #slash-sword { 
  animation: swordFly 0.85s cubic-bezier(0.55, 0, 0.3, 1) 0s forwards; 
}

@keyframes swordFly {
  0% { opacity: 0; transform: translate(-180%, 30%) rotate(-24deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(90%, -120%) rotate(-24deg); }
}

.sword-blade { fill: url(#__none), #cfeede; fill: #cfeede; }
.sword-fuller { stroke: var(--jade-deep); stroke-width: 2.5; }
.sword-guard { fill: var(--jade); }
.sword-hilt { fill: #11402d; stroke: var(--jade-deep); stroke-width: 1.5; }
.sword-pommel { fill: var(--gold); }
.sword-tassel { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }

/* ═══════════ MAIN ═══════════ */

#main {
  position: relative;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: #0a0a0b;
}
#main.arrived { opacity: 1; }

#main-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ink-mountain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  filter: brightness(0.62) contrast(1.08);
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.3) 0 34%, #000 64%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.3) 0 34%, #000 64%);
}

.main-mist {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(15, 155, 108, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(52, 232, 158, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(4, 16, 11, 0) 0%, rgba(4, 16, 11, 0.4) 100%);
  animation: mistDrift 24s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 6% -4%, -5% 5%, 0 0; }
}

/* ── Scroll Navigation Bar ── */
#nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 90vw, 1000px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: linear-gradient(to right, rgba(12, 18, 15, 0.95), rgba(20, 28, 24, 0.95) 50%, rgba(12, 18, 15, 0.95));
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(232, 200, 115, 0.05);
}

.scroll-roller {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 14px;
  background: linear-gradient(90deg, #5c4018, var(--gold) 40%, #3d2a0f 80%);
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.3);
}
.left-roller { left: -7px; }
.right-roller { right: -7px; }

.nav-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-seal {
  font-family: var(--serif);
  font-weight: 900;
  color: #e63946; 
  border: 2px solid #e63946;
  background: rgba(230, 57, 70, 0.1);
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.3);
  transform: rotate(-4deg); 
}

.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 8px;
  transition: all 0.35s;
  position: relative;
}
.nav-links a i {
  font-style: normal;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(232, 200, 115, 0.3);
  transition: all 0.35s;
}
.nav-links a span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.nav-links a:hover i,
.nav-links a.active i {
  color: #e63946;
  text-shadow: 0 0 16px rgba(230, 57, 70, 0.6);
  transform: translateY(-2px);
}

.nav-links a:hover span,
.nav-links a.active span { 
  color: #fff; 
  opacity: 1; 
}

/* sections */
.section, #hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) clamp(20px, 5vw, 48px);
  scroll-margin-top: 40px; 
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}
.section-cn {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 38px;
  color: #e63946;
  border: 3px solid #e63946;
  border-radius: 6px;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: rgba(230, 57, 70, 0.08);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}
#about .section-cn { transform: rotate(-4deg); }
#experience .section-cn { transform: rotate(3deg); }
#projects .section-cn { transform: rotate(-2deg); }
#beyond .section-cn { transform: rotate(5deg); }
#contact .section-cn { transform: rotate(-5deg); }

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.12em;
  color: #eafff4;
}
.section-head h2 em {
  font-family: var(--body);
  font-style: normal;
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}
.head-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 232, 158, 0.6), transparent);
}

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1100px;
}
.hero-inner { max-width: 700px; }
.hero-kicker {
  color: var(--gold);
  letter-spacing: 0.35em;
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #f2fff8;
  line-height: 1;
  text-shadow: 0 0 50px rgba(52, 232, 158, 0.25);
}
.hero-name .jade { text-shadow: 0 0 36px rgba(52, 232, 158, 0.6); }
.hero-tag {
  margin: 26px 0 36px;
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 580px;
}

.hero-cta { 
  display: flex; 
  gap: 3px; 
  flex-wrap: wrap; 
}

.sword-hilt, .sword-core, .sword-tip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  height: 48px; 
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.sword-hilt {
  background: repeating-linear-gradient(
    -45deg,
    #121f17,
    #121f17 5px,
    #080d0a 5px,
    #080d0a 10px
  ); 
  color: var(--gold);
  border-left: 6px solid #e63946; 
  border-top: 1px solid rgba(232, 200, 115, 0.4);
  border-bottom: 1px solid rgba(232, 200, 115, 0.4);
  padding: 0 34px 0 24px;
  border-radius: 4px 0 0 4px;
  
  height: 38px !important; 
  margin-top: 5px; 
  overflow: visible !important; 
  clip-path: none; 
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.8));
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.6), inset 0 -3px 6px rgba(0,0,0,0.6);
}

.sword-hilt:hover {
  background: repeating-linear-gradient(
    -45deg,
    #1a2d21,
    #1a2d21 5px,
    #0d1711 5px,
    #0d1711 10px
  );
  color: #fff;
}

.hilt-text {
  position: relative;
  z-index: 1;
}

.hilt-guard {
  position: absolute;
  right: 0;
  top: -16px; 
  bottom: -16px; 
  width: 12px; 
  background: linear-gradient(to bottom, #b38b22, #fff2cc 20%, #d4af37 80%, #665200); 
  border-radius: 3px; 
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.9), 0 0 18px rgba(232, 200, 115, 0.6); 
  z-index: 2;
}

.hilt-tassel {
  position: absolute;
  left: -4px; 
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: tasselSway 2.5s ease-in-out infinite alternate;
  z-index: 5;
}
.t-cord { width: 2px; height: 12px; background: var(--gold); }
.t-knot {
  width: 10px; height: 10px; background: #e63946;
  border-radius: 50%; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.4);
}
.t-fringe {
  width: 12px; height: 22px;
  background: repeating-linear-gradient(90deg, #e63946, #e63946 1px, #b31b1b 1px, #b31b1b 2px);
  border-radius: 2px 2px 3px 3px;
}
@keyframes tasselSway {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(25deg); }
}

.sword-core {
  background: rgba(7, 26, 18, 0.6);
  color: var(--jade-soft);
  border-top: 1px solid rgba(52, 232, 158, 0.8);
  border-bottom: 1px solid rgba(52, 232, 158, 0.8);
  padding: 0 34px 0 24px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  filter: drop-shadow(0 4px 12px rgba(52, 232, 158, 0.2));
}

.sword-core:hover {
  background: rgba(52, 232, 158, 0.25);
  color: #fff;
  filter: drop-shadow(0 0 20px rgba(52, 232, 158, 0.4));
}

.sword-tip {
  background: var(--jade);
  color: var(--ink);
  padding: 0 40px 0 24px;
  clip-path: polygon(18px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  filter: drop-shadow(0 4px 15px rgba(52, 232, 158, 0.4));
}

.dl-icon {
  font-weight: 900;
  font-size: 16px;
  margin-right: 8px;
  color: var(--ink-3);
  transition: transform 0.3s;
}

.sword-tip:hover {
  background: var(--jade-soft);
  transform: translateX(4px); 
  filter: drop-shadow(0 0 25px rgba(52, 232, 158, 0.8));
}

.sword-tip:hover .dl-icon {
  transform: translateY(2px); 
}

.hero-glyph {
  position: absolute;
  right: clamp(-40px, 2vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(180px, 30vw, 420px);
  color: rgba(52, 232, 158, 0.05);
  pointer-events: none;
  user-select: none;
  animation: sealBreath 11s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue span {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--jade));
  animation: cueDrop 2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.shown { opacity: 1; transform: translateY(0); }

/* panels */
.panel, .t-card, .proj-card, .beyond-panel, .contact-card {
  background: linear-gradient(160deg, rgba(16, 26, 20, 0.85), rgba(7, 14, 10, 0.95));
  border: 1px solid rgba(232, 200, 115, 0.3);
  border-radius: 4px; 
  padding: 34px;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.panel::after, .t-card::after, .proj-card::after, .beyond-panel::after, .contact-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(232, 200, 115, 0.1);
  pointer-events: none;
  border-radius: 2px;
}

.t-node {
  position: absolute;
  left: -34px;
  top: 30px;
  width: 17px; height: 17px;
  transform: rotate(45deg);
  background: var(--ink-2);
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(232, 200, 115, 0.5);
}
.panel h3 {
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 20px;
  color: var(--jade-soft);
  margin-bottom: 16px;
}
.panel p { line-height: 1.8; color: var(--text-dim); font-size: 16px; margin-bottom: 14px; }
/* ── Ink-Wash Reveal Portrait ── */
.cultivator-portrait {
  float: right; /* Lets the text flow naturally around the left side */
  width: 150px;
  height: 190px;
  margin: 0 0 20px 24px;
  position: relative;
  border-radius: 4px;
  border: 1px solid var(--gold);
  padding: 4px; /* Creates the inner framing effect */
  background: linear-gradient(160deg, rgba(16, 26, 20, 0.85), rgba(7, 14, 10, 0.95));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
}

.cultivator-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  /* The artifact disguise: heavy ink and sepia tone */
  filter: grayscale(1) sepia(0.4) contrast(1.1) brightness(0.8); 
  transition: filter 0.6s ease;
}

/* The hover interaction: The ink washes away to reveal the truth */
.cultivator-portrait:hover {
  transform: translateY(-6px);
  border-color: var(--jade);
  box-shadow: 0 15px 40px rgba(52, 232, 158, 0.25), 0 0 20px rgba(52, 232, 158, 0.1);
}

.cultivator-portrait:hover img {
  /* Restores full modern color */
  filter: grayscale(0) sepia(0) contrast(1) brightness(1); 
}

/* The Cinnabar Stamp over the corner */
.portrait-seal {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: auto;
  height: auto;
  padding: 6px 10px;
  max-width: 90px; 
  
  /* Solid Cinnabar red background to make it pop completely */
  background: #e63946;
  border: 2px solid #ff4d5a;
  
  /* Changed text to a crisp, warm white */
  color: #fffcea; 
  
  font-family: var(--body);
  font-weight: 900; /* Pushed to max thickness */
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  
  /* Subtle drop shadow under the text for depth */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  
  transform: rotate(-10deg);
  border-radius: 4px;
  /* Stronger outer shadow to lift the whole block off the image */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8), 0 0 16px rgba(230, 57, 70, 0.5);
  transition: transform 0.4s ease, background 0.4s, box-shadow 0.4s;
}

/* The hover interaction pulses a brighter red and lifts higher */
.cultivator-portrait:hover .portrait-seal {
  transform: scale(1.1) rotate(-5deg);
  background: #ff4d5a; 
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 77, 90, 0.8);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 232, 158, 0.35);
  color: var(--jade-soft);
  background: var(--jade-dim);
  transition: all 0.3s;
}
.chip:hover {
  background: var(--jade);
  color: var(--ink);
  box-shadow: 0 0 16px rgba(52, 232, 158, 0.6);
}

.panel-edu .edu-seal {
  position: absolute;
  right: -14px; bottom: -28px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 130px;
  color: rgba(52, 232, 158, 0.06);
  pointer-events: none;
}
.edu-school { font-size: 21px; font-weight: 700; letter-spacing: 0.06em; color: #eafff4; }
.edu-degree { color: var(--jade); font-weight: 600; margin-top: 4px; letter-spacing: 0.06em; }
.edu-date { color: var(--text-dim); font-size: 14px; margin: 6px 0 16px; letter-spacing: 0.1em; }
.edu-list { list-style: none; }
.edu-list li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--text-dim);
  line-height: 1.5;
}
.edu-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--jade);
  font-size: 11px;
  top: 10px;
}

.timeline {
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--jade), rgba(52, 232, 158, 0.1));
}
.t-item { position: relative; margin-bottom: 34px; }
.t-card {
  background: linear-gradient(160deg, rgba(10, 36, 24, 0.7), rgba(7, 26, 18, 0.5));
  border: 1px solid rgba(52, 232, 158, 0.2);
  border-radius: 12px;
  padding: 28px 30px;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.t-card:hover {
  border-color: rgba(52, 232, 158, 0.55);
  box-shadow: 0 8px 44px rgba(15, 155, 108, 0.25);
  transform: translateX(6px);
}
.t-date {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.t-card h3 {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #eafff4;
}
.t-org { color: var(--jade); font-weight: 600; letter-spacing: 0.08em; margin: 4px 0 14px; }
.t-card ul { list-style: none; }
.t-card li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 15.5px;
}
.t-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--jade-deep);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}
.proj-card {
  position: relative;
  background: linear-gradient(165deg, rgba(10, 36, 24, 0.75), rgba(7, 26, 18, 0.5));
  border: 1px solid rgba(52, 232, 158, 0.2);
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
}
.proj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 232, 158, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.proj-card:hover {
  transform: translateY(-7px);
  border-color: rgba(52, 232, 158, 0.6);
  box-shadow: 0 16px 48px rgba(15, 155, 108, 0.28);
}
.proj-card:hover::after { opacity: 1; }

.proj-glyph {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 34px;
  color: var(--jade);
  text-shadow: 0 0 18px rgba(52, 232, 158, 0.6);
  margin-bottom: 14px;
}
.proj-card h3 {
  font-family: var(--display);
  font-size: 17.5px;
  letter-spacing: 0.06em;
  color: #eafff4;
  margin-bottom: 8px;
}
.proj-stack {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.proj-card p { color: var(--text-dim); line-height: 1.7; font-size: 15px; }

/* beyond */
.beyond-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(160deg, rgba(10, 36, 24, 0.75), rgba(7, 26, 18, 0.5));
  border: 1px solid rgba(52, 232, 158, 0.25);
  border-radius: 16px;
  padding: 44px;
  overflow: hidden;
}
.beyond-art {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.taiji-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(52, 232, 158, 0.5);
  box-shadow: 0 0 36px rgba(52, 232, 158, 0.25), inset 0 0 36px rgba(52, 232, 158, 0.15);
  animation: ringSpin 26s linear infinite;
}
.taiji-ring::before, .taiji-ring::after {
  content: "✦";
  position: absolute;
  color: var(--jade);
  font-size: 15px;
  text-shadow: 0 0 10px var(--jade);
}
.taiji-ring::before { top: -9px; left: calc(50% - 7px); }
.taiji-ring::after { bottom: -9px; left: calc(50% - 7px); }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.taiji-cn {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 72px;
  background: linear-gradient(170deg, #eafff4, var(--jade));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(52, 232, 158, 0.5));
}
.beyond-text h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: #eafff4;
  margin-bottom: 14px;
}
.beyond-text p { color: var(--text-dim); line-height: 1.8; font-size: 16.5px; margin-bottom: 16px; }
.beyond-list { list-style: none; }
.beyond-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  color: var(--text-dim);
  line-height: 1.6;
}
.beyond-list li::before {
  content: "劍";
  font-family: var(--serif);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 12px;
  color: var(--jade);
}

/* contact */
.contact-panel { text-align: center; }
.contact-lede {
  color: var(--text-dim);
  font-size: 18px;
  letter-spacing: 0.08em;
  margin-bottom: 38px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 30px 18px;
  background: linear-gradient(160deg, rgba(10, 36, 24, 0.75), rgba(7, 26, 18, 0.5));
  border: 1px solid rgba(52, 232, 158, 0.22);
  border-radius: 14px;
  transition: all 0.35s;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 232, 158, 0.65);
  box-shadow: 0 14px 40px rgba(15, 155, 108, 0.3);
}
.cc-glyph {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 30px;
  color: var(--jade);
  text-shadow: 0 0 16px rgba(52, 232, 158, 0.6);
}
.cc-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cc-value { color: var(--mist); font-weight: 600; letter-spacing: 0.04em; }

/* footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 44px;
  border-top: 1px solid rgba(52, 232, 158, 0.15);
}
.footer-seal {
  font-family: var(--serif);
  font-weight: 900;
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 232, 158, 0.5);
  border-radius: 8px;
  color: var(--jade);
  font-size: 22px;
  box-shadow: 0 0 18px rgba(52, 232, 158, 0.3);
}
footer p {
  font-family: var(--serif);
  color: var(--text-dim);
  letter-spacing: 0.14em;
  font-size: 14px;
}
.footer-fine {
  margin-top: 10px;
  font-family: var(--body) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.2em !important;
  color: rgba(143, 184, 164, 0.5) !important;
}

/* target cursor */
#target-cursor {
  position: fixed;
  z-index: 200;
  width: 0; height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.tc-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--jade-soft);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--jade);
}
.tc-rot {
  position: absolute;
  inset: 0;
  animation: tcSpin 6s linear infinite;
}
#target-cursor.locked .tc-rot { animation: none; }
.tc-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--jade-soft);
  filter: drop-shadow(0 0 6px rgba(52, 232, 158, 0.8));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tc-tl { border-right: none; border-bottom: none; transform: translate(-24px, -24px); }
.tc-tr { border-left: none; border-bottom: none; transform: translate(10px, -24px); }
.tc-br { border-left: none; border-top: none; transform: translate(10px, 10px); }
.tc-bl { border-right: none; border-top: none; transform: translate(-24px, 10px); }
@keyframes tcSpin { to { transform: rotate(360deg); } }

/* glowing orb cursor */
#cursor-orb {
  position: fixed;
  z-index: 200;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #eafff4, var(--jade) 60%, transparent);
  box-shadow: 0 0 18px 4px rgba(52, 232, 158, 0.7);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s;
}
#cursor-orb.big { width: 26px; height: 26px; }

/* responsive */
@media (max-width: 880px) {
  .about-grid, .beyond-panel { grid-template-columns: 1fr; }
  .nav-links a i { display: none; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; letter-spacing: 0.1em; }
  .hero-glyph { display: none; }
}
@media (max-width: 560px) {
  .nav-brand { font-size: 12px; letter-spacing: 0.15em; }
  .section-cn { width: 52px; height: 52px; font-size: 32px; }
  #cursor-orb, #target-cursor { display: none; }
  #landing, #enter-btn { cursor: auto; }
}

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