/* Font faces */
@font-face {
  font-family: 'OpenSans';
  src: url('assets/fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenSans';
  src: url('assets/fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'CenturyGothic';
  src: url('assets/fonts/centurygothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset and base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html,
body,
div,
span,
img {
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #fff;
  font-family: 'OpenSans', 'CenturyGothic', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Admin upload progress */
.upload-progress {
  margin-top: 12px;
  width: 100%;
  max-width: 760px;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.upload-progress-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.upload-progress-percent {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.upload-progress-bar {
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.85);
  transition: width 120ms linear;
}

/* Home (splash + featured slider) */
body.home.home-splash-active .navbar {
  display: none;
}

.stage.stage-home {
  padding: 0;
  cursor: default;
}

.home-splash {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
}

.home-splash-logo {
  width: min(44vw, 520px);
}

.home-splash.fade-in {
  animation: homeSplashFadeIn 650ms ease-in-out both;
}

.home-splash.fade-out {
  animation: homeSplashFadeOut 1000ms ease-in-out forwards;
}

@keyframes homeSplashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes homeSplashFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.home-slider {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.home-slider-track {
  position: absolute;
  inset: 0;
}

.home-slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1), transform 1200ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  pointer-events: none;
  z-index: 1;
}

.home-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.home-slide-media,
.home-slide-media > img,
.home-slide-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-slide-media > img,
.home-slide-media > video {
  object-fit: cover;
  display: block;
}

.home-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Keep top fully clear for a truly transparent header area */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,0.25) 70%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

.home-slider-ui {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
  padding: 0 18px;
  text-align: center;
}

.home-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-slider-dot {
  --dotSize: 14px;
  --dotStroke: 2;
  --dotDur: 5s;
  width: var(--dotSize);
  height: var(--dotSize);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  position: relative;
  display: inline-grid;
  place-items: center;
}

.home-slider-dot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-slider-dot .dot-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: var(--dotStroke);
}

.home-slider-dot .dot-progress {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: var(--dotStroke);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.home-slider-dot.active {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.25);
}

.home-slider-dot.active.dot-anim .dot-progress {
  animation: dotProgress var(--dotDur) linear forwards;
}

@keyframes dotProgress {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.home-slider-more {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.home-slider-more:hover {
  opacity: 0.75;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6vh 6vw;
  padding-top: clamp(80px, 12vh, 100px);
  text-align: center;
  cursor: pointer;
}

.stage > * {
  /* Stack all stage children in the same grid cell so the visible one stays truly centered */
  grid-area: 1 / 1;
}

/* Sequential stage layout: text and projects stacked vertically */
.stage-sequential {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Keep the sequential text centered vertically */
  padding-top: clamp(80px, 12vh, 100px);
}

.stage-sequential > * {
  grid-area: unset;
  position: relative;
}

.stage-sequential #text {
  margin-bottom: 0;
  /* Use flex gap for spacing instead of large margins from other components */
  gap: clamp(14px, 2.5vh, 24px);
}

.stage-sequential #text [data-seq="1"],
.stage-sequential #text [data-seq="2"] {
  margin: 0;
}

/* The second line reuses .projects-signature; neutralize its big bottom margin in sequential text */
.stage-sequential #text .projects-signature {
  margin-bottom: 0;
}

.stage-sequential #projects {
  /* Push projects to the bottom of the viewport in sequential layout */
  margin-top: auto;
  padding: 0;
}

/* Projects-only stage: pin projects to the bottom without affecting other stages */
.stage-projects-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.stage-projects-bottom #projects {
  margin-top: auto;
  /* Stage already has padding; avoid double padding from .projects */
  padding: 0;
}

.logo {
  /* Make the initial stage logo 50% smaller */
  width: min(40vw, 460px);
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* Hero logo: small size at top center */
.logo-hero {
  width: min(20vw, 200px);
  height: auto;
}

.stage-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(80px, 12vh, 100px);
}

.stage-hero .logo-hero {
  margin-bottom: clamp(20px, 3vh, 40px);
}

.stage-hero .text.emphasis {
  margin-top: 0;
  font-size: clamp(14px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  color: #fff;
  /* text-transform: uppercase; */
  line-height: 1.4;
}

/* Hero-projects stage: logo at top, text below, projects below text */
.stage-hero-projects {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(80px, 12vh, 100px);
  gap: clamp(20px, 3vh, 40px);
}

.stage-hero-projects .logo-hero {
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  width: min(30vw, 300px);
  padding: 0;
  box-sizing: border-box;
}

.stage-hero-projects .text.emphasis {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  color: #fff;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

.stage-hero-projects #projects {
  margin-top: clamp(40px, 6vh, 80px);
  padding: 0;
}

.text {
  /* max-width: 1000px; */
  line-height: 1.6;
  font-size: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  color: #fff;
}



.text.manifesto .text-block-medium,
.text.manifesto .text-block-large,
.text.manifesto .text-block-small {
  margin: 0;
  width: 100%;
}

.text.manifesto .manifesto-intro {
  font-size: clamp(12px, 2.05vw, 26px);
  line-height: 1.68;
  letter-spacing: 0.04em;
  margin-bottom: clamp(36px, 6vh, 68px);
}

.text.manifesto .manifesto-vision {
  font-size: clamp(12px, 2.05vw, 26px);
  line-height: 1.6;
  letter-spacing: 0.14em;
  margin-bottom: clamp(40px, 6vh, 76px);
}

.text.manifesto .manifesto-statement-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vh, 16px);
  margin-bottom: clamp(30px, 6vh, 80px);
  margin-top: clamp(30px, 6vh, 80px);
  width: 100%;
}

.text.manifesto .manifesto-statement {
  font-size: clamp(16px, 1.9vw, 22px);
  letter-spacing: 0.12em;
  margin-bottom: 0;
}

.text.manifesto .manifesto-statement--last {
  padding-bottom: clamp(12px, 2vh, 20px);
}

.text.manifesto .manifesto-outro {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.65;
  letter-spacing: 0.05em;
  margin-bottom: clamp(28px, 4.5vh, 50px);
}

.text.manifesto .manifesto-outro--last {
  margin-bottom: 0;
}

.text.emphasis {
  font-size: clamp(24px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  color: #fff;
}

/* Text block sizes based on image */
.text-block-small {
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 0.9;
  margin: 0 auto;
  margin-bottom: clamp(12px, 2vh, 24px);
  text-align: center;
  width: 100%;
  color: #fff;
}

.text-block-medium {
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.6;
  margin: 0 auto;
  margin-bottom: clamp(80px, 15vh, 150px);
  text-align: center;
  width: 100%;
  color: #fff;
}

.text-block-medium:last-child {
  margin-bottom: 0;
}

.text-block-large {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 auto;
  margin-top: clamp(80px, 15vh, 150px);
  margin-bottom: clamp(80px, 15vh, 150px);
  text-align: center;
  width: 100%;
  color: #fff;
}

.text.manifesto .text-block-medium,
.text.manifesto .text-block-large,
.text.manifesto .text-block-small {
  margin-bottom: 0;
}

.text.manifesto .text-block-large {
  margin-top: 0;
}

/* Projects section */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6vh 6vw;
  color: #fff;
}

.projects-signature {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: clamp(60px, 12vh, 120px);
  color: #fff;
}

.projects-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(80px, 12vw, 180px);
  width: 100%;
  flex-wrap: wrap;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8vh;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex: 0 1 auto;
}

.project-item:hover {
  opacity: 0.8;
}

.project-media-wrapper {
  position: relative;
  width: clamp(200px, 25vw, 400px);
  height: clamp(200px, 25vw, 400px);
  margin-bottom: clamp(20px, 3vh, 40px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-media-wrapper video.project-media {
  background: #000;
}

.project-label {
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: clamp(12px, 2vh, 20px);
  color: #fff;
  text-transform: uppercase;
}

.project-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: clamp(18px, 3.5vw, 35px) solid #fff;
  border-top: clamp(12px, 2.5vw, 24px) solid transparent;
  border-bottom: clamp(12px, 2.5vw, 24px) solid transparent;
  transition: transform 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.project-item:hover .project-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Projects page grid */
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.project-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  display: block;
  background: #000;
}

.project-card:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: clamp(16px, 3vh, 24px);
  pointer-events: none;
}

.project-card-title {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
}

/* Small screens - 2 columns */
@media (max-width: 768px) {
  .projects-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 3vw, 20px);
  }
  
  .project-card {
    aspect-ratio: 1 / 1;
  }
}

/* Very small screens - 1 column */
@media (max-width: 480px) {
  .projects-page-grid {
    grid-template-columns: 1fr;
  }
}

/* Team page */
.team-page {
  position: relative;
}

.team-page::before {
  content: "";
  position: absolute;
  inset: -8% -15% auto -15%;
  height: min(72vh, 820px);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(120, 120, 135, 0.14), transparent 72%),
    radial-gradient(ellipse 50% 35% at 85% 20%, rgba(60, 60, 75, 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.team-page > * {
  position: relative;
  z-index: 1;
}

.team-page__hero {
  text-align: center;
  margin-bottom: clamp(40px, 7vh, 88px);
}

.team-page__kicker {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 14px;
  opacity: 0;
  animation: pageFadeInUp 0.75s ease-out 0.06s forwards;
}

.team-page__title.page-title {
  margin-bottom: clamp(18px, 3vh, 26px);
}

.team-page__rule {
  width: min(140px, 36vw);
  height: 1px;
  margin: 0 auto clamp(22px, 3.5vh, 34px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: scaleX(0);
  opacity: 0;
  animation: teamRuleExpand 1s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

@keyframes teamRuleExpand {
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.team-page-intro {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto clamp(40px, 6vh, 80px);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.65;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: pageFadeInUp 0.85s ease-out 0.55s forwards;
}

.team-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4.5vw, 44px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) clamp(52px, 9vh, 96px);
  justify-items: center;
}

@media (min-width: 680px) {
  .team-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
  }
}

@keyframes teamCardReveal {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.team-member-card {
  --reveal-delay: 0s;
  width: 100%;
  max-width: min(22rem, 100%);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  filter: blur(4px);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.5s ease;
}

.team-member-card.team-member-card--visible {
  animation: teamCardReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay) forwards;
}

@media (min-width: 680px) {
  .team-member-card {
    max-width: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .team-member-card.team-member-card--visible:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

.team-member-photo {
  position: relative;
  aspect-ratio: 1;
  background: #070707;
  overflow: hidden;
}

.team-member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.45s ease;
}

.team-member-card.team-member-card--visible:hover .team-member-photo::after {
  opacity: 0.65;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .team-member-card.team-member-card--visible:hover .team-member-photo img {
    transform: scale(1.07);
  }
}

.team-member-photo--placeholder {
  background-image: linear-gradient(125deg, #16161c 0%, #0b0b0e 40%, #101018 70%, #15151d 100%);
  background-size: 220% 220%;
  background-repeat: no-repeat;
  animation: teamPlaceholderShimmer 10s ease-in-out infinite;
}

@keyframes teamPlaceholderShimmer {
  0%,
  100% {
    background-position: 0% 40%;
  }

  50% {
    background-position: 100% 60%;
  }
}

.team-member-body {
  padding: clamp(20px, 3.2vw, 28px) clamp(18px, 3vw, 24px) clamp(22px, 3.5vw, 30px);
}

.team-member-name {
  font-size: clamp(15px, 1.9vw, 19px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #fff;
}

.team-member-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 200, 160, 0.55);
  margin: 0 0 14px;
}

.team-member-bio {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.76);
}

.team-page-empty {
  text-align: center;
  grid-column: 1 / -1;
  max-width: 26rem;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 52px) clamp(24px, 4vw, 36px);
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  animation: pageFadeInUp 0.7s ease-out 0.3s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .team-page__kicker,
  .team-page__rule,
  .team-page-intro,
  .team-page-empty {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .team-page__rule {
    transform: scaleX(1);
  }

  .team-member-card {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .team-member-photo--placeholder {
    animation: none;
  }

  .team-member-photo img {
    transition: none;
  }
}

/* Project detail page */
#projectContent {
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(20px, 4vh, 40px);
}

#projectContent > .page-title {
  margin-bottom: clamp(40px, 6vh, 80px);
  text-align: center;
  width: 100%;
}

#projectContent p {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(14px, 2vw, 18px);
  margin: clamp(20px, 4vh, 40px) 0;
}

/* Project detail page slider */
.project-slider-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  margin-top: clamp(20px, 4vh, 40px);
}

.project-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.6s;
  pointer-events: none;
  will-change: opacity, transform;
  visibility: hidden;
}

.project-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s;
  z-index: 1;
}

.project-slide img,
.project-slide video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.project-slide video {
  background: #000;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  width: clamp(50px, 8vw, 70px);
  height: clamp(50px, 8vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 50%;
  user-select: none;
  line-height: 1;
  font-weight: 300;
}

.slider-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: clamp(10px, 2vw, 20px);
}

.slider-next {
  right: clamp(10px, 2vw, 20px);
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: clamp(30px, 5vh, 50px);
  padding: clamp(10px, 2vh, 20px) clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.slider-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

/* Project detail page responsive */
@media (max-width: 768px) {
  .project-slider-container {
    padding: 0 clamp(10px, 3vw, 20px);
  }
  
  .project-slider {
    min-height: 300px;
  }
  
  .project-slide img,
  .project-slide video {
    max-height: 60vh;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  
  .slider-prev {
    left: 5px;
  }
  
  .slider-next {
    right: 5px;
  }
  
  .slider-dots {
    gap: 10px;
    margin-top: clamp(20px, 4vh, 30px);
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .project-slider {
    min-height: 250px;
  }
  
  .project-slide img,
  .project-slide video {
    max-height: 50vh;
  }
  
  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

.hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

.black-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1000;
  pointer-events: none;
}

.black-overlay.fade-in-overlay {
  animation: fadeInOverlay 300ms ease-in-out forwards;
}

.black-overlay.fade-out-overlay {
  animation: fadeOutOverlay 300ms ease-in-out forwards;
}

/* Transition animations */
.fade-in {
  animation: fadeIn 1500ms ease-in-out forwards;
}

.fade-out {
  animation: fadeOut 500ms ease-in-out forwards;
}

.flicker {
  animation: flicker 900ms linear forwards;
}

.flicker-out {
  animation: flickerOut 2500ms linear forwards;
}

/* Used by JS "CapCut" flicker-out to animate per-character spans */
.capcut-char {
  display: inline-block;
  will-change: opacity;
}

 .laser-cut {
  position: relative;
  animation: laserCut 4500ms cubic-bezier(.2, .8, .2, 1) forwards;
  overflow: hidden;
} 

/* White laser beam that appears before the reveal */
.laser-cut::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 20%,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) 
          drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation: laserBeamSweep 5000ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: -50ms;
}














@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOutOverlay {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Flicker effect */
@keyframes flicker {
  0% {
    opacity: 0;
  }

  10% {
    opacity: .6;
  }

  20% {
    opacity: 0;
  }

  30% {
    opacity: .85;
  }

  40% {
    opacity: .2;
  }

  50% {
    opacity: 1;
  }

  60% {
    opacity: .4;
  }

  70% {
    opacity: 1;
  }

  85% {
    opacity: .7;
  }

  100% {
    opacity: 1;
  }
}

/* Flicker-out effect (ends hidden) */
@keyframes flickerOut {
  0% { opacity: 1; }
  10% { opacity: .6; }
  20% { opacity: 1; }
  30% { opacity: .25; }
  40% { opacity: 1; }
  50% { opacity: .35; }
  60% { opacity: 1; }
  70% { opacity: .2; }
  85% { opacity: .8; }
  100% { opacity: 0; }
}

/* Laser cut reveal: opens from center vertical cut (horizontal direction) */
@keyframes laserCut {
  0% {
    clip-path: inset(0 100% 0 0); /* مخفي تمامًا من اليمين */
    opacity: 1;
  }

  
  100% {
    clip-path: inset(0 0 0 0); /* يظهر بالكامل */

    opacity: 1;
  }
}

/* White laser beam sweep animation */
@keyframes laserBeamSweep {
  0% {
    left: -30px;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  99% {
    left: calc(100% + 30px);
    opacity: 1;
  }
  100% {
    left: calc(100% + 30px);
    opacity: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .fade-in,
  .fade-out,
  .flicker,
  .laser-cut,
  .fade-in-overlay,
  .fade-out-overlay,
  .page-title,
  .page-section,
  .project-card,
  .contact-form,
  .contact-info,
  .contact-intro,
  .projects-intro {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .home-slide {
    transition: none !important;
    transform: none !important;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.navbar.navbar--transparent {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.navbar.navbar--solid {
  background: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar[hidden] {
  display: none;
}

.navbar.navbar-hidden {
  opacity: 0;
  pointer-events: none;
}

.navbar.fade-in {
  opacity: 1;
  pointer-events: all;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(12px, 2vh, 20px) clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* English LTR layout: menu on left, logo on right */
.navbar[data-layout="en"] .nav-container {
  flex-direction: row;
}

.navbar[data-layout="en"] .nav-menu {
  order: 1;
}

.navbar[data-layout="en"] .nav-toggle {
  order: 2;
}

.navbar[data-layout="en"] .nav-right {
  order: 3;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo img {
  height: clamp(30px, 4vh, 45px);
  width: auto;
  user-select: none;
  pointer-events: none;
}

.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.nav-instagram:hover {
  opacity: 0.7;
}

.nav-instagram svg {
  width: clamp(22px, 2.8vh, 28px);
  height: clamp(22px, 2.8vh, 28px);
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Page layout utilities */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 40px) clamp(60px, 8vh, 100px);
}

/* Page animations */
.page-title {
  opacity: 0;
  transform: translateY(20px);
  animation: pageFadeInUp 0.8s ease-out 0.2s forwards;
}

.page-section {
  margin-bottom: clamp(60px, 10vh, 120px);
  opacity: 0;
  transform: translateY(30px);
  animation: pageFadeInUp 0.8s ease-out forwards;
}

.page-section:nth-child(1) {
  animation-delay: 0.4s;
}

.page-section:nth-child(2) {
  animation-delay: 0.5s;
}

.page-section:nth-child(3) {
  animation-delay: 0.6s;
}

.page-section:nth-child(4) {
  animation-delay: 0.7s;
}

.page-section:nth-child(5) {
  animation-delay: 0.8s;
}

.page-section:nth-child(6) {
  animation-delay: 0.9s;
}

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

.page-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 80px);
  color: #fff;
  line-height: 1.4;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: clamp(24px, 4vh, 40px);
  color: #fff;
  text-transform: uppercase;
}

.section-content {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin: 0 auto;
}

/* Contact page */
.contact-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 28px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 14px 14px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.5);
}

.form-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.form-button:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.form-button:active {
  transform: translateY(0);
}

.form-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.contact-status {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-info {
  max-width: 760px;
  margin: clamp(26px, 5vh, 40px) auto 0;
  padding: clamp(16px, 3vh, 22px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.contact-info-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.contact-info-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.contact-info-value a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.contact-info-value a:hover {
  opacity: 0.75;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
  .contact-form,
  .contact-info {
    padding: 16px;
  }

  .contact-info-item {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
}

/* 404 page */
.notfound {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(10px, 2vh, 20px);
}

.notfound-code {
  font-size: clamp(72px, 12vw, 140px);
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: clamp(10px, 2vh, 18px);
}

.notfound-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 clamp(10px, 2vh, 18px);
}

.notfound-text {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.notfound-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(22px, 4vh, 34px);
}

.notfound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  background: rgba(255, 255, 255, 0.06);
}

.notfound-btn:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.notfound-btn:active {
  transform: translateY(0);
}

.notfound-btn--ghost {
  background: transparent;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(30px, 5vh, 50px) clamp(20px, 4vw, 40px);
  text-align: center;
  margin-top: clamp(60px, 10vh, 120px);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* Small screens */
@media (max-width: 600px) {
  .text {
    line-height: 1.55;
  }

  .hint {
    bottom: 14px;
    font-size: 11px;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 4vw, 28px);
    align-items: start;
    justify-items: center;
  }

  .project-item {
    width: 100%;
    padding-top: clamp(18px, 4vh, 40px);
  }

  .project-media-wrapper {
    width: clamp(150px, 40vw, 300px);
    height: clamp(150px, 40vw, 300px);
    margin-bottom: clamp(15px, 2.5vh, 30px);
  }

  .projects-signature {
    margin-bottom: clamp(40px, 8vh, 80px);
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: clamp(18px, 4vw, 28px) clamp(20px, 4vw, 40px) clamp(22px, 5vw, 32px);
    gap: clamp(14px, 3vh, 22px);
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    order: unset !important; /* Reset order on mobile */
  }

  /* Home: open menu panel stays transparent so the hero shows through */
  body.home .nav-menu {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-menu li {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .nav-menu .nav-link {
    padding: 10px 0;
    text-align: left;
    width: auto;
    max-width: 100%;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* On mobile, reset order for all elements in English layout */
  .navbar[data-layout="en"] .nav-container {
    flex-direction: row;
    justify-content: space-between;
    position: relative;
  }

  .navbar[data-layout="en"] .nav-menu {
    order: unset;
  }

  .navbar[data-layout="en"] .nav-toggle {
    order: unset;
    position: relative;
    z-index: 2;
  }

  /* Flatten .nav-right so logo can be centered and Instagram pinned to the far right */
  .navbar[data-layout="en"] .nav-right {
    display: contents;
  }

  .navbar[data-layout="en"] .nav-logo {
    order: unset;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .navbar[data-layout="en"] .nav-instagram {
    order: unset;
    position: absolute;
    right: clamp(12px, 4vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}