/* ================================
   RESET
   ================================ */


/*
rem to px conversion (1rem = 16px)
1rem     = 16px
1.125rem = 18px
1.25rem  = 20px
1.5rem   = 24px
2rem     = 32px
4.5rem   = 72px
6.25rem  = 100px
8rem     = 128px
12.5rem  = 200px


Color Palette (Hex)
black:   #0D0D0D
white:   #F2F2F2
yellow:  #F2EC9B
brown:   #D99F59
orange:  #D95032
blue:    #6A8FA6
mint:    #C5D9D2

*/ /*END*/




/* ================================
   BASE 
   ================================ */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Josefin Sans", sans-serif;
}



video { width: 100%; height: auto; }





/* ================================
   HEADER (Glass)
   ================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100; 
  backdrop-filter: blur(12px) brightness(1.15);
  -webkit-backdrop-filter: blur(12px) brightness(1.15);
  background: rgba(13, 13, 13, 0.10); 
  color: #F2F2F2;
  border-bottom: 1px solid rgba(242, 242, 242, 0.2);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

.site-header-inner {
  margin: 0 auto;
  padding: 0.8rem 1rem;  /*mobile header height*/
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* logo */
.site-logo {
  font-size: 1.125rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

/* desktop nav */
.site-nav {
  display: none;           
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1.125rem;  /*uxui, motion, graphic nav bar*/
  letter-spacing: 0.025em;
  color: inherit;
  font-weight: 400;
  position: relative;
}

/* hover underline + color */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: #D95032; /* orange */
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.current {
  color: #D95032;
}

/* mobile menu button */

.menu-toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}


.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;               
  background: #F2F2F2;  
}

.menu-toggle::before,
.menu-toggle::after {
  transition: transform 0.25s ease, opacity 0.25s ease;
}


/* positions of the three lines */
.menu-toggle::before {
  top: 8px;  
}

.menu-toggle span {    /*center line*/
  top: 18px; 
  width: 24px;           
  margin-left: auto;     
  right: 0;  
  transition: none;            
}

.menu-toggle::after {
  top: 28px; 
}

/* menu animation */
.nav-open .menu-toggle::before {
  transform: rotate(45deg);
  top: 16px;
}
.nav-open .menu-toggle span {
  opacity: 0;
}
.nav-open .menu-toggle::after {
  transform: rotate(-45deg);
  top: 16px;
}











.site-header.is-solid {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) brightness(1.2);
  -webkit-backdrop-filter: blur(12px) brightness(1.2);
  border-bottom-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}





/* ================================
   MOBILE NAV OVERLAY
   ================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  color: #F2F2F2;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-overlay-inner {
  flex: 1;
  display: flex;
  justify-content: center; 
  align-items: center;             
}


.nav-overlay-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center; /* 让文字也居中 */
}


.nav-overlay-list a {
  text-decoration: none;
  color: inherit;
  font-size: 2rem;
  font-weight: 500;
}



.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}













/* ================================
   HERO section
   ================================ */
.hero-title,
.contact-title {	
 	font-size: 4.5rem; 
 	font-weight: 600;
  line-height: 1;
 	margin: 0;
 	padding: 0;
  word-break: break-word;
  white-space: normal;
}

.hero-text,
.contact-text,
.about-text {
	font-size: 1.5rem; 
	font-weight: 400;
}


.scroll {
 	font-size: 1.125rem;  
 	font-weight: 400;
}


/* full-screen hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;      
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  text-align: center;
  overflow: hidden;       
}

/* treat image like a background */
.hero-img {
  position: absolute;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;        
  object-position: center;  
  z-index: 1;
}

/*overlay*/
.hero::before {
  content: "";  
  inset: 0;
  background: rgba(0,0,0,0.3); 
  backdrop-filter: blur(4px) brightness(0.92) contrast(0.85);
  position: absolute;
  z-index: 2;
  pointer-events: none;
}


/* content above image */
.hero-content,
.scroll {
  color: #F2F2F2;
  position: relative;
  z-index: 3;  
}

/* scroll text at bottom */
.scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}









/* ================================
   HIGHLIGHTS REEL section (Carousel)
   ================================ */

.reel-carousel {
  display: flex;
  overflow-x: scroll;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding: 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reel-carousel::-webkit-scrollbar {
  display: none;
}

.reel {
  flex: 0 0 calc(100% - 1rem);
  height: 341px;
  object-fit: cover;
  scroll-snap-align: center;
  display: block;
}


/* dots */
.reel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #0d0d0d;
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity 0.3s, background-color 0.3s;
}

.dot.active {
  background-color: #D95032; /* orange */
  opacity: 1;
}





/* ================================
   CATEGORY section
   ================================ */

.cat-title {
   font-size: 8rem;
   font-weight: 600;
   line-height: 1;
   margin: 0;
   padding: 0;
   word-break: break-word;
  white-space: normal;
}

.cat-video {
  display: none;  /*for mobile*/
}




/* ================================
   ABOUT section
   ================================ */
.btn {
	font-size: 1.5rem;
	font-weight: 600;
}





/* ================================
   CONTACT section
   ================================ */






/* ================================
   FOOTER
   ================================ */

.site-footer {
  background: #F2F2F2;
  color: #0D0D0D;
  text-align: center;
  font-size: 1rem;
  padding: 3rem 1rem;  /* mobile footer height */
  margin-top: 3rem;
}





























/* ================================
   CATEGORY PAGES (UXUI / MOTION / GRAPHIC)
   ================================ */

body.uxui-page,
body.motion-page,
body.graphic-page {
  background: #0D0D0D;
  color: #F2F2F2;
}

.page-main {
  padding: 6rem 1.25rem 0; 
}

.page-hero {  
  padding: 4rem 0 3.5rem;
  margin-bottom: 2.5rem;
}

.page-hero-uxui {
  background: #C5D9D2;   /* mint */
  color: #0D0D0D;
}

.page-hero-motion {
  background: #6A8FA6;   /* blue */
  color: #0D0D0D;
}

.page-hero-graphic {
  background: #D99F59;   /* brown */
  color: #0D0D0D;
}

.page-hero-title {
  font-size: clamp(5.5rem, 10vw, 12.5rem);
  margin: 0 0 1rem;
  font-weight: 600;
  text-align: left;
  padding: 0 1rem;
}

.page-hero-text {
  font-size: 1.25rem;  /*20px*/
  margin: 0;
  text-align: left;
  padding: 0 1.5rem;
}

.project-section {
  margin-bottom: 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  background: #0D0D0D;
  overflow: hidden;
  border: 1px solid rgba(242, 242, 242, 0.15);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.project-title {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.project-type {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.7;
  margin: 0 0 0.25rem;
  letter-spacing: 0.01em;
}

.project-tags {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.75;
  margin: 0.25rem 0 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
}


/*Category pages "Let's Talk" animation */
.page-contact-title {
  font-size: 4.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.animate-on-scroll.visible {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Category pages — Contact title spacing */
.contact-preview-page {
  margin-top: 5rem; /* mobile */
  margin-bottom: 2.5rem;
}









/* ================================
   ABOUT PAGE — Mobile Accordion
   ================================ */

/* Default: mobile only */
.about-mobile {
  display: block;
}

.about-desktop {
  display: none;
}


.about-tiles {
  width: 100%;
  display: flex;
  flex-direction: column;
}



/* Tile header (colored square) */
.tile-header {
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
}



/* Awards spacing */
.awards-list .award-item {
  margin-bottom: 2rem;
}


.about-modal-overlay {
  display: none;       /*Hide “x” button*/
}



/*about page tile color*/
.about-page .tile-skills .tile-header {
  background: #6A8FA6;   /* blue */
}

.about-page .tile-experience .tile-header {
  background: #C5D9D2;   /* mint */
}

.about-page .tile-education .tile-header {
  background: #F2EC9B;   /* yellow */
}

.about-page .tile-awards .tile-header {
  background: #D99F59;   /* brown/orange */
}

.about-page .tile-resume .tile-header {
  background: #D95032;   /* orange/red */
}

.about-page .tile-talk .tile-header {
  background: #0D0D0D;   /* black, or tell me your choice */
  color: #F2F2F2;        /* make text white */
}



/* ABOUT PAGE — Tile Content Color Matching Headers */

/* Skills */
.about-page .tile-skills .tile-content {
  background: #6A8FA6;   /* same blue */
  color: #0D0D0D;        /* or white — your choice */
}

/* Experience */
.about-page .tile-experience .tile-content {
  background: #C5D9D2;   /* mint */
  color: #0D0D0D;
}

/* Education */
.about-page .tile-education .tile-content {
  background: #F2EC9B;   /* yellow */
  color: #0D0D0D;
}

/* Awards / Exhibition */
.about-page .tile-awards .tile-content {
  background: #D99F59;   /* brown/orange */
  color: #0D0D0D;
}

/* Resume */
.about-page .tile-resume .tile-content {
  background: #D95032;   /* orange-red */
  color: #F2F2F2;         /* better readability */
}




/* Accordion tile content */
/* Closed state */
.tile-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 1.25rem;  /* keep 0 padding in collapsed state */
  line-height: 1.55;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease,
    padding 0.45s ease;   /* animate padding smoothly */
}

/* Open state */
.tile-content.open {
  max-height: 3000px;
  opacity: 1;
  transform: translateY(0);
  padding: 0.5rem 1.25rem 2.5rem;   
}








/*about page - intro (mobile)*/
/* Intro section */
.about-page .about-intro-mobile {
  background: #0D0D0D;
  color: #F2F2F2;
  padding: 5rem 1.5rem;
}

.about-page .about-intro-mobile .intro-text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
}








/* Subtitles inside tiles */
.about-content .subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.25rem 0 0.5rem;
}

/* Regular text inside tiles */
.about-content p:not(.subtitle) {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  margin: 0.125rem 0;
}

/* Center container for tile contents */
.tile-content.about-content {
  margin: 0 auto;
  padding: 0 3rem;

}

.content-wrapper {
  margin: 0 auto;      
  text-align: left;    
}

.tile-content.open {
  padding-bottom: 2.5rem;
}





/* Resume tile header style */
.tile-resume .resume-trigger {
  color: #0D0D0D;
  background: transparent;
  text-decoration: none;
  transition: 
    color 0.15s ease,
    background 0.15s ease;
}

/*  Mobile: click feedback → invert colors */
.tile-resume .resume-trigger.clicked {
  background: #0D0D0D;
  color: #F2F2F2;
}


























/* ================================
   TABLET
   ================================ */
@media (min-width: 768px) and (max-width: 1023px) {


/*HERO section*/
.hero-title,
.contact-title,
.cat-title {   
   font-size: 8rem; 
   line-height: 1;
   margin: 0;
   padding: 0;
}

.hero-text,
.contact-text,
.about-text {
   font-size: 1.75rem; 
   font-weight: 400;
}

.scroll {
   font-size: 1.125rem;  
   font-weight: 400;
}




/*HIGHLIGHTS REEL section*/
/*CATEGORY section*/
/*ABOUT section*/
.btn {
   font-size: 1.75rem;
   font-weight: 600;
}

/*CONTACT section*/









/* CATEGORY PAGES (UXUI / MOTION / GRAPHIC) */
/* CATEGORY pages - tablet */
.page-main {
  padding: 7rem 2rem 0;
}

.page-hero {
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}

.page-hero-title {
  font-size: 12.5rem;
  text-align: left;
  margin-left: 0;
}

.page-hero-text {
  font-size: 1.25rem;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project-title {
  font-size: 1.75rem;
}

.page-contact-title {
  font-size: 8rem;
}

.contact-preview-page {
  margin-top: 8rem;
}



} /*END*/













/* ================================
   DESKTOP
   ================================ */
@media (min-width: 1024px) {


/* HEADER desktop layout */
.site-header-inner {
  padding: 1.5rem 2.5rem;  
}


.site-nav {
  display: flex;
  margin-left: auto;
  gap: 2rem;
}


.menu-toggle {
  display: none;
}


.site-logo {
  font-size: 1.125rem; /* 18px */
  letter-spacing: 0.05em;
}





/*HERO section*/
.hero-title,
.contact-title,
.cat-title {	
 	font-size: 12.5rem; 
 	line-height: 1;
 	margin: 0;
 	padding: 0;
}

.hero-text,
.contact-text,
.about-text {
	font-size: 2rem; 
	font-weight: 400;
}

.scroll {
 	font-size: 1.125rem;  
 	font-weight: 400;
}

/*HIGHLIGHTS REEL section*/
/* disable mobile carousel */
.reel-carousel {
 display: none;
}

/* category grid videos */
.cat-reel {
 width: 360px;
 height: 341px;
 object-fit: cover;
}

/*CATEGORY section*/
/*ABOUT section*/
.btn {
	font-size: 2rem;
	font-weight: 600;
}

/*CONTACT section*/

/*FOOTER section*/
.site-footer {
  font-size: 1.125rem;
  padding: 4.5rem 1.5rem;   
}












/* CATEGORY PAGES (UXUI / MOTION / GRAPHIC) + ABOUT PAGE */
/* CATEGORY pages - desktop */
.page-main {
  padding: 5rem 2.5rem 0;
}

.page-hero {
  padding: 1.5rem 3rem;
  margin-bottom: 1.5rem;
}

.page-hero-title {
  font-size: 18rem;
  text-align: left;
  margin-left: 0;
}

.page-hero-text {
  font-size: 1.5rem;  /*24px*/
  max-width: 55rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.75rem;
}

.project-title {
  font-size: 2rem;
}


.project-card:hover {  
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-contact-title {
  font-size: 12.5rem;
}


.contact-preview-page {
  margin-top: 12.5rem;
}







/* ================================
   ABOUT PAGE — Desktop Grid
   (min-width: 1024px)
================================ */
/* Switch to desktop layout on large screens */
.about-mobile {
  display: none;
}

.about-desktop {
  display: block;
  display: flex;
  justify-content: center;
}





.about-grid-desktop {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr;              
  grid-template-areas:
    "intro skills  experience education"
    "intro awards  resume     talk";
  padding: 2rem 2rem;
  gap: 0;
  min-width: 1200px; 
  margin: 0 auto;
}

.about-grid-desktop {
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  align-items: stretch; 
}



.about-grid-desktop {
  transform: scale(0.75);
  transform-origin: top center;
}





.about-intro-desktop {
  grid-area: intro;
  background: #0D0D0D;
  color: #F2F2F2;
  padding: 4rem 5.5rem;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* optional: horizontal center */
  text-align: left;
  font-size: 1.75rem;
  line-height: 1.5;
  min-width: 0;            /* allow wrapping */
  overflow-wrap: break-word;
}



.tile-d {
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;  
  font-weight: 600;
  text-align: center;
}

.tile-d {
  overflow: hidden;      /* Prevent the content from spreading out the grid */
  min-width: 0;          /* Prevent the Grid track from being stretched by the content */
}

.tile-d {
  word-break: break-word;
  white-space: normal;
}




.tile-d.skills {
  grid-area: skills;
  background: #6A8FA6;    /* blue */
  color: #0D0D0D;
}

.tile-d.experience {
  grid-area: experience;
  background: #C5D9D2;    /* mint */
  color: #0D0D0D;
}

.tile-d.education {
  grid-area: education;
  background: #F2EC9B;    /* yellow */
  color: #0D0D0D;
}

.tile-d.awards {
  grid-area: awards;
  background: #D99F59;    /* brown/orange */
  color: #0D0D0D;
}

.tile-d.resume {
  grid-area: resume;
  background: #D95032;    /* orange/red */
  color: #F2F2F2;
}

.tile-d.talk {
  grid-area: talk;
  background: #0D0D0D;    /* black */
}

.tile-d.talk a {
  color: #D95032;
  text-decoration: none;
  font-size: inherit;
  font-weight: 600;
}


























/* hide accordion content on desktop */
.tile-content {
  display: none !important;    
  padding: 0 !important;
  margin: 0 !important;
  max-height: 0 !important;  
}



/* resume (but disabled on mobile with media query) */
.tile-resume .resume-trigger:hover {
  color: #F2F2F2;
  cursor: pointer;
}







} /*END*/