﻿/* ============================================
   Maggie Portfolio — Main Stylesheet
   Design: Artemis structure + Cohesion aesthetics
   Colors: #FF6B35 / #7B5EA7 / #4A9EFF
   ============================================ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px;overflow-x:hidden}
body{
  font-family:'Inter','Noto Serif SC',system-ui,-apple-system,sans-serif;
  background:#F8F7F4;color:#1A1A1A;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;cursor:none
}
::selection{background:#FF6B35;color:#fff}
a{text-decoration:none;color:inherit;cursor:none}
img{display:block;max-width:100%;height:auto}
.cursor-dot{
  position:fixed;width:8px;height:8px;border-radius:50%;
  background:#C8C8C8;
  pointer-events:none;z-index:9999;mix-blend-mode:exclusion;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1),width .3s,height .3s;
  will-change:transform;transform:translate(-50%,-50%)
}
.cursor-dot.hovering{width:48px;height:48px;opacity:.5;background:#B0B0B0}
h1,h2,h3{font-weight:400;letter-spacing:-.02em}
.display-en{font-family:'Playfair Display',Georgia,serif;letter-spacing:-.03em}
.display-zh{font-family:'Noto Serif SC',Georgia,serif}
.body-en{font-family:'Inter',sans-serif}
.container{max-width:1200px;margin:0 auto;padding:0 24px;width:100%}
.section-header{text-align:center;margin-bottom:80px}
.section-header .label{
  display:inline-block;font-size:12px;font-weight:500;letter-spacing:3px;
  text-transform:uppercase;color:#6B6B6B;margin-bottom:12px;
  background:rgba(107,94,167,.08);padding:6px 18px;border-radius:100px
}
.section-header h2{
  font-size:clamp(32px,5vw,56px);font-weight:300;margin-bottom:16px
}
.section-header h2 em{font-style:normal;background:#C8C8C8;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.section-header p{color:#6B6B6B;font-size:16px;max-width:560px;margin:0 auto}
.navbar{
  position:fixed;top:0;left:0;width:100%;z-index:1000;
  padding:20px 40px;display:flex;justify-content:space-between;align-items:center;
  transition:all .4s cubic-bezier(.25,.46,.45,.94);mix-blend-mode:difference
}
.navbar.scrolled{background:rgba(248,247,244,.92);backdrop-filter:blur(20px);mix-blend-mode:normal;padding:14px 40px;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.navbar .logo{font-size:18px;font-weight:500;color:#fff}
.navbar.scrolled .logo{color:#1A1A1A}
.nav-links{display:flex;gap:32px;list-style:none;font-size:13px;font-weight:400;letter-spacing:1px;text-transform:uppercase}
.nav-links a{color:rgba(255,255,255,.8);transition:color .3s;position:relative}
.navbar.scrolled .nav-links a{color:#6B6B6B}
.nav-links a::after{
  content:'';position:absolute;bottom:-4px;left:0;width:0;height:1px;
  background:linear-gradient(90deg,#FF6B35,#7B5EA7,#4A9EFF);
  transition:width .4s cubic-bezier(.25,.46,.45,.94)
}
.nav-links a:hover::after{width:100%}
.navbar.scrolled .nav-links a:hover{color:#1A1A1A}
.nav-links a:hover{color:#fff}
.nav-toggle{display:none;background:none;border:none;color:#fff;font-size:24px;cursor:none}
.navbar.scrolled .nav-toggle{color:#1A1A1A}
.hero{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;background:#F8F7F4;padding:120px 24px 80px
}
.hero-content{text-align:center;position:relative;z-index:2}
.hero-content h1{
  font-size:clamp(48px,8vw,96px);font-weight:300;letter-spacing:-.04em;
  margin-bottom:8px;color:#1A1A1A
}
.hero-content .subtitle{
  font-size:clamp(16px,2.5vw,28px);font-weight:300;color:#6B6B6B;
  margin-bottom:16px;letter-spacing:-.01em
}
.hero-content .meta{
  font-size:14px;color:#6B6B6B;letter-spacing:2px;font-weight:300
}
.hero-images{position:absolute;inset:0;pointer-events:none;z-index:1}
.hero-img{
  position:absolute;width:clamp(120px,15vw,200px);border-radius:8px;overflow:hidden;
  opacity:.6;box-shadow:0 20px 60px rgba(0,0,0,.06);aspect-ratio:3/4;
  background:#E8E6E1;transition:opacity .6s
}
.hero-img:nth-child(1){top:8%;left:6%;rotate:-8deg}
.hero-img:nth-child(2){top:15%;right:8%;rotate:5deg}
.hero-img:nth-child(3){bottom:20%;left:12%;rotate:4deg}
.hero-img:nth-child(4){bottom:12%;right:6%;rotate:-6deg}
.hero-img:nth-child(5){top:35%;left:3%;rotate:10deg}
.hero-img:nth-child(6){top:40%;right:3%;rotate:-4deg}
.hero-img .placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:11px;color:#B0AFA8;letter-spacing:1px;min-height:300px
}
.hero-scroll-indicator{
  position:absolute;bottom:40px;left:50%;transform:translateX(-50%);z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  font-size:11px;letter-spacing:2px;color:#6B6B6B;text-transform:uppercase
}
.hero-scroll-indicator .line{
  width:1px;height:40px;background:#6B6B6B;
  animation:scrollPulse 2s ease-in-out infinite
}
@keyframes scrollPulse{0%,100%{opacity:1;transform:scaleY(1)}50%{opacity:.3;transform:scaleY(.6)}}
.about{padding:120px 0;background:#fff}
.about-grid{display:grid;grid-template-columns:1fr 1.6fr;gap:80px;align-items:center}
.about-image{display:flex;align-items:center;justify-content:center}
.about-image .portrait{
  aspect-ratio:3/4;border-radius:16px;overflow:hidden;
  background:#E8E6E1;width:100%;max-width:540px
}
.about-image .portrait .placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:13px;color:#B0AFA8;letter-spacing:1px;min-height:450px
}
.about-content .tagline{
  font-size:18px;line-height:1.7;color:#4A4A4A;margin-bottom:48px;font-weight:300;
  border-left:3px solid #7B5EA7;padding-left:24px
}
.about-name{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(32px,5vw,48px);
  font-weight:300;
  margin-bottom:24px;
  color:#1A1A1A;
  letter-spacing:-.02em
}
.edu-timeline{margin-bottom:40px}
.edu-timeline h3{font-size:13px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:#6B6B6B;margin-bottom:20px}
.edu-item{
  position:relative;padding-left:24px;padding-bottom:24px;
  border-left:1px solid #E8E6E1
}
.edu-item:last-child{border-left:1px solid transparent;padding-bottom:0}
.edu-item::before{
  content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;
  border-radius:50%;background:linear-gradient(135deg,#FF6B35,#7B5EA7)
}
.edu-item .school{font-size:15px;font-weight:500;margin-bottom:2px}
.edu-item .detail{font-size:13px;color:#6B6B6B}
.research-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:40px}
.research-card{
  background:#F8F7F4;border-radius:12px;padding:20px;
  transition:transform .4s cubic-bezier(.25,.46,.45,.94),box-shadow .4s
}
.research-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,.06)}
.research-card .tag{
  display:inline-block;font-size:10px;font-weight:500;letter-spacing:1px;
  padding:4px 10px;border-radius:100px;margin-bottom:8px;
  background:linear-gradient(135deg,rgba(255,107,53,.1),rgba(123,94,167,.1));
  color:#7B5EA7
}
.research-card p{font-size:14px;line-height:1.5;color:#4A4A4A}
.skills-section{margin-bottom:36px}
.skills-section h3{font-size:13px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:#6B6B6B;margin-bottom:16px}
.skills-tags{display:flex;flex-wrap:wrap;gap:10px}
.skill-tag{
  display:inline-block;font-size:13px;padding:8px 18px;border-radius:100px;
  background:#F8F7F4;color:#4A4A4A;border:1px solid #E8E6E1;
  transition:all .4s cubic-bezier(.25,.46,.45,.94)
}
.skill-tag:hover{
  background:#C8C8C8;
  color:#fff;border-color:transparent;transform:translateY(-2px)
}
.tools-section{margin-bottom:0}
.tools-section h3{font-size:13px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:#6B6B6B;margin-bottom:16px}
.tools-list{display:flex;flex-wrap:wrap;gap:16px}
.tool-tag{
  display:inline-block;font-size:13px;padding:8px 18px;border-radius:100px;
  background:#F8F7F4;color:#6B6B6B;border:1px solid #E8E6E1;
  transition:all .4s cubic-bezier(.25,.46,.45,.94)
}
.tool-tag:hover{
  background:#C8C8C8;
  color:#fff;border-color:transparent;transform:translateY(-2px)
}

.works{padding:120px 0;background:#F8F7F4}
.works-category{margin-bottom:100px}.works-category:last-child{margin-bottom:0}
.works-category .cat-label{
  display:inline-block;font-size:12px;font-weight:500;letter-spacing:3px;
  text-transform:uppercase;color:#6B6B6B;margin-bottom:32px;
  background:rgba(107,94,167,.08);padding:6px 20px;border-radius:100px
}
.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:32px}.project-grid .full-width{grid-column:1/-1}
.project-card{
  cursor:none;display:flex;flex-direction:column;gap:16px;
  transition:transform .5s cubic-bezier(.25,.46,.45,.94)
}
.project-card:hover{transform:translateY(-4px)}
.project-card .card-image{
  position:relative;border-radius:12px;overflow:hidden;
  background:#E8E6E1;aspect-ratio:4/3;
  transition:box-shadow .5s cubic-bezier(.25,.46,.45,.94)
}
.project-card:hover .card-image{box-shadow:0 20px 48px rgba(0,0,0,.08)}
.project-card .card-image .card-img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.25,.46,.45,.94)}
.project-card:hover .card-image .card-img{transform:scale(1.04)}
.project-card .card-image .card-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:12px;color:#B0AFA8;letter-spacing:1px;min-height:200px
}
.project-card .card-image .card-tag{
  position:absolute;top:16px;left:16px;z-index:2;
  font-size:10px;font-weight:500;letter-spacing:1px;text-transform:uppercase;
  padding:4px 12px;border-radius:100px;
  background:rgba(255,255,255,.85);color:#6B6B6B;
  backdrop-filter:blur(8px);transition:all .4s
}
.project-card .card-meta{display:flex;flex-direction:column;gap:4px;padding:0 4px}
.project-card .card-meta .card-title{
  font-size:clamp(16px,1.4vw,20px);font-weight:400;color:#1A1A1A;
  letter-spacing:-.02em;transition:color .4s
}
.project-card .card-meta .card-sub{font-size:13px;color:#6B6B6B;font-weight:300}
.featured-card{
  cursor:none;display:flex;flex-direction:column;gap:16px
}
.featured-card .card-image{
  position:relative;border-radius:16px;overflow:hidden;
  background:#E8E6E1;aspect-ratio:2/1;
  transition:box-shadow .5s cubic-bezier(.25,.46,.45,.94)
}
.featured-card:hover .card-image{box-shadow:0 24px 56px rgba(0,0,0,.08)}
.featured-card .card-image .card-img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.25,.46,.45,.94)}
.featured-card:hover .card-image .card-img{transform:scale(1.04)}
.featured-card .card-image .card-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:13px;color:#B0AFA8;letter-spacing:1px;min-height:200px
}
.featured-card .card-image .featured-badge{
  position:absolute;top:20px;left:20px;z-index:2;
  font-size:10px;font-weight:500;letter-spacing:2px;text-transform:uppercase;
  padding:6px 16px;border-radius:100px;
  background:rgba(255,255,255,.85);color:#7B5EA7;backdrop-filter:blur(8px)
}
.featured-card .card-meta{display:flex;flex-direction:column;gap:4px;padding:0 4px}
.featured-card .card-meta .card-title{
  font-size:clamp(16px,1.4vw,20px);font-weight:400;color:#1A1A1A;
  letter-spacing:-.02em
}
.featured-card .card-meta .card-sub{font-size:13px;color:#6B6B6B;font-weight:300}
.product-grid{overflow:hidden;width:100%}
.product-card{
  cursor:none;display:flex;flex-direction:column;gap:16px
}
.product-card .card-image{
  position:relative;border-radius:12px;overflow:hidden;
  background:#E8E6E1;aspect-ratio:4/3;
  transition:box-shadow .4s cubic-bezier(.25,.46,.45,.94)
}
.product-card:hover .card-image{box-shadow:0 12px 32px rgba(0,0,0,.06)}
.product-card .card-image .card-img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.25,.46,.45,.94)}
.product-card:hover .card-image .card-img{transform:scale(1.04)}
.product-card .card-image .card-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:12px;color:#B0AFA8;letter-spacing:1px;min-height:120px
}
.product-card .card-meta{display:flex;flex-direction:column;gap:2px;padding:0 2px}
.product-card .card-meta .product-name{font-size:13px;font-weight:500;color:#1A1A1A}
.product-card .card-meta .product-award{
  font-size:11px;color:#7B5EA7;font-weight:400;
  display:inline-block;width:-moz-fit-content;width:fit-content
}
.contact{padding:120px 0;background:#fff}
.contact-wrap{max-width:700px;margin:0 auto;text-align:center}
.contact-wrap h2{font-size:clamp(36px,5vw,64px);font-weight:300;margin-bottom:12px}
.contact-wrap .contact-sub{color:#6B6B6B;font-size:16px;margin-bottom:48px}
.contact-links{display:flex;flex-direction:column;gap:16px;align-items:center;margin-bottom:40px}
.contact-item{
  display:flex;align-items:center;gap:12px;font-size:15px;color:#4A4A4A;
  padding:12px 28px;border-radius:12px;border:1px solid #E8E6E1;
  transition:all .4s cubic-bezier(.25,.46,.45,.94);width:100%;max-width:420px;
  justify-content:center
}
.contact-item:hover{
  border-color:#7B5EA7;background:rgba(123,94,167,.04);
  transform:translateY(-2px)
}
.contact-item .icon{width:20px;height:20px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.contact-item.email .icon{background:rgba(74,158,255,.12);color:#4A9EFF}
.contact-item.xiaohongshu .icon{background:rgba(255,107,53,.12);color:#FF6B35}
.resume-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:#C8C8C8;color:#fff;
  padding:16px 40px;border-radius:100px;font-size:15px;font-weight:500;
  border:none;cursor:none;
  transition:transform .4s cubic-bezier(.25,.46,.45,.94),box-shadow .4s
}
.resume-btn:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(255,107,53,.25)}
.contact-wrap{max-width:700px;margin:0 auto;text-align:center}
.contact-wrap h2{font-size:clamp(36px,5vw,64px);font-weight:300;margin-bottom:12px}
.contact-wrap .contact-sub{color:#6B6B6B;font-size:16px;margin-bottom:48px}
.contact-links{display:flex;flex-direction:column;gap:16px;align-items:center;margin-bottom:40px}
.contact-item{
  display:flex;align-items:center;gap:12px;font-size:15px;color:#4A4A4A;
  padding:12px 28px;border-radius:12px;border:1px solid #E8E6E1;
  transition:all .4s cubic-bezier(.25,.46,.45,.94);width:100%;max-width:420px;
  justify-content:center
}
.contact-item:hover{
  border-color:#7B5EA7;background:rgba(123,94,167,.04);
  transform:translateY(-2px)
}
.contact-item .icon{width:20px;height:20px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.contact-item.email .icon{background:rgba(74,158,255,.12);color:#4A9EFF}
.contact-item.xiaohongshu .icon{background:rgba(255,107,53,.12);color:#FF6B35}
.resume-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:#C8C8C8;color:#fff;
  padding:16px 40px;border-radius:100px;font-size:15px;font-weight:500;
  border:none;cursor:none;
  transition:transform .4s cubic-bezier(.25,.46,.45,.94),box-shadow .4s
}
.resume-btn:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(255,107,53,.25)}

.footer{padding:24px;text-align:center;font-size:12px;color:#B0AFA8;background:#F8F7F4}
.page-transition{
  position:fixed;inset:0;z-index:9998;pointer-events:none;
  background:#F8F7F4;opacity:0;
  transition:opacity .5s cubic-bezier(.25,.46,.45,.94)
}
.page-transition.active{opacity:1;pointer-events:all}
.detail-hero{
  position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;
  background:#E8E6E1;display:flex;align-items:center;justify-content:center
}
.detail-hero .placeholder{font-size:14px;color:#B0AFA8;letter-spacing:1px}
.detail-hero .hero-img-el{width:100%;height:100%;object-fit:cover}
.detail-content{
  max-width:900px;margin:0 auto;padding:80px 24px
}
.detail-content h2{
  font-size:28px;font-weight:400;margin-bottom:24px;padding-top:40px
}
.detail-content p{font-size:15px;line-height:1.8;color:#4A4A4A;margin-bottom:24px}
.detail-content .note{
  font-size:13px;color:#6B6B6B;
  background:#F8F7F4;border-radius:12px;padding:20px 24px;margin-bottom:24px
}
.detail-grid{display:grid;gap:24px;margin:40px 0}
.detail-grid.cols2{grid-template-columns:repeat(2,1fr)}
.detail-grid.cols3{grid-template-columns:repeat(3,1fr)}
.detail-grid .grid-item{
  border-radius:12px;overflow:hidden;background:#E8E6E1;
  aspect-ratio:3/4;display:flex;align-items:center;justify-content:center;
  position:relative
}
.detail-grid .grid-item.wide{aspect-ratio:16/9}
.detail-grid .grid-item .placeholder{font-size:11px;color:#B0AFA8;letter-spacing:1px}
.detail-grid .grid-item img{width:100%;height:100%;object-fit:cover;min-width:0;min-height:0}
.detail-grid .grid-label{
  position:absolute;bottom:12px;left:12px;
  font-size:10px;color:rgba(255,255,255,.7);letter-spacing:1px;
  background:rgba(0,0,0,.4);padding:4px 12px;border-radius:100px
}
.detail-back{
  position:fixed;top:24px;left:24px;z-index:100;
  width:44px;height:44px;border-radius:50%;
  background:rgba(248,247,244,.9);backdrop-filter:blur(12px);
  border:1px solid rgba(0,0,0,.06);cursor:none;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;color:#1A1A1A;
  transition:transform .3s cubic-bezier(.25,.46,.45,.94),box-shadow .3s
}
.detail-back:hover{transform:scale(1.1);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.xhs-card{
  display:flex;align-items:center;gap:16px;
  padding:20px 28px;border-radius:14px;
  border:1px solid #E8E6E1;background:#fff;
  cursor:none;transition:all .4s cubic-bezier(.25,.46,.45,.94);
  margin:24px 0;max-width:420px
}
.xhs-card:hover{
  border-color:#FF6B35;transform:translateY(-3px);
  box-shadow:0 12px 32px rgba(255,107,53,.1)
}
.xhs-card .xhs-icon{
  width:40px;height:40px;border-radius:10px;
  background:linear-gradient(135deg,#FF6B35,#FF4D4D);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;color:#fff;flex-shrink:0
}
.xhs-card .xhs-info{flex:1}
.xhs-card .xhs-info .title{font-size:14px;font-weight:500;margin-bottom:2px}
.xhs-card .xhs-info .desc{font-size:12px;color:#6B6B6B}
.xhs-card .xhs-info .stats{font-size:12px;color:#FF6B35;font-weight:500;margin-top:4px}
.video-placeholder{
  aspect-ratio:21/9;background:#1A1A1A;border-radius:16px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;position:relative;cursor:none
}
.video-placeholder .play-icon{
  width:64px;height:64px;border-radius:50%;
  background:rgba(255,255,255,.15);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  font-size:24px;color:#fff;
  transition:transform .4s,background .4s
}
.video-placeholder:hover .play-icon{transform:scale(1.1);background:rgba(255,255,255,.25)}
.video-placeholder .placeholder-text{
  position:absolute;bottom:16px;left:50%;transform:translateX(-50%);
  font-size:11px;color:rgba(255,255,255,.4);letter-spacing:1px
}
.tech-path{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:16px 0;margin-bottom:24px}
.tech-step{
  display:inline-block;font-size:12px;padding:6px 16px;
  border-radius:100px;background:#F8F7F4;color:#6B6B6B;border:1px solid #E8E6E1
}
.tech-arrow{font-size:12px;color:#D0CFC8}
.detail-header-text{padding:80px 24px 0;max-width:900px;margin:0 auto}
.detail-header-text h1{font-size:clamp(32px,4vw,48px);font-weight:300;margin-bottom:8px}
.detail-header-text .meta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.detail-header-text .meta-tag{
  font-size:11px;padding:4px 14px;border-radius:100px;
  background:rgba(107,94,167,.08);color:#7B5EA7;letter-spacing:1px
}
.fade-up{opacity:0;transform:translateY(40px);transition:opacity .8s cubic-bezier(.25,.46,.45,.94),transform .8s cubic-bezier(.25,.46,.45,.94)}
.fade-up.visible{opacity:1;transform:translateY(0)}
.fade-in{opacity:0;transition:opacity 1s ease}.fade-in.visible{opacity:1}
@media(max-width:1024px){
  .about-grid{grid-template-columns:1fr;gap:48px}
  .about-image{position:relative;top:0;max-width:400px;margin:0 auto}

  .detail-grid.cols3{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .navbar{padding:16px 20px}.navbar.scrolled{padding:12px 20px}
  .nav-links{display:none;flex-direction:column;background:#fff;position:absolute;top:100%;left:0;right:0;padding:20px;gap:16px;box-shadow:0 8px 24px rgba(0,0,0,.06)}.nav-links.open{display:flex}
  .nav-toggle{display:block}
  .project-grid{grid-template-columns:1fr}

  .research-grid{grid-template-columns:1fr}
  .detail-grid.cols2,.detail-grid.cols3{grid-template-columns:1fr}
  .featured-card .card-image{aspect-ratio:4/3}
  .hero-content h1{font-size:clamp(36px,12vw,56px)}
  .section-header{margin-bottom:48px}
}
@media(max-width:480px){.container{padding:0 16px}}
.back-top{
  position:fixed;bottom:32px;right:32px;z-index:100;
  width:44px;height:44px;border-radius:50%;
  background:rgba(248,247,244,.9);backdrop-filter:blur(12px);
  border:1px solid rgba(0,0,0,.06);cursor:none;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;color:#1A1A1A;opacity:0;pointer-events:none;
  transition:opacity .4s,transform .3s cubic-bezier(.25,.46,.45,.94);
  box-shadow:0 4px 16px rgba(0,0,0,.06)
}
.back-top.visible{opacity:1;pointer-events:all}
.back-top:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.1)}


/* Image Reveal Animation */
.card-reveal{
  position:relative;overflow:hidden
}
.card-reveal .card-image::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:#F8F7F4;transform:translateX(0);
  transition:transform .9s cubic-bezier(.77,0,.18,1)
}
.card-reveal.revealed .card-image::after{
  transform:translateX(101%)
}
.card-reveal .card-meta{
  opacity:0;transform:translateY(12px);
  transition:opacity .6s ease,transform .6s cubic-bezier(.25,.46,.45,.94)
}
.card-reveal.revealed .card-meta{
  opacity:1;transform:translateY(0)
}

/* Refined cursor glow */
.cursor-glow{
  position:fixed;width:300px;height:300px;
  border-radius:50%;pointer-events:none;z-index:9998;
  background:radial-gradient(circle,rgba(200,200,200,.06) 0%,rgba(180,180,180,.03) 40%,transparent 70%);
  transform:translate(-50%,-50%);opacity:0;
  transition:opacity .6s ease;will-change:transform
}
.cursor-glow.visible{opacity:1}

/* Hero section refinement */
.hero{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:#F8F7F4;padding:120px 24px 80px}
.hero-content h1{font-family:'Playfair Display',Georgia,serif}

/* About image reveal */
.about-image .portrait{overflow:hidden;position:relative}
.about-image .portrait::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:#F8F7F4;transform:translateX(0);
  transition:transform 1s cubic-bezier(.77,0,.18,1) .3s
}
.about-image.revealed .portrait::after{transform:translateX(101%)}


/* Portrait project cards */
.project-card.portrait .card-image{aspect-ratio:3/4}

/* Tool icons styling */
.tools-list{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.tools-list .tool-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:8px;
  background:#F0EFEA;color:#6B6B6B;
  transition:all .4s cubic-bezier(.25,.46,.45,.94)
}
.tools-list .tool-icon:hover{
  background:#C8C8C8;
  color:#fff;transform:translateY(-2px)
}
.tools-list .tool-icon svg{width:18px;height:18px}

/* Override old separator for icons */


/* Project card 16:9 wide */
.project-card.wide .card-image{aspect-ratio:16/9}








/* Product horizontal scroll */
.product-track{
  display:flex;gap:24px;padding:4px 0;
  animation:productScroll 35s linear infinite;
  width:fit-content;cursor:grab
}
.product-grid:hover .product-track{animation-play-state:paused}
.product-card{flex:0 0 320px}
@keyframes productScroll{0%{transform:translateX(0)}100%{transform:translateX(calc(-5 * 320px - 4 * 24px))}}
/* --- Envelope Letter Design --- */
.envelope-scene{position:relative;display:flex;justify-content:center;padding-top:20px;width:100%;min-height:400px}
.envelope{position:relative;width:560px;max-width:100%;filter:drop-shadow(0 8px 24px rgba(0,0,0,.06))}
.env-flap{position:relative;z-index:3;width:100%;height:90px;clip-path:polygon(0 0,50% 82%,100% 0);background:linear-gradient(135deg,#FF6B35,#7B5EA7);transform-origin:bottom center}
.env-body{position:relative;z-index:2;width:100%;height:220px;background:linear-gradient(145deg,#f5f0ea,#ede7df);border-radius:0 0 16px 16px;box-shadow:0 8px 32px rgba(0,0,0,.06),inset 0 1px 0 rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center;border-top:2px solid rgba(0,0,0,.04)}
.env-label{font-family:"Playfair Display",Georgia,serif;font-size:clamp(28px,4vw,42px);font-weight:300;color:#7B5EA7;letter-spacing:4px;text-transform:uppercase;opacity:.8}
.env-body::before{display:none}

.letter-card{position:absolute;z-index:1;bottom:0;left:24px;right:24px;background:#fff;border-radius:12px;box-shadow:0 -4px 24px rgba(0,0,0,.06),0 8px 32px rgba(0,0,0,.04);padding:32px;transform:translateY(calc(100% + 30px));will-change:transform;opacity:0}
.letter-inner{display:flex;gap:32px;align-items:center}
.letter-left{flex:1;display:flex;flex-direction:column;gap:20px;position:relative}
.letter-left::before{content:"";position:absolute;left:23px;top:58px;bottom:58px;width:2px;background:linear-gradient(to bottom,#E8E6E1,#D0CFC8);z-index:0;border-radius:1px}
.letter-right{flex-shrink:0}

.orbit-item{display:flex;align-items:center;gap:16px;cursor:pointer;position:relative;z-index:1}
.orbit-ring{width:48px;height:48px;border-radius:50%;border:2px solid #E8E6E1;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative}
.orbit-ring::before{content:"";position:absolute;inset:-3px;border-radius:50%;border:1.5px dashed #D0CFC8;opacity:0;transition:opacity .4s}
.orbit-item:hover .orbit-ring{border-color:#7B5EA7;transform:scale(1.08)}
.orbit-item:hover .orbit-ring::before{opacity:.5;animation:orbitSpin 6s linear infinite}
.orbit-icon{font-size:18px;line-height:1}
.orbit-label{font-size:14px;color:#4A4A4A;font-weight:400;transition:color .3s}
.orbit-item:hover .orbit-label{color:#7B5EA7}

@keyframes orbitSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

.qr-img{width:120px;height:120px;border-radius:12px;object-fit:cover;box-shadow:0 4px 16px rgba(0,0,0,.06);transition:transform .4s cubic-bezier(.25,.46,.45,.94),box-shadow .4s}
.qr-img:hover{transform:scale(1.05);box-shadow:0 8px 28px rgba(0,0,0,.1)}

@media(max-width:640px){
  .letter-inner{flex-direction:column;gap:24px;text-align:center}
  .letter-left::before{display:none}
  .letter-right{order:-1}
  .qr-img{width:100px;height:100px}
  .letter-card{padding:24px;left:16px;right:16px}
}



/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
  transition: transform 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* Lightbox navigation arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  line-height: 1;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}


/* WeChat QR */
.cv4-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.cv4-wechat-qr {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cv4-wechat-qr:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.cv4-wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cv4-wechat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========== Detail Page Refinements ========== */

/* Better header presentation */
.detail-header-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}
.detail-header-text h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #1A1A1A;
  margin-bottom: 16px;
}
.detail-header-text .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.detail-header-text .meta-tag {
  font-size: 11px;
  padding: 5px 16px;
  border-radius: 100px;
  background: rgba(107,94,167,.08);
  color: #7B5EA7;
  letter-spacing: .06em;
  font-weight: 400;
}

/* Cover image area between header and content */
.detail-cover {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.detail-cover img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Main content area - better max-width and spacing */
.detail-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.detail-content h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: #1A1A1A;
  margin: 64px 0 24px;
  padding-top: 8px;
}
.detail-content h2:first-child {
  margin-top: 0;
}
.detail-content p {
  font-size: 15px;
  line-height: 1.85;
  color: #4A4A4A;
  margin-bottom: 24px;
  font-weight: 300;
}

/* Image grid refinements */
.detail-grid {
  margin: 32px 0;
  gap: 24px;
}
.detail-grid .grid-item {
  border-radius: 14px;
  overflow: hidden;
  background: #F0EFEA;
  transition: transform .4s ease, box-shadow .4s ease;
}
.detail-grid .grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.07);
}
.detail-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  min-width: 0;
  min-height: 0;
}
.detail-grid .grid-item:hover img {
  transform: scale(1.03);
}
.detail-grid .grid-item .grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Note / info box */
.detail-content .note {
  font-size: 14px;
  color: #6B6B6B;
  background: #F8F7F4;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 40px 0 32px;
  border: 1px solid rgba(0,0,0,.04);
}
.detail-content .note p {
  margin-bottom: 0;
  font-size: 14px;
}

/* Tech path refinements */
.tech-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 32px;
}
.tech-step {
  display: inline-block;
  font-size: 12px;
  padding: 7px 18px;
  border-radius: 100px;
  background: #F8F7F4;
  color: #6B6B6B;
  border: 1px solid #E8E6E1;
  transition: all .3s ease;
}
.tech-step:hover {
  background: linear-gradient(135deg,#FF6B35,#7B5EA7);
  color: #fff;
  border-color: transparent;
}
.tech-arrow {
  font-size: 13px;
  color: #D0CFC8;
}

/* XHS card refinement */
.xhs-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-radius: 14px;
  border: 1px solid #E8E6E1;
  background: #fff;
  cursor: pointer;
  transition: all .4s ease;
  margin: 32px 0;
  max-width: 420px;
}
.xhs-card:hover {
  border-color: #FF6B35;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,107,53,.1);
}

/* ========== Detail Page Dramatic Refinements ========== */

/* Bigger, more dramatic header */
.detail-header-text {
  max-width: 960px;
  margin: 0 auto;
  padding: 140px 24px 40px;
}
.detail-header-text h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

/* Bigger tags */
.detail-header-text .meta-tag {
  font-size: 12px;
  padding: 6px 20px;
  border-radius: 100px;
  background: rgba(107,94,167,.08);
  color: #7B5EA7;
  letter-spacing: .06em;
}

/* Main content - wider & better spaced */
.detail-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* More dramatic section headings */
.detail-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -.02em;
  margin: 80px 0 28px;
  padding-top: 8px;
  position: relative;
}
.detail-content h2:first-child {
  margin-top: 0;
}
/* Subtle accent line above each section heading */
.detail-content h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #7B5EA7, #FF6B35);
  margin-bottom: 16px;
  border-radius: 2px;
}

/* More readable paragraphs */
.detail-content p {
  font-size: 15px;
  line-height: 1.9;
  color: #4A4A4A;
  margin-bottom: 28px;
  font-weight: 300;
}

/* More dramatic image grids */
.detail-grid {
  margin: 40px 0;
  gap: 28px;
}
.detail-grid .grid-item {
  border-radius: 18px;
  overflow: hidden;
  background: #F0EFEA;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s cubic-bezier(.22,1,.36,1);
}
.detail-grid .grid-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.detail-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.detail-grid .grid-item:hover img {
  transform: scale(1.05);
}

/* Better note styling */
.detail-content .note {
  background: linear-gradient(135deg, #F8F7F4, #F3F0EB);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 48px 0 36px;
  border: 1px solid rgba(0,0,0,.04);
}
.detail-content .note p {
  margin-bottom: 0;
  font-size: 14px;
  color: #6B6B6B;
}

/* Section divider - subtle line between major sections */
.detail-content .section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent);
  margin: 60px 0;
}

/* Tech path refinement */
.tech-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 24px 0;
  margin-bottom: 40px;
}
.tech-step {
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 100px;
  background: #F8F7F4;
  color: #6B6B6B;
  border: 1px solid #E8E6E1;
  transition: all .3s ease;
}
.tech-step:hover {
  background: linear-gradient(135deg,#FF6B35,#7B5EA7);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* XHS card */
.xhs-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 30px;
  border-radius: 16px;
  border: 1px solid #E8E6E1;
  background: #fff;
  cursor: pointer;
  transition: all .4s cubic-bezier(.22,1,.36,1);
  margin: 40px 0;
  max-width: 420px;
}
.xhs-card:hover {
  border-color: #FF6B35;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255,107,53,.12);
}

/* ========== New Detail Page Template ========== */

:root {
  --bg:        #F7F5F0;
  --ink:       #1A1916;
  --ink-dim:   #6B6860;
  --ink-mute:  #B0ADA8;
  --rule:      #E0DDD8;
  --accent:    #7B5EA7;
  --accent-soft: rgba(123,94,167,0.08);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero */
.case-hero {
  padding: 120px 48px 80px;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: end;
}
.case-hero-index {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.case-hero-index::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}
.case-hero-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.case-hero-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 0;
}
.case-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border-radius: 100px;
  transition: border-color 0.25s, color 0.25s;
}
.case-tag:hover { border-color: var(--ink-dim); color: var(--ink); }

.case-hero-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px;
  padding-bottom: 4px;
}
.case-hero-meta {
  display: flex; align-items: baseline; gap: 16px;
}
.case-meta-label {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  width: 60px; text-align: right;
}
.case-meta-val {
  font-size: 13px; color: var(--ink-dim); font-weight: 300;
}

@media (max-width: 768px) {
  .case-hero { grid-template-columns: 1fr; gap: 40px 0; padding: 100px 24px 60px; }
  .case-hero-right { align-items: flex-start; }
  .case-meta-label { text-align: left; }
}

/* Hero rule */
.case-rule {
  max-width: 960px; margin: 0 auto; padding: 0 48px;
  border: none; border-top: 1px solid var(--rule);
}
@media (max-width: 768px) { .case-rule { padding: 0 24px; } }

/* Hero images */
.case-images {
  max-width: 960px; margin: 48px auto 0; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 640px) {
  .case-images { grid-template-columns: 1fr; padding: 0 24px; }
}
.case-img-wrap {
  overflow: hidden; aspect-ratio: 3/4; background: var(--rule);
}
.case-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s var(--ease-out), filter 0.5s;
  filter: brightness(0.97);
}
.case-img-wrap:hover img {
  transform: scale(1.04); filter: brightness(1);
}

/* Content */
.case-content {
  max-width: 680px; margin: 0 auto;
  padding: 80px 24px 120px;
}

/* Section */
.case-section { margin-bottom: 72px; }
.case-section-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.case-section-num {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--ink-mute);
  text-transform: uppercase; flex-shrink: 0;
}
.case-section-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 22px; font-weight: 300;
  color: var(--ink); letter-spacing: -0.01em;
}
.case-section p {
  color: var(--ink-dim); font-size: 15px;
  font-weight: 300; line-height: 1.85; margin-bottom: 20px;
}
.case-section p:last-child { margin-bottom: 0; }
.case-section p strong { font-weight: 500; color: var(--ink); }

/* Process steps */
.case-steps {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 4px;
  overflow: hidden; margin-top: 8px;
}
.case-step {
  padding: 28px 32px;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 140px 1fr;
  gap: 0 32px; transition: background 0.25s;
}
.case-step:last-child { border-bottom: none; }
.case-step:hover { background: var(--accent-soft); }
.case-step-label { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.case-step-phase {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.case-step-name {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 16px; font-weight: 300; color: var(--ink); line-height: 1.3;
}
.case-step-body {
  font-size: 14px; line-height: 1.8; color: var(--ink-dim);
  font-weight: 300; border-left: 1px solid var(--rule); padding-left: 32px;
}
@media (max-width: 640px) {
  .case-step { grid-template-columns: 1fr; gap: 12px 0; }
  .case-step-body { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
}

/* Image grids */
.case-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 40px 0;
}
.case-grid-1 {
  display: grid; grid-template-columns: 1fr;
  gap: 12px; margin: 40px 0;
}
.case-grid-item {
  overflow: hidden; background: var(--rule);
}
.case-grid-item.ratio-34 { aspect-ratio: 3/4; }
.case-grid-item.ratio-11 { aspect-ratio: 1/1; }
.case-grid-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.9s var(--ease-out), filter 0.5s;
  filter: brightness(0.97);
}
.case-grid-item:hover img {
  transform: scale(1.03); filter: brightness(1.01);
}
@media (max-width: 640px) {
  .case-grid-2 { grid-template-columns: 1fr; }
}

/* Insight */
.case-insight {
  margin: 40px 0; padding: 32px 36px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
}
.case-insight-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.case-insight p {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 17px; font-weight: 300; line-height: 1.7;
  color: var(--ink); font-style: italic; margin: 0 !important;
}

/* Spec row */
.case-specs {
  display: flex; gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 16px;
}
.case-spec {
  flex: 1; padding: 20px 0;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
  padding-left: 24px;
}
.case-spec:first-child { padding-left: 0; }
.case-spec:last-child { border-right: none; }
.case-spec-key {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}
.case-spec-val {
  font-size: 14px; color: var(--ink-dim); font-weight: 300; line-height: 1.4;
}
@media (max-width: 640px) {
  .case-specs { flex-direction: column; }
  .case-spec { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 0 16px 0; }
  .case-spec:last-child { border-bottom: none; }
}

/* XHS link */
.case-xhs {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 28px; border: 1px solid var(--rule);
  margin-top: 48px; cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.case-xhs:hover {
  border-color: var(--ink-dim);
  background: rgba(26,25,22,0.02);
}
.case-xhs-dot {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg,#FF6B35,#FF4D4D);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0; font-weight: 400;
}
.case-xhs-text { flex: 1; }
.case-xhs-title {
  font-size: 13px; font-weight: 500; color: var(--ink);
  letter-spacing: 0.02em; margin-bottom: 3px;
}
.case-xhs-desc {
  font-size: 12px; color: var(--ink-mute); font-weight: 300;
}
.case-xhs-arrow {
  font-size: 18px; color: var(--ink-mute);
  transition: transform 0.3s var(--ease-out), color 0.25s;
}
.case-xhs:hover .case-xhs-arrow {
  transform: translate(4px, -4px); color: var(--ink);
}

/* Scroll reveal */
.case-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.case-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}





/* Nav back */
.nav-back {
  position: fixed; top: 36px; left: 48px;
  z-index: 100;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-back::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-back:hover { color: var(--ink); }
.nav-back:hover::before { width: 40px; }
@media (max-width: 640px) { .nav-back { top: 24px; left: 24px; } }

/* Image border-radius */
.case-img-wrap { border-radius: 8px; }
.case-grid-item { border-radius: 8px; }

/* 3-column image grid */
.case-grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin: 40px 0;
}
@media (max-width: 640px) { .case-grid-3 { grid-template-columns: 1fr; } }

/* Wider content width (matching original) */
.case-content { max-width: 860px; }

/* Override old detail styles */
.detail-header-text { display: none; }





/* ── Misty purple glow ── */
.comet-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: plus-lighter;
}

.hero-v3, .contact-v4 { position: relative; overflow: hidden; }

/* Ensure content sits above canvas */
.hv3-content, .hv3-badge, .hv3-btns, .hv3-scroll, .hv3-marquee-wrap,
.cv4-inner, .cv4-footer-bar {
  position: relative;
  z-index: 5;
}
/* ── Mouse glow comet ── */
.comet-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 0.3s ease;
}
.comet-canvas.visible { opacity: 1; }
.hero-v3, .contact-v4, .hero, .contact { position: relative; overflow: hidden; }

