/* ==========================================================
   ZHANG WEI PORTFOLIO · style.css
   Theme   : Editorial Kinetic · Light
   Fonts   : Cormorant Garamond (display) + DM Sans (body)
             Bebas Neue (labels) + DM Mono (code)
   Accent  : #FF5F00 (vivid orange, high saturation)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300&family=Noto+Serif+SC:wght@300;400;600;700&family=Bebas+Neue&family=DM+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --accent:        #FF5F00;
  --accent-warm:   #FF8C38;
  --accent-light:  #FFF2E8;
  --accent-glow:   rgba(255, 95, 0, 0.22);

  --bg:            #FAFAF7;
  --bg-2:          #F3F0EB;
  --bg-card:       #FFFFFF;
  --dark:          #141412;
  --mid:           #78766F;
  --light:         #C2BFB8;

  --font-display:  'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --font-sans:     'DM Sans', 'Noto Serif SC', sans-serif;
  --font-label:    'Bebas Neue', sans-serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  --pad-section:   140px;
  --container:     1160px;
  --r-xl:          32px;
  --r-lg:          24px;
  --r-md:          16px;
  --r-sm:          10px;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);

  --shadow-card:   0 4px 32px rgba(0,0,0,0.055);
  --shadow-hover:  0 20px 64px rgba(0,0,0,0.10);
  --shadow-float:  0 32px 80px rgba(0,0,0,0.14);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body.page-ready {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  overflow-y: hidden; /* Prevent jumping during intro */
}
body.page-ready {
  overflow-y: auto;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
strong { font-weight: 700; }

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section {
  padding: var(--pad-section) 0;
  position: relative;
  overflow: hidden;
}
.accent { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 8px 28px rgba(255,95,0,0.30);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255,95,0,0.40);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--dark);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  border: 1.5px solid rgba(20,20,18,0.14);
  transition: all 0.3s var(--ease-out);
}
.btn-ghost:hover {
  background: rgba(20,20,18,0.04);
  border-color: rgba(20,20,18,0.24);
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.80rem; }

/* ── Custom Cursor ──────────────────────────────────────── */
#cursor-follower {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
#cursor-follower.active {
  width: 46px; height: 46px;
  opacity: 0.18;
}

/* ==========================================================
   INTRO CURTAIN — Orange Immersive
   ========================================================== */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.ic-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.ic-curtain-panels {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}
.ic-panel {
  flex: 1;
  background: #FFF8F2;
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.76,0,0.24,1);
}
.ic-panel-l { transform-origin: left center; }
.ic-panel-r { transform-origin: right center; }
.intro-curtain.lifted .ic-panel-l { transform: translateX(-100%) skewY(-2deg); }
.intro-curtain.lifted .ic-panel-r { transform: translateX(100%) skewY(2deg); }
.ic-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}
.ic-name-svg {
  width: clamp(300px, 55vw, 600px);
  height: auto;
  overflow: visible;
}
.ic-svg-text {
  font-family: 'Noto Serif SC', serif;
  font-weight: 300;
  font-size: 88px;
  fill: none;
  stroke: rgba(255,120,20,0.7);
  stroke-width: 0.8;
  letter-spacing: 0.15em;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawName 2s 0.3s var(--ease-out) forwards;
}
@keyframes drawName { to { stroke-dashoffset: 0; } }
.ic-subtitle-new {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255,120,20,0.75);
  text-transform: uppercase;
  opacity: 0;
  animation: icFadeIn 0.6s 1.8s ease forwards;
}
@keyframes icFadeIn  { to { opacity: 1; } }
@keyframes icFadeUp  { to { opacity: 1; transform: translateY(0); } }

/* Corner brackets */
.ic-corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  animation: icCornerIn 0.5s 0.1s ease forwards;
}
.ic-corner-tl { top: 28px; left: 28px; border-width: 1.5px 0 0 1.5px; }
.ic-corner-tr { top: 28px; right: 28px; border-width: 1.5px 1.5px 0 0; }
.ic-corner-bl { bottom: 28px; left: 28px; border-width: 0 0 1.5px 1.5px; }
.ic-corner-br { bottom: 28px; right: 28px; border-width: 0 1.5px 1.5px 0; }
@keyframes icCornerIn { to { opacity: 1; } }

/* Lines */
.ic-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 170px;
  pointer-events: none;
}
.ic-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  width: 0;
  animation: icLineGrow 0.75s 0.35s var(--ease-out) forwards;
}
.ic-line-bottom { animation-delay: 0.48s; }
@keyframes icLineGrow { to { width: min(580px, 65vw); } }

/* Center text */
.ic-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.ic-monogram {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--dark);
  opacity: 0;
  transform: translateY(24px);
  animation: icFadeUp 0.75s 0.75s var(--ease-out) forwards;
}
.ic-sep {
  width: 36px; height: 1.5px;
  background: var(--accent);
  margin: 1.6rem auto;
  opacity: 0;
  animation: icFadeIn 0.5s 1.25s ease forwards;
}
.ic-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--dark);
  opacity: 0;
  transform: translateY(14px);
  animation: icFadeUp 0.65s 1.35s var(--ease-out) forwards;
}
.ic-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-top: 1rem;
  opacity: 0;
  animation: icFadeIn 0.5s 1.7s ease forwards;
  text-transform: uppercase;
}
@keyframes icFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes icFadeIn { to { opacity: 1; } }

/* ==========================================================
   ORBITAL SIDEBAR NAV
   ========================================================== */
.orbit-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.orbit-nav.visible { opacity: 1; }

.orbit-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Vertical line spine */
.orbit-track::before {
  content: '';
  position: absolute;
  top: 14px; bottom: 14px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--light) 15%,
    var(--light) 85%,
    transparent 100%);
  transform: translateX(-50%);
}

.orbit-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 0;
  cursor: pointer;
  z-index: 1;
}

.on-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--light);
  transition: all 0.35s var(--ease-out);
  position: relative;
  flex-shrink: 0;
}
.orbit-node.active .on-dot {
  width: 13px; height: 13px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
}
.orbit-node.active .on-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255,95,0,0.3);
}
.orbit-node:hover .on-dot:not(.orbit-node.active .on-dot) {
  background: var(--accent);
  transform: scale(1.4);
}

.on-label {
  position: absolute;
  right: 26px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--dark);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  background: var(--bg-card);
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  pointer-events: none;
  text-transform: uppercase;
}
.orbit-node:hover .on-label,
.orbit-node.active .on-label {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================
   HERO SECTION — Orange Shader
   ========================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #FFF2E6; /* Light orange base */
}
.hero-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  opacity: 0.9;
}
/* Ghost big English text — fused into background */
.hero-ghost-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 6vw;
  pointer-events: none;
  gap: 0;
}
.hgt-line {
  display: block;
  font-family: 'Bebas Neue', var(--font-label), sans-serif;
  line-height: 0.9;
  color: rgba(255,255,255,0.45); /* Extremely faint, blending into light bg */
  letter-spacing: 0.04em;
  user-select: none;
  mix-blend-mode: overlay;
}
.hgt-l1 { font-size: clamp(5rem, 13vw, 14rem); }
.hgt-l2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 11rem);
  color: rgba(255,255,255,0.4);
  margin-left: 3vw;
}
.hgt-l3 { font-size: clamp(4rem, 10vw, 11rem); color: rgba(255,255,255,0.45); }

/* Line-art girl */
.hero-lineart-wrap {
  position: absolute;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(220px, 28vw, 380px);
  opacity: 0;
  animation: hFadeUp 1.2s 0.4s var(--ease-out) forwards;
}
.hero-lineart {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(255,100,0,0.15));
}
.hero-lineart * {
  stroke: #FF6A00 !important;
}

/* Signature */
.hero-signature {
  position: absolute;
  bottom: clamp(3rem, 6vh, 5rem);
  right: 8vw;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: #FF5F00;
  z-index: 3;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: hFadeIn 1s 1.2s ease forwards;
}

/* Roles text — cyberpunk glitch */
.hero-roles-new {
  position: absolute;
  left: 6vw;
  bottom: clamp(6rem, 12vh, 10rem);
  z-index: 3;
}
.hero-roles-new .role-changing {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #1A0A00; /* Dark for contrast on light bg */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  opacity: 0;
  animation: hFadeUp 0.8s 0.6s var(--ease-out) forwards;
}
.hero-roles-new .role-changing::before {
  content: attr(data-text);
  position: absolute;
  left: 3px;
  top: 0;
  color: #FF3C00;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch1 3.5s infinite;
}
.hero-roles-new .role-changing::after {
  content: attr(data-text);
  position: absolute;
  left: -3px;
  top: 0;
  color: #FFB400;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch2 4.2s infinite;
}
@keyframes glitch1 {
  0%,90%,100% { transform: none; opacity: 0; }
  92% { transform: translateX(-4px) skewX(-3deg); opacity: 1; }
  95% { transform: translateX(4px) skewX(3deg); opacity: 1; }
  97% { transform: none; opacity: 0; }
}
@keyframes glitch2 {
  0%,85%,100% { transform: none; opacity: 0; }
  87% { transform: translateX(5px); opacity: 1; }
  91% { transform: translateX(-5px); opacity: 0; }
}

/* Scroll guide */
.hero-scroll-guide {
  position: absolute;
  bottom: clamp(2rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: #FF6A00;
  text-decoration: none;
  opacity: 0;
  animation: hFadeIn 0.8s 1.5s ease forwards;
  transition: opacity 0.3s ease;
}
.hero-scroll-guide:hover { opacity: 0.7; }
.hsg-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero-scroll-guide span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@keyframes hFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Background letterform watermark */
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-label);
  font-size: clamp(100px, 19vw, 260px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20,20,18,0.035);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.06em;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 2.5rem;
  padding-top: 5rem;
  position: relative;
  z-index: 1;
}

/* Hero Text Column — all animated in after curtain via body.page-ready */
.hero-pretag,
.hero-name,
.hero-roles,
.hero-desc,
.hero-cta,
.hero-photo-col,
.hero-strip,
.scroll-indicator {
  opacity: 0;
}

body.page-ready .hero-pretag {
  animation: hFadeUp 0.7s 0.05s var(--ease-out) forwards;
}
body.page-ready .hero-name {
  animation: hFadeUp 0.85s 0.22s var(--ease-out) forwards;
}
body.page-ready .hero-roles {
  animation: hFadeUp 0.7s 0.42s var(--ease-out) forwards;
}
body.page-ready .hero-desc {
  animation: hFadeUp 0.6s 0.55s var(--ease-out) forwards;
}
body.page-ready .hero-cta {
  animation: hFadeUp 0.6s 0.68s var(--ease-out) forwards;
}
body.page-ready .hero-photo-col {
  animation: hFadeUp 0.9s 0.28s var(--ease-out) forwards;
}
body.page-ready .hero-strip {
  animation: hFadeIn 0.6s 0.85s ease forwards;
}
body.page-ready .scroll-indicator {
  animation: hFadeIn 0.6s 1.1s ease forwards;
}
@keyframes hFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes hFadeIn { to { opacity: 1; } }

.hero-pretag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  transform: translateY(28px);
}
.pretag-line {
  display: block;
  width: 36px; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-pretag span:last-child {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--mid);
  text-transform: uppercase;
}

.hero-name {
  margin-bottom: 1.8rem;
  transform: translateY(36px);
}
.hero-name-cn {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 7.5vw, 8rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--dark);
}
.hero-name-en {
  display: block;
  font-family: var(--font-label);
  font-size: clamp(1.3rem, 2.5vw, 2.4rem);
  letter-spacing: 0.18em;
  color: var(--mid);
  margin-top: 0.6rem;
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  font-size: 1.08rem;
  font-weight: 500;
  transform: translateY(22px);
}
.role-static { color: var(--mid); }
.role-changing {
  color: var(--accent);
  font-weight: 700;
  position: relative;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.role-changing::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  transform: translateY(18px);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(16px);
}

/* Hero Photo Column */
.hero-photo-col {
  display: flex;
  justify-content: center;
  transform: translateY(30px);
}
.hero-photo-frame {
  position: relative;
  width: 320px;
  max-width: 100%;
}
.hpf-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,95,0,0.22);
  animation: ringPulse 5s ease-in-out infinite;
  pointer-events: none;
}
.hpf-ring-1 { inset: -22px; }
.hpf-ring-2 { inset: -50px; border-color: rgba(255,95,0,0.1); animation-delay: -2.5s; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.025); opacity: 0.6; }
}
.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-xl);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-float);
}
.hpf-badge {
  position: absolute;
  bottom: -14px; right: -14px;
  width: 68px; height: 68px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 28px rgba(255,95,0,0.45);
  border: 3px solid var(--bg);
}
.badge-num {
  font-family: var(--font-label);
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
}
.badge-txt {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.06em;
}

/* Tags strip (bottom of hero) */
.hero-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 1.6rem 2.5rem;
  border-top: 1px solid rgba(20,20,18,0.07);
  position: relative;
  z-index: 1;
}
.hero-strip span {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mid);
  text-transform: uppercase;
}
.hero-strip .sep { color: var(--light); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 5.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.si-bar {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: siDrop 2.4s ease-in-out infinite;
}
@keyframes siDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
.scroll-indicator span {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ==========================================================
   SECTION COMMON ELEMENTS
   ========================================================== */
.section-wm {
  position: absolute;
  top: -28px; left: -0.8rem;
  font-family: var(--font-label);
  font-size: clamp(110px, 17vw, 230px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20,20,18,0.028);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
  z-index: 0;
}

.section-hd {
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}
.section-hd.center { text-align: center; }

.section-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.section-desc {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.7;
}
.section-hd.center .section-desc { margin-left: auto; margin-right: auto; }

/* Labs tag (inline label) */
.labs-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ==========================================================
   ABOUT SECTION
   ========================================================== */
.about-section { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 6rem;
}

/* Photo stack */
.photo-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.ps-deco-rect {
  position: absolute;
  top: -18px; left: -18px;
  width: 100%; height: 100%;
  border: 1.5px solid rgba(255,95,0,0.2);
  border-radius: var(--r-xl);
  z-index: 0;
}
.ps-deco-circle {
  position: absolute;
  bottom: 28%; left: -28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  z-index: 0;
}
.ps-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  display: block;
}
.ps-secondary {
  position: absolute;
  width: 155px; height: 155px;
  object-fit: cover;
  border-radius: var(--r-lg);
  bottom: -22px; right: -22px;
  z-index: 3;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-hover);
  transform: rotate(4deg);
  transition: transform 0.4s var(--ease-out);
}
.ps-secondary:hover { transform: rotate(0deg) scale(1.06); }

/* About info */
.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}
.about-bio {
  font-size: 1.02rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.about-bio strong { color: var(--dark); }

.edu-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
}
.edu-icon { font-size: 1.4rem; flex-shrink: 0; }
.edu-card > div { display: flex; flex-direction: column; gap: 0.2rem; }
.edu-card strong { font-size: 0.95rem; color: var(--dark); font-weight: 700; }
.edu-card span { font-size: 0.78rem; color: var(--mid); }

/* Skill tag pills */
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.stag {
  padding: 0.42rem 1.05rem;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.stag-design { background: #FFF0E5; color: #D44F00; }
.stag-visual { background: #E8F3FF; color: #0062BB; }
.stag-3d     { background: #EEEEFF; color: #4040CC; }
.stag-ai     { background: #E6F9EF; color: #007A48; }
.stag-media  { background: #FFF5E0; color: #B56800; }
.stag-art    { background: #F3E8FF; color: #7000BB; }

/* Skills strip */
.skills-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(20,20,18,0.04);
}
.ss-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}
.ss-icon { font-size: 1.6rem; }
.ss-name { font-size: 0.73rem; font-weight: 600; color: var(--dark); line-height: 1.3; }
.ss-bar {
  width: 100%; height: 3px;
  background: rgba(20,20,18,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.ss-fill {
  height: 100%;
  width: var(--w, 80%);
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease-out);
}
.visible .ss-fill { transform: scaleX(1); }

/* ==========================================================
   PROJECT GRID (Internship)
   ========================================================== */
.internship-section { background: var(--bg-2); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.project-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  animation-delay: var(--delay, 0s);
  cursor: pointer;
  border: 1px solid rgba(20,20,18,0.04);
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.pc-video-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: #000;
  overflow: hidden;
}
.pc-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: blur(5px) brightness(0.9);
  transition: filter 0.8s var(--ease-out), opacity 0.5s ease, transform 0.8s var(--ease-out);
  transform: scale(1.02); /* Reduced scale since blur is lower */
}
.project-card:hover .pc-video-wrap video { 
  opacity: 1; 
  filter: blur(0) brightness(1);
  transform: scale(1);
}

.pc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,10,6,0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.4s var(--ease-out), background 0.4s ease;
  backdrop-filter: blur(2px);
}
.project-card:hover .pc-overlay,
.mf-video-wrap:hover .pc-overlay,
.ms-video-wrap:hover .pc-overlay { 
  opacity: 0; 
  pointer-events: none;
}

.pc-hint {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pc-play-btn {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.98);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding-left: 4px;
  animation: pcPlayPulse 2.5s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out);
}
@keyframes pcPlayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 10px 32px rgba(255,95,0,0.35); }
}
.pc-play-btn:hover {
  transform: scale(1.15);
  background: #fff;
}
.pc-num {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--font-label);
  font-size: 2.4rem;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}
.pc-info { padding: 1.5rem; }
.pc-info h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.45rem;
}
.pc-info p { font-size: 0.84rem; color: var(--mid); line-height: 1.6; margin-bottom: 0.85rem; }
.pc-tag {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

/* ==========================================================
   MEDIA SECTION
   ========================================================== */
.media-section { background: var(--bg); }

/* Feature: Feline Planet */
.media-feature {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  background: var(--bg-card);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(20,20,18,0.04);
}
.mf-video-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.mf-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  filter: blur(5px) brightness(0.9);
  transition: filter 0.8s var(--ease-out), opacity 0.5s ease, transform 0.8s var(--ease-out);
  transform: scale(1.02);
}
.mf-video-wrap:hover video {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: scale(1);
}
.mf-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  z-index: 2;
}
.mf-info {
  padding: 3.5rem 3.5rem 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mf-info h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.08;
  margin: 1rem 0 1.2rem;
  letter-spacing: -0.02em;
}
.mf-info p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.mf-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
}

/* Time Bank */
.media-second {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  background: var(--bg-card);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,20,18,0.04);
  position: relative;
  z-index: 1;
}
.ms-info {
  padding: 3.5rem 3rem 3.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ms-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
  margin: 1rem 0 1.2rem;
  letter-spacing: -0.02em;
}
.ms-info p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.ms-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ms-tags span {
  padding: 0.32rem 0.8rem;
  background: var(--bg-2);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mid);
}
.ms-video-wrap {
  position: relative;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.ms-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  filter: blur(5px) brightness(0.9);
  transition: filter 0.8s var(--ease-out), opacity 0.5s ease, transform 0.8s var(--ease-out);
  transform: scale(1.02);
}
.ms-video-wrap:hover video {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: scale(1);
}

/* ==========================================================
   CULTURAL DESIGN SECTION
   ========================================================== */
.cultural-section { background: var(--bg-2); }

.labs-feature {
  background: var(--bg-card);
  border-radius: 44px;
  padding: 4.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(20,20,18,0.04);
}
.labs-content {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}
.labs-text h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.labs-text p {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.82;
  margin-bottom: 2.5rem;
}

.if-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.interaction-interface { max-width: 300px; }
.slider-wrap { margin-top: 0.4rem; }
#magnet-range {
  -webkit-appearance: none;
  width: 100%; height: 2px;
  background: rgba(20,20,18,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#magnet-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  background: var(--dark);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}
#magnet-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
}

.magnet-stage {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.base-image { width: 90%; height: auto; z-index: 1; pointer-events: none; }
.path-container { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.moving-piece {
  position: absolute;
  width: 65px;
  top: 72%; left: 22%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
  transition: all 0.12s cubic-bezier(0.23,1,0.32,1);
}

/* Cultural secondary grid */
.cultural-sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.cultural-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,20,18,0.04);
  animation-delay: var(--delay, 0s);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.cultural-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.cc-visual {
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin-bottom: 1.5rem;
}
.cc-visual img { max-width: 240px; max-height: 160px; object-fit: contain; }
.cc-info h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.4rem; }
.cc-info p { font-size: 0.84rem; color: var(--mid); }

/* Logo Evolution */
.logo-evolution {
  background: var(--bg-card);
  border-radius: 44px;
  padding: 4.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,20,18,0.04);
  position: relative;
  z-index: 1;
}
.le-header { text-align: center; margin-bottom: 3.5rem; }
.le-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark);
}
.le-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.le-arrow {
  font-size: 1.4rem;
  color: var(--light);
  align-self: center;
  padding: 0 0.5rem;
  margin-top: -3rem;
}
.le-item { display: flex; flex-direction: column; gap: 1.4rem; }
.le-visual {
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1.1;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.le-item:hover .le-visual { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.le-highlight .le-visual { background: var(--bg-card); border: 1px solid rgba(20,20,18,0.05); }
.le-visual img { max-width: 210px; max-height: 180px; object-fit: contain; }
.le-step {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
}
.le-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.le-info p  { font-size: 0.78rem; color: var(--mid); line-height: 1.6; }

/* ==========================================================
   VIBE CODING SECTION
   ========================================================== */
.coding-section { background: var(--bg); }

.vibe-feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  background: var(--bg-card);
  border-radius: 44px;
  padding: 5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,20,18,0.04);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.vibe-text h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw, 2.9rem);
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 1rem 0 1.4rem;
}
.vibe-text > p {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.82;
  margin-bottom: 2.5rem;
}
.vibe-text > p strong { color: var(--dark); }

.vibe-stats {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}
.vs-sep { width: 1px; height: 44px; background: rgba(20,20,18,0.09); }
.vs-num {
  font-family: var(--font-label);
  font-size: 2.8rem;
  color: var(--dark);
  line-height: 1;
}
.vs-num span { font-family: var(--font-sans); font-size: 1rem; }
.vs-label { font-size: 0.72rem; color: var(--mid); font-weight: 600; margin-top: 0.3rem; letter-spacing: 0.04em; }

/* Code terminal */
.code-terminal {
  background: #16181C;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}
.ct-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.95rem 1.4rem;
  background: #0F1114;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ct-dots { display: flex; gap: 6px; }
.ct-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.ct-dot.r { background: #FF5F57; }
.ct-dot.y { background: #FFBD2E; }
.ct-dot.g { background: #28C841; }
.ct-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.ct-body { padding: 1.5rem; min-height: 180px; }
.ct-body pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9BA8BE;
  line-height: 1.7;
  white-space: pre-wrap;
}
.ct-body code .code-line { display: block; }

/* Vibe image gallery */
.vibe-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}
.vg-main, .vg-sub {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
}
.vg-main { aspect-ratio: 4/3; }
.vg-sub  { aspect-ratio: 1; }
.vg-main img, .vg-sub img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ──────────────────────────────────────────────────────────
   PET MONITOR — Three.js Concept Machine
   ────────────────────────────────────────────────────────── */
.pet-monitor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--dark);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  position: relative;
  z-index: 1;
  min-height: 520px;
}

/* 3D canvas side */
.pm-3d-wrap {
  position: relative;
  background: linear-gradient(135deg, #0E0D0B 0%, #1A1714 50%, #0E0D0B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}
.pm-3d-wrap:active { cursor: grabbing; }

#pm-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Corner frame brackets (HUD aesthetic) */
.pm-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: rgba(255,95,0,0.45);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.pm-c-tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.pm-c-tr { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.pm-c-bl { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.pm-c-br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }

/* Scan ring pulsing */
.pm-scan-ring {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,95,0,0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: scanPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.pm-scan-ring::before {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(255,95,0,0.06);
  animation: scanPulse 3s ease-in-out infinite 1s;
}
@keyframes scanPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 0.2; }
}

/* HUD annotation labels */
.pm-label-cam,
.pm-label-mic,
.pm-label-screen {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,95,0,0.5);
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
}
.pm-label-cam    { top: 22%; left: 10%; }
.pm-label-mic    { top: 52%; right: 8%; }
.pm-label-screen { bottom: 28%; left: 8%; }

/* Info side */
.pm-info {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1A1714;
}
.pm-badge {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: block;
}
.pm-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  color: #F0EDE8;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.pm-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

/* Spec grid */
.pm-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.pm-spec {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.pm-spec:hover { background: rgba(255,95,0,0.08); border-color: rgba(255,95,0,0.2); }
.ps-val {
  font-family: var(--font-label);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.05em;
}
.ps-key {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

.pm-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pm-tags span {
  padding: 0.38rem 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.pm-tags span:hover { background: rgba(255,95,0,0.15); border-color: rgba(255,95,0,0.35); color: var(--accent); }

/* ==========================================================
   CONTACT SECTION — Paper Plane
   ========================================================== */
.contact-section {
  background: #FAFAF7; /* Warm white */
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.contact-inner {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr;
  position: relative;
}
/* Left: plane */
.contact-left {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.plane-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.plane-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-plane-img {
  width: 75%;
  height: auto;
  max-width: 600px;
  filter: drop-shadow(0 20px 50px rgba(255,95,0,0.15));
  animation: planeFloat 6s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}
@keyframes planeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-2deg); }
}

/* Right: info */
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem 4rem 2rem;
  position: relative;
  z-index: 2;
}

/* Chinese overlapping lines title */
.cr-chinese-title {
  position: relative;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #FF5F00;
}
.c-title-main {
  position: relative;
  z-index: 3;
}
.c-title-shadow {
  position: absolute;
  top: -10px;
  left: 10px;
  z-index: 2;
  -webkit-text-stroke: 1.5px rgba(255,95,0,0.3);
  color: transparent;
}
.c-title-shadow2 {
  position: absolute;
  top: -20px;
  left: 20px;
  z-index: 1;
  -webkit-text-stroke: 1.5px rgba(255,95,0,0.15);
  color: transparent;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #111;
}
.contact-amazing {
  font-style: italic;
  color: #FF5F00;
  font-weight: 700;
}
.contact-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 420px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.cl-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(0,0,0,0.06);
  color: #111;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  background: #FFF;
}
.cl-item:hover {
  border-color: #FF5F00;
  color: #FF5F00;
  box-shadow: 0 8px 24px rgba(255,95,0,0.08);
  transform: translateX(4px);
}
.cl-item svg:first-child { color: #FF5F00; flex-shrink: 0; }
.cl-item span { flex: 1; }
.cl-arrow { opacity: 0; transition: opacity 0.2s ease; }
.cl-item:hover .cl-arrow { opacity: 1; }
.cl-location { cursor: default; }
.cl-location:hover { transform: none; box-shadow: none; border-color: rgba(0,0,0,0.06); color: #111; }

/* Breathing CTA circle */
.contact-cta-circle {
  position: absolute;
  right: 5rem;
  bottom: 4rem;
  z-index: 3;
}
.cta-circle-btn {
  position: relative;
  width: 160px; height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.cta-circle-ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #FF5F00;
  animation: ctaBreathe 3s ease-in-out infinite;
}
@keyframes ctaBreathe {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,95,0,0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(255,95,0,0); }
}
.cta-circle-inner {
  position: relative;
  z-index: 2;
  color: #FAFAF7; /* warm white hollow arrow */
}
.cta-circle-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: spinSlow 12s linear infinite;
}
.cta-text-svg { width: 100%; height: 100%; overflow: visible; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.biz-card-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1400px;
  padding: 2rem 0 4rem;
}
.biz-card {
  width: 500px;
  max-width: 90vw;
  height: 290px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s var(--ease-out);
  cursor: pointer;
}
.biz-card:hover { transform: rotateY(180deg); }

.biz-card-front, .biz-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 2.5rem;
  box-shadow: var(--shadow-float);
}

/* Front: dark premium card */
.biz-card-front {
  background: var(--dark);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(255,95,0,0.18) 0, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(255,95,0,0.1) 0, transparent 55%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bcf-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bcf-logo {
  font-family: var(--font-label);
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
}
.bcf-school { font-size: 0.7rem; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; text-align: right; margin-top: 0.2rem; }
.bcf-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
}
.bcf-name small { font-size: 0.88rem; opacity: 0.45; font-family: var(--font-sans); margin-left: 0.5rem; }
.bcf-role { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
.bcf-hint { font-size: 0.68rem; color: rgba(255,255,255,0.28); font-style: italic; align-self: flex-end; }

/* Back: clean white card */
.biz-card-back {
  background: var(--bg-card);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(20,20,18,0.06);
}
.bcb-header { display: flex; align-items: center; gap: 1rem; }
.bcb-logo {
  width: 46px; height: 46px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}
.bcb-header h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.bcb-header h3 small { font-size: 0.8rem; color: var(--mid); font-family: var(--font-sans); font-weight: 400; margin-left: 0.4rem; }
.bcb-header p { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.bcb-contacts { display: flex; flex-direction: column; gap: 0.65rem; }
.bcb-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.84rem;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s ease;
}
.bcb-item:hover { color: var(--accent); }
.bcb-item svg { color: var(--accent); flex-shrink: 0; }

/* ==========================================================
   FOOTER
   ========================================================== */
/* ==========================================================
   FOOTER — Editorial Redesign
   ========================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  position: relative;
  overflow: hidden;
}
/* Dot grid on footer too */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,95,0,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Marquee band */
.footer-marquee-wrap {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 0.9rem 0;
  white-space: nowrap;
  position: relative;
}
.footer-marquee {
  display: inline-block;
  animation: marqueeScroll 18s linear infinite;
  white-space: nowrap;
}
.footer-marquee span {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  padding: 0 1.5rem;
}
.footer-marquee .fm-dot { color: var(--accent); padding: 0 0.5rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Footer main grid */
.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
}
.footer-left { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-monogram {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-sub-cn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}
.footer-center {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
.footer-link {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
  text-transform: uppercase;
}
.footer-link:hover { color: var(--accent); }
.footer-right { text-align: right; }
.footer-school {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.3rem;
}
.footer-major { font-size: 0.78rem; color: rgba(255,255,255,0.28); letter-spacing: 0.06em; }
.footer-bottom {
  text-align: center;
  padding: 1.5rem 2.5rem 2.5rem;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
}
.footer-sep { color: rgba(255,95,0,0.5); }

/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .vibe-feature { grid-template-columns: 1fr; padding: 3rem; gap: 3rem; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .skills-strip { grid-template-columns: repeat(3, 1fr); }
  .pet-monitor { grid-template-columns: 1fr; }
  .pm-3d-wrap { min-height: 380px; }
}

@media (max-width: 900px) {
  :root { --pad-section: 90px; }
  .orbit-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 8rem; }
  .hero-photo-col { display: none; }
  .hero-pretag { justify-content: center; }
  .hero-cta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .photo-stack { max-width: 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .media-feature,
  .media-second { grid-template-columns: 1fr; border-radius: var(--r-xl); }
  .mf-info, .ms-info { padding: 2rem; }
  .labs-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .labs-feature { padding: 2.5rem 2rem; border-radius: var(--r-xl); }
  .le-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .le-arrow { display: none; }
  .cultural-sec-grid { grid-template-columns: 1fr; }
  .logo-evolution { padding: 2.5rem 2rem; border-radius: var(--r-xl); }
  .vibe-feature { border-radius: var(--r-xl); }
  .pet-monitor { border-radius: var(--r-xl); }
  .pm-info { padding: 2.5rem 2rem; }
  .pm-spec-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer-right { text-align: center; }
}

@media (max-width: 640px) {
  :root { --pad-section: 72px; }
  .hero-name-cn { font-size: 3.2rem; }
  .section-title { font-size: 2.2rem; }
  .skills-strip { grid-template-columns: repeat(2, 1fr); padding: 1.8rem 1.4rem; }
  .vibe-gallery { grid-template-columns: 1fr; }
  .vibe-feature { padding: 2rem 1.5rem; }
  .biz-card { height: 310px; }
  .pm-spec-grid { grid-template-columns: 1fr 1fr; }
  .pm-3d-wrap { min-height: 300px; }
  .hero-strip { gap: 1rem; padding: 1.2rem 1.5rem; }
}
