@font-face {
  font-family: "Nohemi";
  src: url("Nohemi-Light.otf") format("opentype");
  font-weight: 200; /* Medium weight */
  font-style: normal;
  font-display: swap;
}

.mobile-only {
  display: none; /* hide on desktop */
}

@media (max-width: 768px) {
  .mobile-only {
    display: block; /* show on mobile */
  }
}



body {
  margin: 0;
  padding: 0;
  background-color: #000;
  overflow: hidden; /* prevent physical scroll */
  height: 100vh;

  cursor: none; /* hides the default cursor */

}
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--bar-height, 160px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  z-index: 99999;
  box-sizing: border-box;
  /* Height is now driven every animation frame by the JS scroll-easing loop;
     a CSS transition here would restart on every frame and fight it, causing
     a rubbery stutter. Removed in favor of the JS-side easing. */
  pointer-events: none;
}

.corner-text {
  font-family: "Nohemi", sans-serif;
  font-size: 10rem;
  color: #fff;

  --text-scale: 1;

  transform-origin: left top;
  transform: scale(var(--text-scale));
padding-left: 1%;;
  transition: transform 0.05s linear;
  will-change: transform;
    line-height: 0.9;
  white-space: nowrap;
    z-index: 0;

}

.corner-text {
  opacity: 0;
  /* Slow, soft intro: long duration + ease-out so the name drifts up and fades in gently */
  animation: fadeSlideText 2.4s forwards cubic-bezier(0.22, 1, 0.36, 1);
}

.corner-text-inner {
  font-family: "Nohemi", sans-serif;
  font-size: min(15rem, calc((100vw - 320px) / 5), 26vh); /* leave room for the links on the right */
  color: #fff;
padding-top:3%;
  --text-scale: 1;

  display: inline-block;
  transform-origin: left top;
  transform: scale(var(--text-scale));

  /* Driven every animation frame by the JS scroll-easing loop now — no CSS
     transition needed (it would just add fighting/lag on top of the lerp). */
  will-change: transform;
}

@keyframes fadeSlideText {
  0% {
    opacity: 0;
    transform: scale(var(--text-scale, 1)) translateY(70px); /* start lower */
  }
  100% {
    opacity: 1;
    transform: scale(var(--text-scale, 1)) translateY(0); /* end at final position */
  }
}



/* RIGHT CONTAINER */
.top-right {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  pointer-events: auto;
  z-index: 50000;
}

/* ROLE TEXT */
.role-text {
  font-family: "Nohemi", sans-serif;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  opacity: 0.8;
  white-space: nowrap;
  text-align: right;
  pointer-events: none;
}

/* LINKS ROW */
.top-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  pointer-events: auto;
  z-index: 50000;
}

.top-links a {
  font-family: "Nohemi", sans-serif;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 50000;
}

.top-links a:hover {
  opacity: 0.7;
}




.sub-text {
  font-family: "Nohemi", sans-serif;
  font-weight: 500;
  font-size: 1.3rem;          /* smaller than main text */
  color: #fff;
  margin-left:11px;
  transform-origin: left top;
  transform: scale(var(--text-scale, 1)) translateY(20px); /* same behavior as main text */
  opacity: 0;
  animation: fadeSlideText 1s forwards cubic-bezier(0.77, 0, 0.175, 1);
  animation-delay: 0.2s;      /* slightly after main text */
  transition: transform 0.05s linear;
}


/* Container for video */
.video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
   z-index: 500000;
}

.video-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  animation: slideIn 1.5s forwards cubic-bezier(0.77, 0, 0.175, 1);;
  animation-delay: 0.5s; /* delay slightly after text animation */
  pointer-events: none;

}

.video-inner {
  transform: translateY(0) scale(1.5);
  transform-origin: center center;
  /* Driven every animation frame by the JS scroll-easing loop — a CSS
     transition here would restart on every frame and fight the JS lerp. */
  object-fit: cover; /* scale to fill wrapper while preserving aspect ratio */
pointer-events: none;
will-change: transform;

}


/* Video itself */
#centerVideo {
  width: 80vw;
  max-height: 90vh;
  pointer-events: none;



  
  /*border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);

  /* scale controlled by CSS variable (JS) */
  transform: scale(var(--scale, 0.5));
  transition: transform 0.05s linear;
  box-shadow:
    0 0 40px rgba(255,255,255,0.08),
    0 0 120px rgba(255,255,255,0.04);
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, height 0.3s ease;
}

.cursor-label {
  font-family: "Nohemi", sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: black; 
  opacity: 0;
}

.cursor-description {
  position: fixed; /* MUST be fixed */
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: "Nohemi", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: white;
  pointer-events: none;
  z-index: 1000000;
  opacity: 0;
  transition: opacity 0.2s ease;
}



/* State when hovering over a video */
.custom-cursor.video-hover {
  width: 80px;  /* Bigger size */
  height: 80px;
}

/* Show both when hovering over video */
.custom-cursor.video-hover .cursor-label {
  opacity: 1;
  transform: translateX(0);
}

.project-title-overlay {
  position: fixed;
  max-width: 300px;
  line-height: 1.4;
  white-space: normal;
  pointer-events: none;
  z-index: 6000;
  color: white;
  font-family: "Nohemi", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  mix-blend-mode: difference;
  
  /* Smooth fade & movement */
  transition: opacity 0.1s ease, left 0.2s ease-out, top 0.2s ease-out;
  opacity: 0; /* start hidden */
}
.project-title-overlay.show {
  opacity: 1;
}

/* "Details ↗" link to the active project's Behance page. Styled like the
   section menu (plain text, same font/size/baseline) and mirrored on the
   right edge; a thin underline grows in on hover. */
.video-control-button {
  position: fixed;
  bottom: 20px;
  right: 50px;
  padding: 0 0 3px;
  background: none;
  border: 0;
  color: #fff;
  font-family: "Nohemi", sans-serif;
  font-size: 0.95rem;
  line-height: normal;
  text-transform: capitalize;
  white-space: nowrap;
  cursor: pointer;
  z-index: 100000;
  /* underline, drawn as a background so it can animate */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-size 0.35s ease;
}

.video-control-button::after {
  content: " \2197"; /* ↗ */
}

.video-control-button:hover,
.video-control-button:focus-visible {
  background-size: 100% 1px;
  outline: none;
}

.video-control-button.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Keyframes for automatic slide-in --- */
@keyframes slideIn {
  0% {
    top: 100%; /* below viewport */
  }
  100% {
    top: 70%; /* middle of viewport */
    transform: translate(-50%, -50%);
  }
}

/* Full-height column that centers its content in the space between the
   (shrunken) header and the down arrow. Centering by translate(-50%) on a
   fixed top% pushed tall content off the top on shorter screens; sizes below
   also scale with viewport height so everything fits down to ~600px. */
.about-section {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(max(60vw, 640px), calc(100vw - 80px));
  box-sizing: border-box;
  padding: clamp(80px, 12vh, 130px) 0 clamp(70px, 10vh, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  font-family: "Nohemi", sans-serif;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 20000;
}
.about-section .award-item {
  line-height: clamp(1.6, 0.25vh + 1.4, 2);
}
/* Round profile photo on the left, intro text next to it. */
.about-intro {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.profile-photo {
  flex: 0 0 auto;
  width: clamp(90px, 18vh, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.about-text {
  font-size: clamp(1rem, 2.3vh + 0.3vw, 1.5rem);
  line-height: 1.5;
  margin: 0;
}

.about-meta {
  margin-top: clamp(12px, 4vh, 40px);
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-size: clamp(0.8rem, 1.6vh, 1rem);
  opacity: 0.8;
}

.about-meta h3 {
  margin: 0 0 clamp(4px, 1.2vh, 14px);
}

.clients-section {
  margin-top: clamp(12px, 3vh, 28px);
}

.clients-section h4 {
  font-family: "Nohemi", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: none;
  text-align: left;
  margin: 0 0 clamp(8px, 1.6vh, 16px);
  opacity: 0.85;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.clients-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 26px;
  align-items: center;
  animation: marquee 26s linear infinite;
  min-width: 200%;
}

.clients-row img {
  display: block;
  max-height: clamp(40px, 8.5vh, 92px);
  max-width: clamp(120px, 18vh, 230px);
  width: auto;
  height: auto;
  padding: clamp(6px, 1.3vh, 14px) clamp(10px, 1.7vh, 18px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  opacity: 0.96;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  object-fit: contain;
  filter: none;
}

.clients-row img:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

#desktop-award-indicator {
  position: fixed;
  height: min(420px, 70vh);
  aspect-ratio: 4 / 7; /* 240x420 on large screens, shrinks on short ones */
  pointer-events: none;
  opacity: 0;
  transition: top 0.1s ease, left 0.1s ease, opacity 0.3s ease;

  /* Prevent blending from cursor */
  mix-blend-mode: normal;   /* override */
  isolation: isolate;       /* ensure normal stacking context */
  z-index: 100000;           /* above most elements, below cursor if needed */
}
#desktop-award-indicator.show {
  opacity: 1;
}

.down-arrow {
  position: fixed;
  bottom: 40px; /* distance from bottom of screen */
  left: 50%;
  transform: translateX(-50%) translateY(20px); /* start slightly below */
  opacity: 0;
  pointer-events: none;
  z-index: 3000;

 
}
#activeProjectTitle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease; /* fade effect */
  position: fixed; /* so it can follow cursor */
  left: 0;
  top: 0;
}
#activeProjectTitle.show {
  opacity: 1;
}
.about-section a, 
.contact-column a {
  color: #fff !important;         /* Forces the color to white */
  text-decoration: none;         /* Removes the default underline */
  transition: opacity 0.3s ease;  /* Makes the hover feel smooth */
}

/* Add a hover state so users know it's still a link */
.about-section a:hover, 
.contact-column a:hover {
  opacity: 0.7;
  text-decoration: underline;    /* Optional: shows underline only on hover */

}
.down-arrow {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3000;
}

#desktop-award-indicator video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  /* Prevent blending from cursor */
  mix-blend-mode: normal;   /* override */
  isolation: isolate;       /* ensure normal stacking context */
  z-index: 100000; 
}

.about-section .award-item {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;

}

.about-section .award-item:hover {
  opacity: 1;
  
  /* Prevent blending from cursor */
  mix-blend-mode: normal;   /* override */
  isolation: isolate;       /* ensure normal stacking context */
  z-index: 100000; 
}

.scroll-text-wrapper {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 1000;
}

#scrollText {
  font-family: "Nohemi", sans-serif;
  font-size: min(40rem, 75vh);
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;

  transform: translateX(100vw) translateY(-50%); /* fully offscreen right */
  transition: transform 0.05s linear;           /* optional smoothness */
  will-change: transform;
}

.scrollTextItem {
  position: absolute;
  font-family: "Nohemi", sans-serif;
  font-size: min(40rem, 75vh);
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transform: translateX(100vw) translateY(-50%);
  will-change: transform;
}




.scroll-videos-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 5000;
}

.scroll-video {
    position: absolute;
  left: 50%;
  top: 0;
  position: absolute;        /* independent positioning */
  left: 50%;                 /* center horizontally */
  transform: translateX(-50%) translateY(120vh);
  width: 50%;
  height: 50%;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: auto;

  will-change: transform;

  
    filter:
    drop-shadow(0 0 12px rgba(255,255,255,0.08))
    drop-shadow(0 0 40px rgba(255,255,255,0.04));

}

/* Creative Coding auto-scrolling carousel.
   .creative-carousel = the panel: full viewport, its vertical position is
   driven by the wheel (rises up from below, holds, then slides up & out to
   reveal the coop message). Inside, the big title band and the video track
   each auto-scroll sideways on their own (script.js), independent of the wheel. */
.creative-carousel {
  position: fixed;
  inset: 0;
  overflow: hidden; /* clip the scrolling marquees */
  transform: translateY(0); /* JS drives the exit (up); children rise in from below */
  will-change: transform;
  pointer-events: none;
  z-index: 5000;
}

/* Big "CREATIVE CODING" band, auto-scrolling behind the videos. */
.cc-title {
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-flex;
  white-space: nowrap;
  transform: translate(0, calc(-50% + 100vh)); /* start off-screen below; JS raises it */
  will-change: transform;
  font-family: "Nohemi", sans-serif;
  font-size: min(40rem, 75vh);
  font-weight: 500;
  line-height: 1;
  color: #fff;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}
.cc-title span { display: inline-block; }

/* The video row, auto-scrolling in front of the title. */
.creative-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 3vw;
  padding: 0 3vw;
  transform: translate(0, calc(-50% + 100vh)); /* start off-screen below; JS raises it */
  will-change: transform;
  z-index: 2;
}

.creative-item {
  flex: 0 0 auto;
  height: 74vh;
  aspect-ratio: 9 / 16; /* vertical works; keeps a stable width before load */
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: auto;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.08))
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.04));
}

/* Featured creative-coding work (LMF): centred, in front of the title band.
   JS drives its vertical entrance (rises from below after the strip leaves). */
.creative-feature {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 124vh); /* 16:9, fits both short and narrow screens */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  transform: translate(-50%, calc(-50% + 100vh)); /* start off-screen below */
  will-change: transform;
  pointer-events: auto;
  z-index: 3;
}

.cooperation-message {
  position: fixed;
  bottom: 70px; /* clear of the section menu in the bottom-left corner */
  left: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 12px 20px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  /* above .scroll-videos-wrapper (5000), which covers the screen and would
     otherwise swallow clicks on the email link */
  z-index: 6000;
    font-family: "Nohemi", sans-serif;
  font-size: min(9rem, 7vw, 16vh);
  right: 30px;
  line-height: 1.05;
}
.cooperation-message.show {
  opacity: 1;
}

/* Only the link is clickable, and only once the message is visible. */
.coop-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.cooperation-message.show .coop-link {
  pointer-events: auto;
}
.coop-link:hover {
  opacity: 0.7;
}

/* --- Video loading state ---
   Added/removed by script.js while a <video> has no frame to show yet.
   A video's background is only visible until its first frame paints, so
   this shimmer + spinner disappears on its own once the video is ready. */
@keyframes video-shimmer {
  from { background-position: 150% 0, center; }
  to   { background-position: -50% 0, center; }
}

video.is-loading {
  background-color: #111;
  background-image:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='16' fill='none' stroke='%23ffffff' stroke-opacity='0.15' stroke-width='3'/%3E%3Cpath d='M20 4a16 16 0 0 1 16 16' fill='none' stroke='%23ffffff' stroke-opacity='0.8' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='0.9s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  background-size: 200% 100%, 40px 40px;
  background-repeat: no-repeat;
  background-position: 150% 0, center;
  animation: video-shimmer 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  video.is-loading { animation: none; }
}

/* Touch screens wider than the mobile breakpoint (e.g. tablets in landscape)
   get the desktop layout; there is no mouse, so drop the custom cursor. */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .custom-cursor { display: none; }
}

/* Section menu, bottom-left: About | Motion Design | Branding | Creative Coding */
.section-nav {
  position: fixed;
  /* lines up with the coop message text (left 30px + 20px padding) */
  left: 50px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Nohemi", sans-serif;
  font-size: 0.95rem;
  color: #fff;
  z-index: 100000; /* above the full-screen video layers, like the details button */
  /* hidden on the hero; fades up once the about section arrives (script.js) */
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.section-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.section-nav a:hover,
.section-nav a.active {
  opacity: 1;
}

.section-nav-sep {
  opacity: 0.35;
}

/* Down arrow in the bottom-right corner of the about section. Sits where
   "Details" appears later (same font/size/baseline as the section menu);
   its opacity follows the about section (script.js). */
.about-arrow {
  position: fixed;
  right: 50px;
  bottom: 20px;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  font-family: "Nohemi", sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  animation: about-arrow-bob 1.8s ease-in-out infinite;
}

.about-arrow:hover,
.about-arrow:focus-visible {
  outline: none;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes about-arrow-bob {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .about-arrow { animation: none; }
}
