/* ============================================
   LAYOUT — Nav, Hero, Services, Work,
   About, Team
   ============================================ */

/* --- Nav --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,.95), transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all .4s;
}

nav.scrolled {
  background: rgba(10,10,10,.92);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(161,161,170,.1);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 6px;
  background: var(--ct);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cm);
  position: relative;
  transition: color .3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cl);
  transition: width .3s;
}

.nav-links a:hover { color: var(--wh); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--cd);
  background: transparent;
  color: var(--cl);
  cursor: pointer;
  transition: all .3s;
}

.nav-cta:hover {
  background: var(--cl);
  color: var(--bk);
  border-color: var(--cl);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  width: 28px;
  height: 1.5px;
  background: var(--cl);
  transition: all .3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all .4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 6px;
  color: var(--cm);
  transition: color .3s;
}

.mobile-menu a:hover { color: var(--wh); }

/* --- Hero --- */

.hero-logo {
  max-width: 680px;
  max-height: 380px;
  width: 80%;
  height: auto;
  margin: 0 auto;
  display: block;
  opacity: 0;
  animation: fadeUp 1s ease 2.4s forwards;
  object-fit: contain;
}
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-fallback-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=1920&q=80') center/cover no-repeat;
  filter: grayscale(60%) brightness(.25) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.5) 0%, rgba(10,10,10,.15) 40%, rgba(10,10,10,.85) 100%);
}

.hero-chrome-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cg);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 0 24px;
  padding-bottom: 80px;
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cm);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s ease 2.2s forwards;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 12vw, 180px);
  line-height: .9;
  letter-spacing: 8px;
  background: var(--ct);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  opacity: 0;
  animation: fadeUp 1s ease 2.4s forwards, shimmer 4s ease-in-out 3.4s infinite;
}

.hero-sub {
  font-weight: 300;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--cm);
  margin-top: 24px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeUp .8s ease 2.6s forwards;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp .8s ease 2.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp .8s ease 3s forwards;
}

.hero-scroll span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cd);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--cd);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--cl);
  animation: scrollDown 2s ease-in-out infinite;
}

/* --- Services --- */
#services { background: var(--bs); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: var(--bc);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: all .5s;
  border: 1px solid rgba(161,161,170,.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cg);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--bh); transform: translateY(-4px); }

.service-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60px;
  background: var(--ct);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .12;
  line-height: 1;
  margin-bottom: 16px;
}

.service-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--cl);
  margin-bottom: 16px;
}

.service-desc {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cm);
}

.service-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cd);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
  transition: all .3s;
}

.service-card:hover .service-icon {
  background: var(--cg);
  border-color: transparent;
}

/* --- Showreel --- */
#showreel {
  background: var(--bk);
  text-align: center;
}

.reel-container {
  max-width: 1200px;
  margin: 60px auto 0;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bc);
  border: 1px solid rgba(161,161,170,.1);
  overflow: hidden;
}

.reel-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--bc) 0%, #1f1f1f 100%);
  cursor: pointer;
}

.reel-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--cm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s;
  position: relative;
}

.reel-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--cl);
  margin-left: 4px;
}

.reel-placeholder:hover .reel-play {
  background: rgba(161,161,170,.1);
  border-color: var(--cl);
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(161,161,170,.15);
}

.reel-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(161,161,170,.2);
  animation: pulse 2s ease-in-out infinite;
}

.reel-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cd);
}

.reel-embed {
  position: absolute;
  inset: 0;
  display: none;
}

.reel-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.reel-chrome {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cg);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* --- Work --- */
#work { background: var(--bs); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 8px;
  max-width: 1600px;
  margin: 60px auto 0;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.work-item:nth-child(2) { grid-column: span 5; }
.work-item:nth-child(3) { grid-column: span 5; }
.work-item:nth-child(4) { grid-column: span 4; }
.work-item:nth-child(5) { grid-column: span 4; }
.work-item:nth-child(6) { grid-column: span 4; }

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(.65);
  transition: all .6s;
  transform: scale(1.05);
}

.work-item:hover .work-img {
  filter: grayscale(0%) brightness(.8);
  transform: scale(1);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity .4s;
}

.work-item:hover .work-overlay { opacity: 1; }

.work-category {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cm);
  margin-bottom: 8px;
}

.work-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--wh);
}

.work-client {
  font-size: 13px;
  color: var(--cd);
  margin-top: 4px;
}

.work-view {
  margin-top: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cl);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .3s;
}

.work-item:hover .work-view { gap: 14px; }

.work-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cg);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s;
}

.work-item:hover .work-bar { transform: scaleX(1); }

/* --- About --- */
#about { background: var(--bs); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 60px auto 0;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) brightness(.8);
}

.about-frame {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(161,161,170,.2);
  pointer-events: none;
}

.about-text p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cm);
  margin-bottom: 24px;
}

.about-text .hl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--cl);
  line-height: 1.3;
  margin-bottom: 32px;
}

.about-vals {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.about-val {
  flex: 1;
  padding-top: 16px;
  border-top: 1px solid var(--cd);
}

.about-val h4 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cl);
  margin-bottom: 8px;
}

.about-val p {
  font-size: 13px !important;
  margin-bottom: 0 !important;
}

/* --- Team --- */
#team { background: var(--bk); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 60px auto 0;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--bc);
  border: 1px solid rgba(161,161,170,.05);
  transition: all .4s;
}

.team-card:hover { border-color: rgba(161,161,170,.15); }

.team-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: grayscale(70%) brightness(.7);
  transition: all .5s;
  display: block;
}

.team-card:hover .team-photo {
  filter: grayscale(30%) brightness(.85);
}

.team-info { padding: 24px; }

.team-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--cl);
}

.team-role {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cd);
  margin-top: 4px;
}

.team-bar {
  width: 30px;
  height: 2px;
  background: var(--cg);
  margin-top: 12px;
  transition: width .4s;
}

.team-card:hover .team-bar { width: 60px; }
