:root{--mg-hero-pad:8vw}
/* HERO ----------------------------------------------------------*/

/* Base reset and lockdown */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;

  overscroll-behavior-y: contain; /* Prevent scrolling past the top on touch */
}

body {
  
  background-color: #080808 !important;
}

.hero-section {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background-color: #ffffff !important;
}

/* Prevents pushing the section width */
.container-fluid {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Video wrapper takes up only the vertical space above text */
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}

/* Actual video fills wrapper but gets clipped via object-fit */
.bg-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  object-fit: contain; /* Or use 'none' if manual sizing is better */
  display: block;
}

/* Anchored text box at bottom right */
.hero-text {
  position: relative;
  z-index: 2;
  background: white;
  padding: 2rem;
}

.hero-title {
  font-size: 8rem;
  line-height: 90%;
}

.lead {
  color: #595959;
  line-height: 130%;
}

/* Force clipping alignment */
@media (max-width: 767.98px) {
  .hero-text {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .bg-video {
    max-width: none;
    width: auto;
    height: 100%;
  }

  .hero-title {
  font-size: 4rem;
}
}



/* PROCESS ---------------------------------------------- */
.scroll-section {
  height: 500vh; /* enough space for 4 items */
  position: relative;
  background-color: #000000;
}

.text-container {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-line,
.video-line {
  position: absolute;
  font-size: 8vw;
  font-family: times new roman;
  font-style: italic;
  line-height: 100%;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  transform: translateY(100px);
  text-align: center;
  width: 80%;
  
}


.video-line video {
  max-width: 80%;
  height: auto;
  border-radius: 10px;
}

/* Tablet breakpoint (max 768px) */
@media (max-width: 850px) {
  .text-line {
    font-size: 8vw;
    max-width: 70%;
    margin: 0 auto;
  }
}

/* Mobile breakpoint (max 576px) */
@media (max-width: 576px) {
  .text-line {
    font-size: 8vw;
    max-width: 70%;
    margin: 0 auto;
  }
}


/* scroll progress bar */
#scroll-dots {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  pointer-events: none;
}

#scroll-dots .dot {
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.3;
}

#scroll-dots .dot.active {
  background-color: #ffffff;
  opacity: 1;
  transform: scale(1.2);
}


/* REEL --------------------------------------------- */

.reel-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.reel-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}



/* Achievements ----------------------------------------------------------*/
.vh-50 {
  height: 35vh;
}

.callout-section {
  background-color: #f9f9f9; /* light gray as seen in the mockup */
}

.callout-headline {
  font-size: 3rem;
  font-family: 'Times New Roman', serif;
  margin-bottom: 0.25rem;
}

.callout-headline em {
  font-style: italic;
}

.callout-headline .emoji {
  font-style: normal;
  font-family: system-ui, sans-serif; /* fallback to native emoji rendering */
}


.callout-sub {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0;
  font-weight: 400;
}


/* Tablet breakpoint (max 768px) */
@media (max-width: 850px) {
  .vh-50 {
   height: 40vh;
  }

  .callout-headline {
  font-size: 2rem;
 
}
}

/* Mobile breakpoint (max 576px) */
@media (max-width: 576px) {
  .vh-50 {
  height: 50vh;
  }

  .callout-headline {
  font-size: 2rem;
}

.callout {
  padding-bottom: 40px;
}
}




/* RECENT WORK --------------------------------------------- */

#recent-work {
  background-color: #080808;
}

.section-title {
  font-size: 7rem;
  line-height: 80%;
  color: rgb(50, 50, 50);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10000;
}


.skills {
  color: rgb(254, 206, 117) !important;

}

@media (max-width: 576px) {
  .section-title {
  font-size: 3rem;
  line-height: 80%;

}
.skills {
  padding-top: 32px;

}

}

/* =========================================================
   MOTION GRID — FINAL DROP-IN CSS
   ========================================================= */

/* SECTION LAYOUT ----------------------------------------- */
#about-motion-grid {
  position: relative;
  width: 100vw;
  height: 90vh; /* from 100vh to 80vh */
  background: orange;
  overflow: hidden;
}

/* VIDEO CONTAINER ----------------------------------------- */
.video-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* OUTER: translate only (no transition; JS updates each frame) */
.drifting-video {
  position: absolute;
  will-change: transform;
  z-index: 1; /* base stacking */
  transition: none;
}

/* When active (hovered copy), this video floats above others */
.drifting-video.active {
  z-index: 5; /* rise above others during hover */
}

/* INNER: scale only (smooth easing in/out) */
.drifting-video .scale-wrap {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 420ms cubic-bezier(.22,.75,.25,1);
  will-change: transform;
}

/* Enlarged + shadow for active video */
.drifting-video.active .scale-wrap {
  transform: scale(1.5);
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.3);
  transition: box-shadow 260ms ease-in-out;
}

/* Videos fill the wrapper */
.drifting-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reset any unwanted box spacing */
.drifting-video,
.drifting-video video {
  box-sizing: border-box;
  margin: 0;
  border: 0;
  padding: 0;
}

/* COPY GRID (2x3) ---------------------------------------- */
.copy-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* COPY BLOCK --------------------------------------------- */
.copy-block {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: light !important;
  font-style: normal;
  color: rgb(255, 243, 203);
  text-transform: uppercase;
  text-align: center;
  cursor: default;
  pointer-events: none; /* disables hover on container */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0); /* ← added shadow for better contrast */
}

.copy-block span {
  pointer-events: auto;
  cursor: pointer;

  /* Always keep transitions defined for both enter + exit */
  transition: transform 360ms cubic-bezier(.18,.88,.24,1.2),
              opacity   260ms ease-in-out;
  transform: scale(1);
  opacity: 1;
  will-change: transform, opacity;
}

/* Non-active copy fades when hover-active */
#about-motion-grid.hover-active .copy-block:not(.active) {
  opacity: .35;
  transition: opacity 260ms ease-in-out;
}

/* Optional shrink for non-active copy to create focus on hover */
#about-motion-grid.hover-active .copy-block:not(.active) span {
  transform: scale(0.98);
  opacity: .35;
}

/* Active copy gets slight pop */
#about-motion-grid .copy-block.active span {
  transform: scale(1.02);
  opacity: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7); /* stronger shadow when active */
  transition: text-shadow 260ms ease-in-out;
}

/* VIDEOS — non-active desaturate during hover */
#about-motion-grid.hover-active .drifting-video:not(.active) video {
  filter: grayscale(1);
  opacity: .55;
  transition: filter 260ms ease-in-out, opacity 260ms ease-in-out;
}

/* RESPONSIVE TWEAKS -------------------------------------- */
@media (max-width: 992px) {
  .copy-block {
    font-size: 1.6rem;
  }
}
@media (max-width: 600px) {
  .copy-block {
    font-size: 1.3rem;
  }
}



@media (max-width: 992px){ .copy-grid{ display:none; } }

/* Chip rail */
.mg-chip-rail {
  position: absolute;
  left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0);
  display: flex; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  align-items: center; justify-content: flex-start;
  z-index: 6;
  pointer-events: auto;
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0,0,0,0));
  border-top: 0px solid rgba(255,255,255,.08);
  scroll-snap-type: x proximity; scroll-padding: 50%;
}
.mg-chip-rail::-webkit-scrollbar { display: none; }
.mg-chip {
  flex: 0 0 auto;
  font-size: 20px; line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal !important;
  padding: 10px 14px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .02em; font-style: italic;
  color: #fff; background: rgba(255,255,255,.0);
  border: 0px solid rgba(255,255,255,.18); backdrop-filter: blur(0px);
  scroll-snap-align: center;
  opacity: .5; transition: opacity 200ms ease;
}
.mg-chip[aria-selected="true"]{ opacity: 1; }

/* Spotlight + hero */
#about-motion-grid .drifting-video .scale-wrap { transition: transform 280ms ease, filter 280ms ease, opacity 280ms ease; }
#about-motion-grid .drifting-video.is-spotlight-0 .scale-wrap { transform: scale(1.22); filter: none; }
#about-motion-grid .drifting-video.is-muted .scale-wrap { transform: scale(0.98); filter: grayscale(.9) brightness(.9); opacity: .75; }
#about-motion-grid .drifting-video.is-hero { z-index: 7; }

@media (min-width: 1025px) { .mg-chip-rail { display: none; } }


/* Keep the section title from affecting layout */
#about-motion-grid .section-title {
  position: absolute;
  top: 1px;
  left: 18px;
  margin: 0;              /* kill default h2 margins */
  z-index: 8;             /* above grid/videos */
  pointer-events: none;   /* don’t block hover/taps on grid */
}

/* (optional) slightly larger on wide screens */
@media (min-width: 900px) {
  #about-motion-grid .section-title {
    top: 22px;
    left: 22px;
  }
}