  @font-face{
  font-family: "PP Neue Machina";
  src: url("assets/PPNeueMachina-Ultrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

  @font-face{
  font-family: "PP Neue Machina Regular";
  src: url("assets/PPNeueMachina-Regular.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

:root{
  /* =========================================
     Color Scheme
     ========================================= */
  --brand: #cf436b;
  --bg: #e4e4e4;
  --text: #343440;

  /* Supporting */
  --muted: rgba(52, 52, 64, .72);
  --border: rgba(52, 52, 64, .18);
  --surface: rgba(255,255,255,.55);
  --paper: rgba(255,255,255,.60);
  --tint: rgba(207,67,107,.07);
  --dark: #343440;

  /* Layout */
  --container-max: 1120px;
  --radius: 0px;
  --section-y: 72px;
  --shadow: none;

  /* Fonts */
  --font-title: "PP Neue Machina", "locator-web", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-subtitle: "PP Neue Machina Regular", "locator-web", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: 'peridot-pe-variable', 'Open Sans', sans-serif;
}

/* =========================
   Cursor
   ========================= */
  body{
  padding-top: 57px;
}
  
   @media (hover: hover) and (pointer: fine){

  html, body{
    cursor: none;
  }

  a, button, .btn, [role="button"],
  input, select, textarea{
    cursor: none;
  }

  /* White dot */
  .cursor-dot{
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0f0f0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
  }

  /* Pink ring */
  .cursor-ring{
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;

    background: rgba(207,67,107,.25);

    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;

    transition:
      width .2s cubic-bezier(.2,.8,.2,1),
      height .2s cubic-bezier(.2,.8,.2,1),
      background-color .2s ease;
  }

  /* Hover over clickable elements */
  .cursor-ring.is-link{
    width: 100px;
    height: 100px;
    background: rgba(207,67,107,.4); 
  }
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-title);
  letter-spacing: -0.02em;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color: var(--brand); }

.container-nice{ max-width: var(--container-max); }

.section{ 
  padding: var(--section-y) 0;
  background: var(--section-bg, transparent);
}

.no-reveal{
  opacity: 1 !important;
  transform: none !important;
}

/* Section background helpers */
.section--paper{ --section-bg: var(--paper); }
.section--tint{ --section-bg: var(--tint); }
.section--brand{ --section-bg: var(--brand); color: var(--bg); }
.section--dark{ --section-bg: var(--dark); color: var(--bg); }
.section--brand a, .section--dark a{ color: inherit; }
.section--brand a:hover, .section--dark a:hover{ opacity: .85; }

/* Featured grid */
.featured-grid{
  --bs-gutter-x: 14px;
  --bs-gutter-y: 14px;
}

@media (min-width: 992px){
  .featured-grid{
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
  }
}

/* Work video */
.work-hero-video{
  position: absolute;
  top: 50%;
  right: 14.5vw;
  transform: translateY(-50%);
  width: 367px;
  display: block;
  object-fit: cover;
}

@media (max-width: 991px){
  .work-hero-video{
    display: none;
  }
}


/* Clickable tile wrapper */
.work-tile{
  display: block;
}

.work-media{
  position: relative;
}

/* Subtle title reveal on hover */
.work-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.work-title{
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #ffffff;
  line-height: 1;
}

.work-sub{
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

@media (hover: hover){
  .work-tile:hover .work-overlay{
    opacity: 1;
    transform: translateY(0);
  }
}

.work-meta{
  padding-top: 10px;
}

.work-meta-title{
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* =========================
   Scroll reveal for all sections
   ========================= */

.section{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .section{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.text-muted-custom{ color: var(--muted) !important; }

/* =========================
   Navbar
   ========================= */
.navbar{
  background: #e4e4e4d9;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(7px);
}

/* =========================
   Hero section: big title + video
   ========================= */
/* Remove section spacing ONLY for hero */
.hero-section{
  padding-top: 0;
  padding-bottom: 0px;
  margin-top: 0;
}

.hero-title-stage{
  position: relative;
  height: 100vh;     
  height: 100dvh;  
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}


/* Full-height 3-row typography grid */
.hero-type-grid{
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;;
  padding-top: 1vh;
  display: flex;
  flex-direction: column;
}

.hero-row{
  flex: 1;
  display: flex;
  align-items: center;
  padding-inline: clamp(16px, 4vw, 56px);
  font-family: var(--font-title); 
  font-weight: 800;
  text-transform: uppercase;
  line-height: .85;
  letter-spacing: .01em;
  color: #343440;
  font-size: clamp(4.5rem, 20vw, 19rem);
  margin: 0;
}

/* PORT left */
.hero-row--left{
  justify-content: flex-start;
  text-align: left;
  z-index: 0;
}

/* FOLIO right */
.hero-row--right{
  justify-content: flex-end;
  text-align: right;
  z-index: 0;
}

/* ZHAN YI (space-between) */
.hero-row--between{
  justify-content: space-between;
  z-index: 2;
  mix-blend-mode: exclusion;
}

/* Video overlays the title */
.hero-title-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 991px){

  .hero-type-grid{
    height: auto;   
    min-height: unset;     
    padding-top: 20px;
    padding-bottom: 0;
  }

  .hero-header{
    padding-top: 20px;
    padding-bottom: 0;
  }

}

/* BIG TITLE STYLE */
.big-title{
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: .95;
  text-transform: uppercase;
  font-weight: 800;
}


@keyframes titleRise{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tight spacing under big titles */
.big-title + .text-muted-custom{
  margin-top: 0rem;
}

/* Larger contact block (1.3x scale) */
.contact-large{
  font-size: clamp(1.05rem, 1.2vw, 1.35rem);
  line-height: 1.25;
}

/* =========================
   Project image cycle
   ========================= */

.project-image-cycle{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
}

.project-image-cycle img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.45s cubic-bezier(.2,.8,.2,1);
}

.project-image-cycle img.is-active{
  opacity: 1;
}

@media (hover: hover){
  .project-image-cycle:hover img{
    transform: scale(1.1);
  }
}

/* ================================
   Featured works scroll
================================ */

.featured-slider{
  width: 100%;
}

.featured-slider__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.featured-slider__viewport::-webkit-scrollbar{
  display: none;
}

.featured-slider__track{
  display: flex;
  gap: 24px;
  will-change: auto;
}

.featured-slide{
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

.featured-slider__dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.featured-slider__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(52,52,64,.2);
  transition: background .25s ease, transform .25s ease;
}

.featured-slider__dot.is-active{
  background: rgba(52,52,64,.65);
  transform: scale(1.15);
  cursor: none;

}

@media (max-width: 991px){
  .featured-slider__track{
    gap: 16px;
  }

  .featured-slide{
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 767px){
  .featured-slide{
    flex: 0 0 100%;
  }
}

/* =========================================================
   Works index + Standardised Project page
   ========================================================= */

/* Works list (vertical preview rows) */
.works-list{
  display:flex;
  flex-direction:column;
  gap: 0px;
}

.work-row__link{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: inherit;
}

.work-row:first-child .work-row__link{
  border-top: 0;
  padding-top: 0;
}

.work-row__thumb{
  width: 100%;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.4);
}

.work-row__thumb img{
  width:100%;
  height: 100%;
  display:block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.work-row__meta{
  padding: 6px 0;
}

.work-row__kicker{
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.work-row__dot{
  margin: 0 8px;
  opacity: .55;
}

.work-row__title{
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  line-height: 1.05;
  font-weight: 700;
}

.work-row__teaser{
  margin: 0 0 10px 0;
  color: var(--muted);
  max-width: 52ch;
}

.work-row__link:hover .work-row__thumb img{
  transform: scale(1.04);
}

@media (max-width: 992px){
  .work-row__link{
    grid-template-columns: 1fr;
  }
  .work-row__teaser{
    max-width: 70ch;
  }
}

/* =========================
   Project template
   ========================= */
.project-hero{
  position: relative;
  padding: 0;
  aspect-ratio: 16 / 9;  
  overflow: hidden;
}

.project-hero__bg{
  position:absolute;
  inset:0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.project-hero--youtube .project-hero__bg{
  background-image: none;
}

/* YouTube cover crop */
.project-hero__embed{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* cover crop behavior */
.project-hero__embed iframe{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* when embedding, remove image bg */
.project-hero--youtube .project-hero__bg,
.project-hero--vimeo .project-hero__bg{
  background-image: none;
}
 
/* title overlay */
.project-hero__inner{
  position: relative;
  z-index: 2;
  padding-top: clamp(10px, 1vh, 30px);
  padding-bottom: clamp(24px, 6vh, 72px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.project-breadcrumb{
  display:inline-flex;
  width: fit-content;
  border: none;
  background: none;
  margin-bottom: 18px;
}

.project-hero__title{
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: .92;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  font-weight: 700;
}

.project-hero__client{
  font-size: 1rem;
}

/* =========================
   Lightbox
   ========================= */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10000;
  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#lightbox-img{
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* =========================
   Snippets grid (for project page)
   ========================= */
.snippets-grid{
  display: block;
  column-count: 2;
  column-gap: 16px;
  grid-auto-flow: dense;
}

/* Tile */
.snip{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 16px;            
  display: block;
}

/* Image */
.snippet-img{
  width: 100% !important;
  height: auto !important;   
  max-width: 100%;
  display: block;
  object-fit: contain;           
  cursor: zoom-in;
}

/* Mobile */
@media (max-width: 900px){
  .snippets-grid{
    column-count: 1;
    -webkit-column-count: 1;
  }
}  

/* External button */
.btn-ext {
  color: #cf436b; 
  text-decoration: none;
  font-weight: normal; 
  font-size: 1rem;
  transition: color 0.3s ease;
}

.btn-ext:hover {
  color: #a13b5d; 
  text-decoration: underline;
}

/* =========================
   About hero: 4-row grid + video
   ========================= */
.about-hero{
  --s: 1; 
  --s: clamp(0.78, 0.92, 1);
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 0;

  position: relative;
  height: auto;  
  width: 100%;
  overflow: hidden;

  isolation: isolate;
}

/* LEFT: 4 rows */
.about-hero__grid{
  position: relative;
  width: 100%;
  height: auto;       
  min-height: unset;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Each row = 1/4 height, flush left */
.about-hero__row{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;

  padding-inline: calc(4vw * var(--s));

  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .85;
  letter-spacing: .01em;
  color: #343440;

  font-size: calc(11.5vw * var(--s));
  margin: 0;
}

/* Row 4: blurb styling */
.about-hero__row--4{
  align-items: flex-start;
  padding-top: calc(2vh * var(--s));
}

.about-hero__blurb{
  margin: 0;
  max-width: 50ch;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  line-height: 1.4;
  letter-spacing: 0;
  font-size: var(--bs-body-font-size);
  color: #343440;
}

/* RIGHT: video flush right, not cropped */
.about-hero__video{
  position: absolute;
  bottom: 0;
  right: 0;

  height: auto;          
  max-width: calc(60vw * var(--s));  

  object-fit: contain;
  z-index: -1;
  pointer-events: none;
}

/* default: desktop */
.about-blurb{ display: none; }

@media (max-width: 1300px){

  .about-hero__grid{
    height: auto;         
    min-height: unset;   
    padding-top: 20px;
    padding-bottom: 0;
  }

  .about-hero__row--4{ display: none; }
  .about-blurb{ display: block; }

  .about-hero__video{
    position: absolute;
    top: 0;
    height: auto;          
    max-width: calc(44vw * var(--s));  
    padding-top: 20px;
  }  
}

.about-blurb{
  padding: 24px 20px 40px;
}

.about-blurb__cols{
  column-count: 2;
  column-gap: 30px;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  line-height: 1.4;
  letter-spacing: 0;
  font-size: var(--bs-body-font-size);
  color: #343440;
}

.about-blurb__cols p{
  margin: 0 0 16px;
  break-inside: avoid;
}

/* if screen gets very small, drop to 1 column */
@media (max-width: 575px){
  .about-blurb__cols{ column-count: 1; }  
}

/* =========================
  Skills + Softwares + Education section (hover reveals content)
   ========================= */

.skills-softwares{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  padding-inline: 20px;
  column-gap: 36px;
  position: relative;
  justify-items: center;
}

.skills-softwares__title{
  font-family: var(--font-subtitle);
  font-size: clamp(1.8rem, 4.2vw, 4.25rem);
  letter-spacing: .01em;
  line-height: .95;
  color: var(--muted);
  transition: color .25s ease, transform .3s ease;
  position: relative;
  text-align: center;
}

.skills-softwares__title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: #cf436b;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}

.skills-softwares__title:hover{
  color: #cf436b;
  transform: translateX(8px);
}

.skills-softwares__title:hover::after{
  transform: scaleX(1);
}

.skills-softwares__content{
  grid-column: 1 / -1;
  grid-row: 2;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
  transform: translateY(10px) translateX(-8px);
  transition: opacity .25s ease, transform .3s ease, visibility .25s ease;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 40px;
  padding-bottom: 20px;
  pointer-events: none;
}

.skill-sep{
  margin-inline: 0.9em;
  opacity: .6;
}

.edu-major{
  font-weight: 500;
  color: var(--text);
  margin-inline: 0.3em;
}

.skills-content-skills,
.skills-content-software{
  grid-column: 1 / -1;
  grid-row: 2;
}

.skills-trigger-skills:hover ~ .skills-content-skills{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(0);
}

.skills-trigger-software:hover ~ .skills-content-software{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(0);
}

.skills-trigger-education:hover ~ .skills-content-education{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(0);
}

@media (max-width: 767px){
  .skills-softwares{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 30px;
  }

  .skills-softwares__title{
    transform: none;
  }

  .skills-softwares__title::after{
    bottom: -4px;
  }

  .skills-softwares__title:hover{
    transform: none;
  }

.skills-softwares__content,
.skills-content-skills,
.skills-content-software,
.skills-content-education{
  grid-column: 1;
  grid-row: 4;
  padding-top: 12px;
  padding-bottom: 0px;
}
}

/* =========================
   Footer
   ========================= */
footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: inherit;
  opacity: 0.7;
}

.footer-socials a{
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer-socials a:hover{
  opacity: 1;
}

.footer-socials span{
  margin: 0 8px;
  opacity: 0.4;
}